Skip to content

Commit d2d4ff5

Browse files
committed
Add src/pytest.jl CLI
1 parent abaae04 commit d2d4ff5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/pytest.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env julia
2+
3+
"""
4+
CLI to run pytest within Julia process.
5+
6+
All arguments are passed to pytest.
7+
8+
Examples:
9+
10+
cd HERE
11+
./pytest.jl
12+
./pytest.jl -x --pdb
13+
./pytest.jl replhelper/tests/test_ipyext.py
14+
"""
15+
16+
using IPython
17+
IPython.test_replhelper(`$ARGS`; inprocess=true)

0 commit comments

Comments
 (0)