Skip to content

Conversation

@mathbunnyru
Copy link
Collaborator

@mathbunnyru mathbunnyru commented May 6, 2025

Fix: #910

@mathbunnyru
Copy link
Collaborator Author

mathbunnyru commented May 6, 2025

I checked the repo and there are no more TearDown.
One SetUp is needed though:

tests/integration/migration/cassandra/CassandraMigrationManagerTests.cpp:
   90      // This function is used to prepare the database before running the tests
   91:     // It is called in the SetUp function. Different tests can override this function to prepare the database
   92      // differently

  152      void
  153:     SetUp() override
  154      {
  155          setupDatabase();
  156      }

And setupDatabase() is a virtual method of the class, so we shouldn't call it directly in ctor, so I left this one as is.

@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.74%. Comparing base (9af36e5) to head (b78d7de).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2086      +/-   ##
===========================================
- Coverage    72.76%   72.74%   -0.03%     
===========================================
  Files          355      355              
  Lines        14697    14697              
  Branches      7464     7464              
===========================================
- Hits         10695    10692       -3     
- Misses        1977     1978       +1     
- Partials      2025     2027       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

Nice! 👍

@mathbunnyru mathbunnyru merged commit 5e43c3b into XRPLF:develop May 7, 2025
30 checks passed
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.

Remove SetUp and TearDown from tests

2 participants