OpenMDAO / Aviary

NASA's aircraft analysis, design, and optimization tool
https://openmdao.github.io/Aviary/
Other
134 stars 59 forks source link

Complete code coverage for unittesting #270

Open jkirk5 opened 4 months ago

jkirk5 commented 4 months ago

Desired capability or behavior.

Aviary has very high code coverage with unittests, but many analysis components still don't have complete coverage. Tests should be updated to gain 100% coverage for files where that makes sense. Many functions/utils have incidental coverage by being used by other components, but should probably have their own tests.

Is your feature request related to a problem? Please describe.

No response

Associated Bug Report

No response

xjjiang commented 4 months ago

I added an assert_warning test suggested by Ken. And it is the first and only assert_warning test we have. We probably should have more.

xjjiang commented 2 months ago

Some mission classes need assert_check_partials unit test.

xjjiang commented 2 months ago

I've added check_partials and assert_near_equal to most components in subsystems. See PR442 and PR443

xjjiang commented 1 month ago

Add/improve unit tests in FLOPS based mission # 485

xjjiang commented 2 weeks ago

added unit test on weight-mass conversion with GRAV_ENGLISH_LBM != 1 in PR#522