Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Refactor 1D tests to reduce repetitive code#81

Merged
JohnDN90 merged 2 commits into
masterMASTmultiphysics/mast-multiphysics:masterfrom
refactor-1D-testsMASTmultiphysics/mast-multiphysics:refactor-1D-testsCopy head branch name to clipboard
Mar 5, 2020
Merged

Refactor 1D tests to reduce repetitive code#81
JohnDN90 merged 2 commits into
masterMASTmultiphysics/mast-multiphysics:masterfrom
refactor-1D-testsMASTmultiphysics/mast-multiphysics:refactor-1D-testsCopy head branch name to clipboard

Conversation

@jdeaton

@jdeaton jdeaton commented Mar 4, 2020

Copy link
Copy Markdown
Member

This pull request refactors some of the Catch2 test code. It introduces some re-usable classes to define basic elements/storage that can be utilized as setup-code so similar storage doesn't need to be created for every test.

There is still a fair amount of replicated code, but it all generally appears inside of Catch SECTIONS that I believe we want to keep separate. Short of writing some macros for this, I'm not sure how we can avoid it at this time.

In addition, this PR introduces the TEST namespace where these test helper classes and other test-methods can be stored. The Doxygen documentation has also been updated to parse the tests directory so that these helper classes/functions can be documented. They are separated from library by being in a different namespace.

@JohnDN90 can you look over this stuff and make sure I am still capturing the spirit of your tests.

@JohnDN90
JohnDN90 merged commit d671ca1 into master Mar 5, 2020
@jdeaton
jdeaton deleted the refactor-1D-tests branch March 6, 2020 19:45
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.