Commit graph

97 commits

Author SHA1 Message Date
Oles Galatsan
b522d19cac
Return links to summary report 2025-06-08 13:09:27 +02:00
Shamus Taylor
a0398fb7dd Correct behavior for test cases with slashes 2025-05-17 13:42:38 +02:00
Shamus Taylor
7745ff0ec1 Add Golang test parser 2025-05-17 13:41:22 +02:00
Michael Marcus
f1fa471229 Update all tests 2025-05-17 13:37:38 +02:00
Michael Marcus
0f47a5bec1 Update README; use empty string as default 2025-05-17 13:36:24 +02:00
Michael Marcus
2b2d091d3d Do not print a title if none is specified in the config 2025-05-17 13:36:24 +02:00
Michael Marcus
0840d7c281 Add test for java-junit 2025-05-17 13:36:23 +02:00
Michael Marcus
0841c8130e Feature: Add summary title
Add new option `report-title` to add H1 title to the Markdown report

Resolves #540
2025-05-17 13:36:23 +02:00
Oles Galatsan
5b44774702 Add integration test for empty TRX TestDefinitions 2025-05-16 10:25:02 +03:00
Michael Marcus
314ef1dd49 Fix broken links in report summary
Resolves #566
2025-03-25 14:35:49 -04:00
Connor Monaghan
70db77d88c feat: parse junit report with message 2025-03-11 18:11:28 +10:00
Jozef Izso
7befe80c6c Update format of the jest-junit-eslint.md output file 2024-06-26 13:45:39 +02:00
Philipp Jardas
45526f79fd Fix parsing of ESLint reports in jest-junit format
The [ESLint junit formatter](https://www.npmjs.com/package/eslint-junit)
does not include a total time attribute for the root `<testsuites>`
element.
2024-06-26 13:42:32 +02:00
Ray Xu
84e60bad69 Merge branch 'upstream-main' into ritchxu/support-actions-summary 2024-06-25 10:26:24 -07:00
Ray Xu
1db430559c Reaction to PR feedback 2024-06-25 10:19:55 -07:00
Anthony Barbier
521e122f40 Fix JUnit message / type fields. 2024-06-25 14:41:42 +02:00
Jozef Izso
1397b99b7c Refactor dotnet-nunit parser to DotnetNunitParser 2024-06-25 14:09:10 +02:00
Jozef Izso
c40b69fc4a Fix code formatting and update snapshot for dotnet-unit tests 2024-06-25 14:01:36 +02:00
Kevin Ring
953e623fd8 Report times in milliseconds. 2024-06-25 13:57:09 +02:00
Kevin Ring
49c1f3ae6c Implement NUnit 3 parser. 2024-06-25 13:57:09 +02:00
Michal Dorner
b34d4b1bfe Add NUnit XML results fixtures 2024-06-25 13:57:08 +02:00
Ray Xu
574868ab61 Undo trx parsing changes temporarily 2024-05-29 17:03:02 -07:00
dominicmh
a26c5eaf39 make test fail by adding setUpAll and tearDownAll 2024-04-12 21:25:30 +02:00
oscar mampel
1a3cfe6b48 Add support for rspec 2024-03-14 00:40:50 +01:00
Ray Xu
0b7d35fd12 Merge branch 'dorny:main' 2024-03-03 14:06:44 -08:00
Jozef Izso
7aa575a237 Add tests for results with React component names 2023-12-18 13:59:17 +01:00
Jozef Izso
dd41adfb19 Update all development packages
Updates snapshot files for the jest 29
2023-12-13 15:44:36 +01:00
Michal Dorner
62b89ea98d
Apply code style fix 2023-12-09 21:17:07 +01:00
Jozef Izso
1c044b4aef Add SwiftXunitParser class based on JavaJunitParser for swift-xunit reporter 2023-11-08 16:27:24 +01:00
Ray Xu
724497a84c Fix edge case of one test assembly 2023-01-04 23:37:43 +00:00
Ray Xu
3608ee03fd Add option of use-actions-summary 2023-01-04 23:29:10 +00:00
Ray Xu
83b7f42d2d Persist test summary on disk 2023-01-04 22:53:35 +00:00
Michal Dorner
6af36d9ecf
Merge branch 'main' into issue-208-java-junit-show-annotations-on-pr-changed-files 2022-11-29 09:41:00 +01:00
Hervé Audren
a91086638b Gracefully handle empty failure tags
This commit fixes #137. Some JUnit generators emit an empty failure tag,
with only a message property set. In those cases, the parser crashes
when trying to match the failure with a source file. Since this feature
is optional, the simplest fix is to skip the processing when the failure
tag is empty.

Also added a test, and the corresponding input file is generated from a
reporter within our codebase.
2022-11-29 08:45:53 +09:00
Ats Uiboupin
aebbb4d7c4
fix(java-junit): parse StackTraceElement with custom classloader
Fixes #208
2022-11-19 22:17:15 +02:00
Ats Uiboupin
3a48f6e045
fix(java-junit): stack trace line can start with whitespaces
Fixes #208
2022-11-19 22:17:06 +02:00
Ats Uiboupin
e5edb614dd refactor: extract parsing java StackTraceElement to allow improving 2022-11-19 21:01:30 +02:00
Michal Dorner
48bf7af48b
Merge branch 'main' into mocha-empty-test-suite 2022-11-13 13:20:55 +01:00
Michal Dorner
2f63fb86e1
Update test outputs after #199 2022-11-13 13:19:47 +01:00
Ramon van de Laarschot
a3356fa639 Gracefully handle empty nested testsuite elements for JUnit.
This fixes an issue with mocha-junit-reporter returning empty root-level testsuite elements.
2022-09-09 16:51:32 +02:00
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