mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 21:35:40 +02:00
Add more unit tests
* Call order of listeners/reporters in multireporter * Adding listeners/reporters properly updates reporter preferences
This commit is contained in:
@@ -1864,6 +1864,40 @@ not ok {test-number} - explicitly
|
||||
ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
|
||||
# Mismatching exception messages failing the test
|
||||
not ok {test-number} - thisThrows(), "should fail" for: "expected exception" equals: "should fail"
|
||||
# Multireporter calls reporters and listeners in correct order
|
||||
ok {test-number} - records == expected for: { "Hello", "world", "Goodbye", "world" } == { "Hello", "world", "Goodbye", "world" }
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == false for: false == false
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == false for: false == false
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == false for: false == false
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldRedirectStdOut == true for: true == true
|
||||
# Multireporter updates ReporterPreferences properly
|
||||
ok {test-number} - multiReporter.getPreferences().shouldReportAllAssertions == true for: true == true
|
||||
# Nested generators and captured variables
|
||||
ok {test-number} - values > -6 for: 3 > -6
|
||||
# Nested generators and captured variables
|
||||
@@ -4420,5 +4454,5 @@ ok {test-number} - q3 == 23. for: 23.0 == 23.0
|
||||
ok {test-number} -
|
||||
# xmlentitycheck
|
||||
ok {test-number} -
|
||||
1..2209
|
||||
1..2226
|
||||
|
||||
|
Reference in New Issue
Block a user