Commit graph

57 commits

Author SHA1 Message Date
Michal Dorner
dcaab46b46
Fix dart-json parsing broken by print message
Print message related to suite, instead of a specific test, would break parsing - it would expect test object to be present in dictionary but there would be none.
This fix adds necessary check and messages not related to tracked tests will be ignored.
2021-05-13 21:48:55 +02:00
Michal Dorner
43d89d5ee5
Fix dotnet-trx parser failing on passed tests with non-empty error info 2021-04-20 21:38:55 +02:00
Michal Dorner
6662b9362e
Fix dotnet-trx parsing of tests with custom display names 2021-04-20 08:40:05 +02:00
Michal Dorner
78b798ea79
Add mocha-json external test fixtures 2021-04-19 23:19:19 +02:00
Michal Dorner
ee126813a2
Merge branch 'dev' into mocha-json 2021-04-01 00:05:41 +02:00
Michal Dorner
cfaaaf1a47
Use non-breaking space between icon and suite name 2021-03-31 22:34:58 +02:00
Michal Dorner
690ec77880
New report rendering with code blocks instead of tables
Previously we listed tests using markdown tables. Each test group had it's own table and textual preface saying how many tests were executed in what time.
This was completely reworked - now tests are listed inside code block. Grouping is achieved using simple indentation. Duration of individual tests is no longer shown - it produced too much "noise" in the report. Pass/Fail check-mark was also moved before name of test suite.
Behavior of "listTests" option was also changed - now if set to failed, it will list all tests, but only if suite is failed. Otherwise test listing is completely omitted.
Last change affects report trimming - if report is still too big after "listTests" is set to "failed" - it will trim report to fit max size and add informational message at the end.
2021-03-31 21:49:53 +02:00
Michal Dorner
ea36be4653
Improve test error messages from flutter
For some reason the error message from flutter SDK might contain no useful information. Basically it just says that test failed and you should see the logs. Logs itself are provided as content of `print` event. This commit adds special processing for this behavior - it parses actual error message out of print event.
2021-03-31 21:25:54 +02:00
Michal Dorner
d5e42b8d57
dart-json: remove group name from test case names 2021-03-23 21:58:20 +01:00
Michal Dorner
3a0bb833dc
#83 - Use non-capturing optional group, add tests and update dist 2021-03-23 21:39:47 +01:00
Michal Dorner
9db99178aa
Add mocha-json test case for empty test results 2021-03-08 21:04:14 +01:00
Michal Dorner
3768e4e756
Merge branch 'main' into mocha-json 2021-03-08 21:00:14 +01:00
Michal Dorner
16adfe9b7e
Add support for java-junit 2021-03-07 22:06:12 +01:00
Michal Dorner
a9749e3840
Handle test reports with no test cases 2021-03-07 12:22:00 +01:00
Michal Dorner
8dba8714d0
Fix mocha report fixture + test duration handling 2021-02-24 21:32:51 +01:00
Michal Dorner
9b675bd55f
Add support for mocha-json 2021-02-23 22:39:35 +01:00
Michal Dorner
32f5b23752
Set listTests and listSuites to lower detail if report is too big 2021-02-20 22:32:30 +01:00
Michal Dorner
3510d9ac27
Add support for loading test results from artifacts 2021-02-15 15:18:55 +01:00
Michal Dorner
effa386fea
Fix dart/flutter stack trace parsing 2021-02-01 16:09:01 +01:00
Michal Dorner
855ff9bfaf
Fix flutter-json doesn't provide error details 2021-02-01 15:08:21 +01:00
Michal Dorner
2365963b2e
Fix dart-json not stripping cwd from suite paths 2021-02-01 12:05:15 +01:00
Michal Dorner
60b35d601a
Refactoring & cleanup of whole codebase
Improves report summary and annotations
2021-01-31 20:48:22 +01:00
Michal Dorner
c75a9dd8c8
Add table with reports results if there are more test runs 2021-01-29 00:51:08 +01:00
Michal Dorner
96e91aa726
Simplify 'only-failed' to 'failed' 2021-01-28 22:18:29 +01:00
Michal Dorner
f55c0119bb
Remove leading result icon + add external .net fixture 2021-01-28 22:03:01 +01:00
Michal Dorner
e3bb634029
Improve report format to save space 2021-01-25 14:21:44 +01:00
Michal Dorner
768aefbed2
Report: round times and skip Test Suites section if it's empty 2021-01-25 13:18:02 +01:00
Michal Dorner
3744805866
Add list-suites and list-tests options to limit report size 2021-01-25 12:56:20 +01:00
Michal Dorner
0919385c06
Add test using external test report fixture from jest project 2021-01-25 10:47:49 +01:00
Michal Dorner
42eb11a3c8
Add summary badge to report 2021-01-24 18:11:59 +01:00
Michal Dorner
6f3367ef61
Use normalizeFilePath() to unify test output on windows/Linux 2021-01-16 23:06:50 +01:00
Michal Dorner
c48c07640f
Support parsing multiple reports 2021-01-16 22:53:14 +01:00
Michal Dorner
659bb4fff3
Update interfaces to accept multiple reports to parse 2021-01-16 21:19:40 +01:00
Michal Dorner
760c090915
Fix EOL issues - remove all \r from annotation message 2021-01-14 22:34:00 +01:00
Michal Dorner
c4b64b0cf4
Add annotations support to dotnet-trx 2021-01-14 21:39:51 +01:00
Michal Dorner
b28f91cc2e
Add dotnet-trx support (no annotations yet) 2021-01-11 17:48:33 +01:00
Michal Dorner
e7636701ef
Fix tests + jest-junit uses action 'name' input for title 2021-01-10 18:01:52 +01:00
Michal Dorner
aed3b29c84
Add annotations support to dart-json parser 2021-01-10 11:21:16 +01:00
Michal Dorner
cc11acea10
Extend dart-json report with suites summary and test case results 2021-01-06 22:58:54 +01:00
Michal Dorner
e169ffb719
jest-junit - use milliseconds for test suites times 2021-01-06 22:51:03 +01:00
Michal Dorner
9b620ef56a
Add dart-json snapshot test 2021-01-05 23:43:49 +01:00
Michal Dorner
fef757f6df
Add initial version of dart-json parser 2021-01-05 23:43:30 +01:00
Michal Dorner
d071a83e6a
Put only test filename and test case name into annotation title 2020-11-29 21:27:10 +01:00
Michal Dorner
198c3d1af3
Remove duplicate text of top level test name 2020-11-29 20:50:52 +01:00
Michal Dorner
04a8489550
Add suite name to annotation title 2020-11-29 20:21:07 +01:00
Michal Dorner
bff3069f5c
Remove 'Details' column from Test case report
Stack traces doesn't fit well into the table - there was not enough width for it.  Now the stack traces are included in annotations which looks much better
2020-11-29 20:07:32 +01:00
Michal Dorner
ed138d561e
Remove start_column from annotation
We can't determine end_column
2020-11-28 22:13:19 +01:00
Michal Dorner
fc8cfe0f32
Create annotations where exceptions were thrown 2020-11-28 21:24:57 +01:00
Michal Dorner
95d3d1fb85
Manually create anchors for headings 2020-11-18 23:31:33 +01:00
Michal Dorner
651a2e1bf1 Fix uni tests 2020-11-17 23:07:45 +01:00