Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-organize tests #141

Merged
merged 16 commits into from
Nov 15, 2023
Merged

Conversation

mrp089
Copy link
Member

@mrp089 mrp089 commented Nov 15, 2023

Current situation

Re-organized test cases as mentioned in #95 by physics:

  • separate test_*.py files
  • subfolders

Also, I simplified the test case definition:

  • removed redundant variables by using default names for input file, result file, and number of time steps
  • move test functions to conftest.py
  • move number of processors to conftest.py
  • use default tolerance of 1e-12

Release Notes

Should simplify adding new tests.

Documentation

We still need to add a documentation and testing guide.

Testing

Runs the same 75 tests as before that pass locally on Apple M2 (except cmm, as expected). After runninng the GitHub actions, I can see that the line coverage is the same as in the current main branch.

Code of Conduct & Contributing Guidelines

@mrp089 mrp089 marked this pull request as draft November 15, 2023 08:20
@mrp089 mrp089 marked this pull request as ready for review November 15, 2023 16:57
Copy link
Collaborator

@MatteoSalvador MatteoSalvador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terrific job @mrp089! I thoroughly looked at everything and I don't have further comments.

@MatteoSalvador MatteoSalvador merged commit dcc7df9 into SimVascular:main Nov 15, 2023
5 checks passed
@mrp089 mrp089 deleted the restructure_tests_95_new branch November 22, 2023 04:57
@mrp089 mrp089 mentioned this pull request Nov 29, 2023
1 task
mrp089 referenced this pull request in mrp089/svFSIplus_old Nov 30, 2023
* modify python

* move cep

* move cmm

* move fluid

* move fsi

* move heats

* mvoe stokes

* move struct

* move ustruct

* move cep

* move cep

* fix move

* fix name

* fix cmm

* fix run_with_reference call

* fix relative paths
mrp089 referenced this pull request in mrp089/svFSIplus_old Nov 30, 2023
* modify python

* move cep

* move cmm

* move fluid

* move fsi

* move heats

* mvoe stokes

* move struct

* move ustruct

* move cep

* move cep

* fix move

* fix name

* fix cmm

* fix run_with_reference call

* fix relative paths
mrp089 referenced this pull request in mrp089/svFSIplus_old Nov 30, 2023
* modify python

* move cep

* move cmm

* move fluid

* move fsi

* move heats

* mvoe stokes

* move struct

* move ustruct

* move cep

* move cep

* fix move

* fix name

* fix cmm

* fix run_with_reference call

* fix relative paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants