mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	https://github.com/catchorg/Catch2/issues/1175 - don't list hidden tests by default
This commit is contained in:
		 dvirtz
					dvirtz
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							355b3f9952
						
					
				
				
					commit
					ca8470fbad
				
			| @@ -289,6 +289,9 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]" | ||||
|         CHECK(config.abortAfter == -1); | ||||
|         CHECK(config.noThrow == false); | ||||
|         CHECK(config.reporterNames.empty()); | ||||
|  | ||||
|         Catch::Config cfg(config); | ||||
|         CHECK_FALSE(cfg.hasTestFilters()); | ||||
|     } | ||||
|  | ||||
|     SECTION("test lists") { | ||||
| @@ -297,6 +300,7 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]" | ||||
|             CHECK(result); | ||||
|  | ||||
|             Catch::Config cfg(config); | ||||
|             REQUIRE(cfg.hasTestFilters()); | ||||
|             REQUIRE(cfg.testSpec().matches(fakeTestCase("notIncluded")) == false); | ||||
|             REQUIRE(cfg.testSpec().matches(fakeTestCase("test1"))); | ||||
|         } | ||||
| @@ -305,6 +309,7 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]" | ||||
|             CHECK(result); | ||||
|  | ||||
|             Catch::Config cfg(config); | ||||
|             REQUIRE(cfg.hasTestFilters()); | ||||
|             REQUIRE(cfg.testSpec().matches(fakeTestCase("test1")) == false); | ||||
|             REQUIRE(cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))); | ||||
|         } | ||||
| @@ -314,6 +319,7 @@ TEST_CASE( "Process can be configured on command line", "[config][command-line]" | ||||
|             CHECK(result); | ||||
|  | ||||
|             Catch::Config cfg(config); | ||||
|             REQUIRE(cfg.hasTestFilters()); | ||||
|             REQUIRE(cfg.testSpec().matches(fakeTestCase("test1")) == false); | ||||
|             REQUIRE(cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user