MCPcopy Index your code
hub / github.com/nodejs/node / testPass

Method testPass

deps/v8/tools/testrunner/standard_runner_test.py:58–74  ·  view source on GitHub ↗

Test running only passing tests in two variants. Also test printing durations.

(self)

Source from the content-addressed store, hash-verified

56 return standard_runner.StandardTestRunner
57
58 def testPass(self):
59 """Test running only passing tests in two variants.
60
61 Also test printing durations.
62 """
63 result = self.run_tests(
64 '--progress=verbose',
65 '--variants=default,stress',
66 '--time',
67 'sweet/bananas',
68 'sweet/raspberries',
69 )
70 result.stdout_includes('sweet/bananas default: PASS')
71 # TODO(majeski): Implement for test processors
72 # self.assertIn('Total time:', result.stderr, result)
73 # self.assertIn('sweet/bananas', result.stderr, result)
74 result.has_returncode(0)
75
76 def testPassHeavy(self):
77 """Test running with some tests marked heavy."""

Callers

nothing calls this directly

Calls 3

stdout_includesMethod · 0.80
has_returncodeMethod · 0.80
run_testsMethod · 0.45

Tested by

no test coverage detected