Lines Matching refs:test
3 " Errors are appended to the test.log file.
5 " To execute only specific test functions, add a second argument. It will be
10 " If the environment variable $TEST_FILTER is set then only test functions
16 " If the environment variable $TEST_SKIP_PAT is set then test functions
19 " While working on a test you can make $TEST_NO_RETRY non-empty to not retry:
26 " The failure report will then not be included in the test.log file and
27 " "make test" will not fail.
29 " The test script may contain anything, only functions that start with
39 " call add(v:errors, 'test foo failed: Cannot find xyz')
47 " When debugging a test it can be useful to add messages to v:errors:
65 split test.log
107 " Ignore finding a swap file for the test script (the user might be
149 " message is displayed. This breaks the terminal test. Disable the warning
172 func RunTheTest(test) argument
173 echoconsole 'Executing ' . a:test
192 " The test may change the current directory. Save and restore the
193 " directory after executing the test.
200 …call add(v:errors, 'Caught exception in SetUp() before ' . a:test . ': ' . v:exception . ' @ ' . v…
204 if a:test =~ 'Test_nocatch_'
208 exe 'call ' . a:test
211 call add(s:skipped, 'SKIPPED ' . a:test . ': ' . g:skipped_reason)
216 exe 'call ' . a:test
220 call add(s:skipped, 'SKIPPED ' . a:test . ': ' . substitute(v:exception, '^\S*\s\+', '', ''))
222 … call add(v:errors, 'Caught exception in ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint)
234 …call add(v:errors, 'Caught exception in TearDown() after ' . a:test . ': ' . v:exception . ' @ ' .…
273 let message = 'Executed ' . a:test
304 func EarlyExit(test) argument
305 " It's OK for the test we use to test the quit detection.
306 if a:test != 'Test_zz_quit_detected()'
307 call add(v:errors, 'Test caused Vim to exit: ' . a:test)
313 " This function can be called by a test if it wants to abort testing.
330 " Append errors to test.log
331 split test.log
352 let message = 'Executed ' . s:done . (s:done > 1 ? ' tests' : ' test')
387 " Source the test script. First grab the file name, in case the script
398 " this test has intentional errors, don't use try/catch.
452 " A test can set g:test_is_flaky to retry running the test.
457 " Repeat a flaky test. Give up when:
472 call add(total_errors, 'Flaky test failed too often, giving up')
477 call add(s:messages, 'Flaky test failed, running it again')