-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented
console-lines
mode which prints each test on separate l…
…ine. (#443) This is handy for environments with non-standard (buffered) handling of standard output, for example Github Actions (where a progress of tests cannot be seen until until end-of-line appears, which in standard `console` mode happens only when all tests finish) or Docker Compose logging output, where in standard `console` mode each finished test's dot is printed alone on separate line. Or the console-lines mode can be handy just to see a more detailed progress of tests in all environments, because it outputs something like this: ``` · 1/85 Framework/Assert.contains.phpt OK in 0.14 s · 2/85 CodeCoverage/PhpParser.parse.edge.phpt OK in 0.17 s · 3/85 CodeCoverage/PhpParser.parse.lines-of-code.phpt SKIPPED in 0.18 s · 4/85 CodeCoverage/PhpParser.parse.lines.phpt FAILED in 0.19 s ... ``` Also, "cider mode" now shows a lemon emoji for skipped tests. Co-authored-by: David Grudl <david@grudl.com>
- Loading branch information
Showing
5 changed files
with
136 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
%a% | %a% | 1 thread | ||
|
||
· 1/11 .%ds%01-basic.fail.phptx FAIL in %f% s | ||
· 2/11 .%ds%01-basic.pass.phptx OK in %f% s | ||
· 3/11 .%ds%01-basic.skip.phptx SKIP in %f% s | ||
· 4/11 .%ds%02-title.fail.phptx [Title for output handlers] FAIL in %f% s | ||
· 5/11 .%ds%02-title.pass.phptx [Title for output handlers] OK in %f% s | ||
· 6/11 .%ds%02-title.skip.phptx [Title for output handlers] SKIP in %f% s | ||
· 7/11 .%ds%03-message.fail.phptx FAIL in %f% s | ||
· 8/11 .%ds%03-message.skip.phptx SKIP in %f% s | ||
Multi | ||
line | ||
message. | ||
· 9/11 .%ds%04-args.fail.phptx FAIL in %f% s | ||
· 10/11 .%ds%04-args.pass.phptx OK in %f% s | ||
· 11/11 .%ds%04-args.skip.phptx SKIP in %f% s | ||
Multi | ||
line | ||
message. | ||
|
||
|
||
-- FAILED: 01-basic.fail.phptx | ||
Multi | ||
line | ||
stdout.Failed: | ||
|
||
in %a%01-basic.fail.phptx(%d%) Tester\Assert::fail(''); | ||
|
||
STDERR: | ||
Multi | ||
line | ||
stderr. | ||
|
||
-- FAILED: Title for output handlers | 02-title.fail.phptx | ||
Multi | ||
line | ||
stdout.Failed: | ||
|
||
in %a%02-title.fail.phptx(%d%) Tester\Assert::fail(''); | ||
|
||
STDERR: | ||
Multi | ||
line | ||
stderr. | ||
|
||
-- FAILED: 03-message.fail.phptx | ||
Multi | ||
line | ||
stdout.Failed: Multi | ||
line | ||
message. | ||
|
||
in %a%03-message.fail.phptx(%d%) Tester\Assert::fail("Multi\nline\nmessage."); | ||
|
||
STDERR: | ||
Multi | ||
line | ||
stderr. | ||
|
||
-- FAILED: 04-args.fail.phptx dataprovider=thisIsAVeryVeryVeryLongArgumentNameToTestHowOutputHandlersDealWithItsLengthInTheirOutputFormatting|%a%provider.ini | ||
Multi | ||
line | ||
stdout.Failed: | ||
|
||
in %a%04-args.fail.phptx(%d%) Tester\Assert::fail(''); | ||
|
||
STDERR: | ||
Multi | ||
line | ||
stderr. | ||
|
||
|
||
FAILURES! (11 tests, 4 failures, 4 skipped, %a% seconds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters