Closed xaviernogueira closed 1 year ago
@xaviernogueira, it looks like @kewalak added test files yesterday with commit 69343a5. She sent an email with these notes:
The test files are found within the src/NSM1 folder and are titled _test_module. In each of the test scripts all the variables are defined initially in dictionaries and then within each test case functions one or two of the variables were assigned new values. The initial values and values changed I based off numbers from the documentation (if they had default/range values) but for the most part I just chose numbers that I thought could be appropriate. Each test module script I would run manually. Please let me know if you have any questions!
Can you git mv
those new files and any other relevant to the appropriate folder (and rename) to follow those pytest conventions you mentioned?
@xaviernogueira, Let’s split up this automated testing effort into three tasks/issues:
main
Can you create those issues?
Hello, I reorganized the TSM module and tests in a way that I think satisfies this task. Let me know if you see any issues.
@imscw95 thanks! Your commit looks good to me. @aufdenkampe I'm on it, issues on the way.
Closing this one.
Hi all.
I'm going to set up automatic testing on pull requests to main using
pytest
. That said, there are two things that need to happen before that:/tests
- (should hold ONLY python files that start with "test_"), ideally tests should be numbered, i.e., "test_1_TSM.py".tests/data
- any test data needed to run the tests.There are multiple unit test codes hidden in various folders of
src
. All these should be moved totest
!src
should contain nothing but source code.With that structure, I can do the rest, and will document the process so everyone can learn. If your branches are conflicting, maybe just PR what you have and I can do the formatting.