Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GeoMechanicsApplication] Removed a redundant C++ unit test wrapper #12033

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

avdg81
Copy link
Contributor

@avdg81 avdg81 commented Feb 8, 2024

📝 Description
Removed test script test_normal_flux_condition.py, which executed two C++ unit tests: TestCalculateHorizontalNormalFlux and TestCalculateInclinedNormalFlux. These unit tests, however, are also executed through test script run_cpp_tests.py, since both are part of test suite KratosGeoMechanicsFastSuite. As such, the former test script was redundant and it has been removed now.

A few other changes were carried out to address three code smells reported by SonarQube and some problems detected by Clang-tidy.

Removed test script `test_normal_flux_condition.py`, which executed two
C++ unit tests: `TestCalculateHorizontalNormalFlux` and
`TestCalculateInclinedNormalFlux`. These unit tests, however, are also
executed through test script `run_cpp_tests.py`, since both are part of
test suite `KratosGeoMechanicsFastSuite`. As such, the former test
script was redundant and it has been removed now.

A few other changes were carried out to address three code smells
reported by SonarQube and some problems detected by Clang-tidy.
@avdg81 avdg81 added Cleanup Testing GeoMechanics Issues related to the GeoMechanicsApplication labels Feb 8, 2024
@avdg81 avdg81 requested a review from markelov208 February 8, 2024 16:39
@avdg81 avdg81 self-assigned this Feb 8, 2024
@avdg81 avdg81 enabled auto-merge (rebase) February 8, 2024 16:44
Copy link
Contributor

@markelov208 markelov208 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Anne, even small refactoring, nice!

@avdg81 avdg81 merged commit efd636e into master Feb 8, 2024
15 of 17 checks passed
@avdg81 avdg81 deleted the geo/remove-redundant-py-test branch February 8, 2024 18:58
@avdg81 avdg81 linked an issue Feb 8, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup GeoMechanics Issues related to the GeoMechanicsApplication Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GeoMechanicsApplication] Revisit test_normal_flux_condition.py
2 participants