arfc / saltproc

Online reprocessing for molten salt reactors
Other
19 stars 16 forks source link

Cleanup test suite #161

Closed yardasol closed 1 year ago

yardasol commented 2 years ago

Summary of changes

This PR cleans up and overhauls the test suite to increase readability and future extensibility.

Specifically, this PR:

Required for Merging

Associated Developers

Checklist for Reviewers

Reviewers should use this link to get to the Review Checklist before they begin their review.

pep8speaks commented 2 years ago

Hello @yardasol! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2022-08-29 19:11:54 UTC
samgdotson commented 2 years ago

"68 files changed" 👁️ 👄 👁️

yardasol commented 2 years ago

This all looks fine to me. I made a take-it-or-leave-it suggestion in part of the documentation. Otherwise, my only comment is if you're moving files to use git mv, which I think would reduce the total number of files in the PR.

That's a great suggestion about git mv! I hadn't really thought about the implications of not using that. Will do this in the future.

I'd like at least one more review from @munkm or @smpark7 since this is a pretty major overhaul of the test suite.

yardasol commented 2 years ago

@munkm bump

yardasol commented 2 years ago

Ok, I think I'm done reviewing now! Thank you so much for these changes @yardasol !! I think there are lots of great improvements to the test suite here.

Thanks!

I am a little worried about calling the files used to and in the serpent/openmc runs test_, as it sort of implies that's a file that's doing the test, not used by the test. Does that make sense? Maybe we could call them sample_ or something? I'm trying to come up with an alternative that would make them more differentiable from the actual test files.

Which files are you talking about?

Do you think there could be any issues by moving the tests folder out of the saltproc dir? I think this means it could be harder for a wheel build install to run the tests (which we don't use yet so it's not an issue) but I haven't double checked that so I could be wrong.

I don't know. I've never used wheel.

yardasol commented 1 year ago

Thanks for the review @munkm

I'm talking about the .ini and .json files that start with test_. Since they are specific designs and configurations, maybe we could name them with the functionality first, then say they're for tests. That way it doesn't seem like those files alone are test files. e.g. something like msr_input_test .

I somewhat agree with you, and somewhat don't. I think it's perfectly valid to prefix the input files with test_ because that elucidates their purpose (the intended purpose is that they are associated with tests). I'm not convinced that renaming the files to correspond to a specific design/configuration is particularly useful because we only have one such design/configuration right now for our unit tests. If down the road we are working with more than one configuration/design, then I think it makes sense to add more detail to those file names.

yardasol commented 1 year ago

@munkm if you don't have any further comments, can this be merged?