Skip to content

Improved test efficiency - #425

Open
JZahner1 wants to merge 11 commits into
nmfs-ost:mainfrom
JZahner1:improved_test_efficiency
Open

JZahner1 wants to merge 11 commits into
nmfs-ost:mainfrom
JZahner1:improved_test_efficiency

Conversation

@JZahner1

Copy link
Copy Markdown
Collaborator

Improved efficiency of test suite:

  1. Reduced total number of SS3 models tested with convert_output from 18 to 5. Chosen models were based on total model complexity and presence of specific modeling features (e.g., empirical biological parameters).

  2. Turned off interactivity for all plotting/table functions. This ensures that the test suite runs without user interaction. Closes [tests]: Set modules in all plot_* calls within test functions #416.

  3. Removed redundant tests. rda generation was being tested for every plot and table function individually, as well as together with save_all_plots. Removal of plot/table specific rda tests reduces total number of tests to run and makes for easier file I/O within the test environment (e.g., only have to remove tmp files once, rather than for every plot test). Closes [tests]: are "rda file made when indicated" tests needed for every plot? #418.

  4. Implemented parallel testing. All tests now run in parallel using the testthat parallel framework. The convert_output and save_all_plots tests are given priority due to the time required to run, and are thus run before any of the plot/table specific tests. Total test suite runtime should be ~3 minutes.

Closes #420

…ncorrect module" test issue

Test would fail with original module specification ("SPR_SERIES") because labels were present for the given module. Change to new module ("DERIVED_QUANTITIES") ensures test passes.
this alleviates users from having to interact with the tests to confirm MODULE choices
plot specific tests for rda generation were redundant with the save_all_plots test
save_all_plots and convert_output tests will run first, followed by the individual plotting and table function tests
@JZahner1 JZahner1 self-assigned this Oct 16, 2026
@JZahner1 JZahner1 added the enhancement New feature or request label Oct 16, 2026
@JZahner1

Copy link
Copy Markdown
Collaborator Author

@sbreitbart-NOAA @Schiano-NOAA opened this so you can see the changes and test. Maybe a handful more things we want to add in here before merging.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

1 participant