Skip to content

Commit ba5ee08

Browse files
authored
Merge pull request #2696 from ayeankit/ankit
Changes done in issue #2674
2 parents bf0bdfe + 6d21edb commit ba5ee08

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

run-tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)