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 .github/workflows/run-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
python3 -m pip install coverage

- name: Run tests
run: coverage run test/run_integration_tests.py
run: coverage run --source=spatialpy test/run_integration_tests.py
2 changes: 1 addition & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
python3 -m pip install coverage

- name: Run tests
run: coverage run test/run_unit_tests.py
run: coverage run --source=spatialpy test/run_unit_tests.py
7 changes: 7 additions & 0 deletions run_coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
#pip3 install coverage
#pip3 install python-libsbml

coverage run --source=spatialpy test/run_unit_tests.py -m develop
coverage run --source=spatialpy test/run_integration_tests.py -m develop
coverage html
6 changes: 3 additions & 3 deletions test/run_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
print('Running unit tests in develop mode. Appending repository directory to system path.')
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

import test_species
import test_parameter
import test_reaction
from unit_tests import test_species
from unit_tests import test_parameter
from unit_tests import test_reaction

modules = [
test_species,
Expand Down
Empty file added test/unit_tests/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.