Run each Boost test with it's own fixture.

This commit is contained in:
Jeff Young 2021-07-31 20:12:52 +01:00
parent 6ab45d0a6d
commit 878538abff
2 changed files with 5 additions and 13 deletions

View File

@ -104,12 +104,11 @@ struct DRC_REGRESSION_TEST_FIXTURE
}; };
BOOST_FIXTURE_TEST_SUITE( TestDRCRegressions, DRC_REGRESSION_TEST_FIXTURE )
constexpr int delta = KiROUND( 0.006 * IU_PER_MM ); constexpr int delta = KiROUND( 0.006 * IU_PER_MM );
BOOST_AUTO_TEST_CASE( DRCFalsePositiveRegressions ) BOOST_FIXTURE_TEST_CASE( DRCFalsePositiveRegressions, DRC_REGRESSION_TEST_FIXTURE )
{ {
// These documents at one time flagged DRC errors that they shouldn't have. // These documents at one time flagged DRC errors that they shouldn't have.
@ -163,7 +162,7 @@ BOOST_AUTO_TEST_CASE( DRCFalsePositiveRegressions )
} }
BOOST_AUTO_TEST_CASE( DRCFalseNegativeRegressions ) BOOST_FIXTURE_TEST_CASE( DRCFalseNegativeRegressions, DRC_REGRESSION_TEST_FIXTURE )
{ {
// These documents at one time failed to catch DRC errors that they should have. // These documents at one time failed to catch DRC errors that they should have.
@ -215,6 +214,3 @@ BOOST_AUTO_TEST_CASE( DRCFalseNegativeRegressions )
} }
} }
} }
BOOST_AUTO_TEST_SUITE_END()

View File

@ -104,12 +104,10 @@ struct ZONE_FILL_TEST_FIXTURE
}; };
BOOST_FIXTURE_TEST_SUITE( TestZoneFiller, ZONE_FILL_TEST_FIXTURE )
constexpr int delta = KiROUND( 0.006 * IU_PER_MM ); constexpr int delta = KiROUND( 0.006 * IU_PER_MM );
BOOST_AUTO_TEST_CASE( BasicZoneFills ) BOOST_FIXTURE_TEST_CASE( BasicZoneFills, ZONE_FILL_TEST_FIXTURE )
{ {
loadBoard( "zone_filler" ); loadBoard( "zone_filler" );
@ -195,7 +193,7 @@ BOOST_AUTO_TEST_CASE( BasicZoneFills )
} }
BOOST_AUTO_TEST_CASE( NotchedZones ) BOOST_FIXTURE_TEST_CASE( NotchedZones, ZONE_FILL_TEST_FIXTURE )
{ {
loadBoard( "notched_zones" ); loadBoard( "notched_zones" );
@ -235,7 +233,7 @@ BOOST_AUTO_TEST_CASE( NotchedZones )
} }
BOOST_AUTO_TEST_CASE( RegressionZoneFillTests ) BOOST_FIXTURE_TEST_CASE( RegressionZoneFillTests, ZONE_FILL_TEST_FIXTURE )
{ {
std::vector<wxString> tests = { "issue18", std::vector<wxString> tests = { "issue18",
"issue2568", "issue2568",
@ -294,5 +292,3 @@ BOOST_AUTO_TEST_CASE( RegressionZoneFillTests )
} }
} }
BOOST_AUTO_TEST_SUITE_END()