Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nbdev/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _keep_file(
else: True

# %% ../nbs/api/12_test.ipynb #f8cc6a61-a48e-4ab1-89a9-18316ca795d6
@call_parse
@call_parse(pos=['path'])
@delegates(nbglob_cli)
def nbdev_test(
path:str=None, # A notebook name or glob to test
Expand Down
6 changes: 3 additions & 3 deletions nbs/api/12_test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
"outputs": [],
"source": [
"#| export\n",
"@call_parse\n",
"@call_parse(pos=['path'])\n",
"@delegates(nbglob_cli)\n",
"def nbdev_test(\n",
" path:str=None, # A notebook name or glob to test\n",
Expand Down Expand Up @@ -358,13 +358,13 @@
"You can even run `nbdev-test` in non nbdev projects, for example, you can test an individual notebook like so:\n",
"\n",
"```\n",
"nbdev-test --path ../../tests/minimal.ipynb --do-print\n",
"nbdev-test ../../tests/minimal.ipynb --do-print\n",
"```\n",
"\n",
"Or you can test an entire directory of notebooks filtered for only those that match a regular expression:\n",
"\n",
"```\n",
"nbdev-test --path ../../tests --file-re '.*test.ipynb' --do-print\n",
"nbdev-test ../../tests --file-re '.*test.ipynb' --do-print\n",
"```"
]
},
Expand Down
4 changes: 2 additions & 2 deletions nbs/tutorials/modular_nbdev.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@
"You can test an individual notebook with the terminal command:\n",
"\n",
"```sh\n",
"nbdev-test --path notebook.ipynb\n",
"nbdev-test notebook.ipynb\n",
"```\n",
"\n",
"...or a folder of notebooks:\n",
"\n",
"```sh\n",
"nbdev-test --path tests/\n",
"nbdev-test tests/\n",
"```"
]
},
Expand Down
Loading