tesseract v5.3.3.20231005
googletest-global-environment-unittest.GTestGlobalEnvironmentUnitTest Class Reference
Inheritance diagram for googletest-global-environment-unittest.GTestGlobalEnvironmentUnitTest:

Public Member Functions

def testEnvironmentSetUpFails (self)
 

Detailed Description

Tests global test environment failures.

Definition at line 50 of file googletest-global-environment-unittest.py.

Member Function Documentation

◆ testEnvironmentSetUpFails()

def googletest-global-environment-unittest.GTestGlobalEnvironmentUnitTest.testEnvironmentSetUpFails (   self)
Tests the behavior of not specifying the fail_fast.

Definition at line 53 of file googletest-global-environment-unittest.py.

53 def testEnvironmentSetUpFails(self):
54 """Tests the behavior of not specifying the fail_fast."""
55
56 # Run the test.
57 txt = RunAndReturnOutput()
58
59 # We should see the text of the global environment setup error.
60 self.assertIn('Canned environment setup error', txt)
61
62 # Our test should have been skipped due to the error, and not treated as a
63 # pass.
64 self.assertIn('[ SKIPPED ] 1 test', txt)
65 self.assertIn('[ PASSED ] 0 tests', txt)
66
67 # The test case shouldn't have been run.
68 self.assertNotIn('Unexpected call', txt)
69
70

The documentation for this class was generated from the following file: