File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,13 @@ def export_notebook(ipath, opath):
315315 description = "Run unit tests for PyBaMM." ,
316316 epilog = "To run individual unit tests, use e.g. '$ tests/unit/test_timer.py'" ,
317317 )
318+
318319 # Unit tests
320+ parser .add_argument (
321+ "--integration" ,
322+ action = "store_true" ,
323+ help = "Run integration tests using the python interpreter." ,
324+ )
319325 parser .add_argument (
320326 "--unit" ,
321327 action = "store_true" ,
@@ -380,6 +386,10 @@ def export_notebook(ipath, opath):
380386 folder = args .folder [0 ]
381387 interpreter = args .interpreter
382388 # Unit tests
389+ if args .integration :
390+ has_run = True
391+ folder = args .folder [1 ]
392+ run_code_tests (True , folder , interpreter )
383393 if args .unit :
384394 has_run = True
385395 run_code_tests (True , folder , interpreter )
You can’t perform that action at this time.
0 commit comments