mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Add --min-duration option
A test runner already has a --durations option to print durations. However, this isn't entirely satisfactory. When there are many tests, this produces output spam which makes it hard to find the test failure output. Nevertheless, it is helpful to be informed of tests which are unusually slow. Therefore, introduce a new option --min-duration that causes all durations above a certain threshold to be printed. This allows slow tests to be visible without mentioning every test.
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							de103db696
						
					
				
				
					commit
					46fde0c597
				
			@@ -4522,6 +4522,7 @@ namespace Catch {
 | 
			
		||||
        virtual int abortAfter() const = 0;
 | 
			
		||||
        virtual bool showInvisibles() const = 0;
 | 
			
		||||
        virtual ShowDurations::OrNot showDurations() const = 0;
 | 
			
		||||
        virtual double minDuration() const = 0;
 | 
			
		||||
        virtual TestSpec const& testSpec() const = 0;
 | 
			
		||||
        virtual bool hasTestFilters() const = 0;
 | 
			
		||||
        virtual std::vector<std::string> const& getTestsOrTags() const = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user