Commit graph

56 commits

Author SHA1 Message Date
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
Michal Dorner
86d6ec5dd5
Update dist/index.js 2022-11-29 08:55:49 +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
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
b595428c55
Update multiple packages + fix eslint resolver issue 2022-08-20 00:06:56 +02:00
Michal Dorner
4c7348c4be
Update TypeScript 2022-08-19 22:19:29 +02:00
Michal Dorner
d01ef000ba
Fix JUnit test-cases with error misclassified as passed test
Previous implementation considered only test-cases with <failure> as failed. This fix makes processing of <error> and <failure> the same. It also handles situation when error or failure elements contains only text and no attributes.
2021-05-24 15:03:34 +02:00
Michal Dorner
72c193c336
Patch java-junit to handle missing time field
Normally a <testsuites> element has a time field. In some JUnit implementations this field is missing. This issue was found in junit XML created in matlab.

At the moment I don't plan to explicitly support matlab - that would require to add more tests and documentation. However this patch should make it work with the existing java-junit parser.
2021-05-13 22:39:52 +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
ee126813a2
Merge branch 'dev' into mocha-json 2021-04-01 00:05:41 +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
d29a37e78a
Fixes #82 - net-trx parser handles missing duration attribute 2021-03-24 18:02:31 +01:00
Michal Dorner
d5e42b8d57
dart-json: remove group name from test case names 2021-03-23 21:58:20 +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
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
2834fd0c5f
Update dist/index.js 2021-02-01 15:27:52 +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
9c4a2c56d7
Updates to README and info logs 2021-02-01 11:14:07 +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
3744805866
Add list-suites and list-tests options to limit report size 2021-01-25 12:56:20 +01:00
Michal Dorner
40b5f476c7
remove auto conversion of XML attributes based on value 2021-01-24 21:05:34 +01:00
Michal Dorner
1ab5efa052
Improve logging and error handling 2021-01-18 22:21:19 +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
4e2ae7493f
Refactoring: parsers share markdown report generation 2021-01-10 17:56:35 +01:00
Michal Dorner
64b8f12bbc
Rename 'test-parser' to 'parser-types' 2021-01-10 11:23:51 +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
fef757f6df
Add initial version of dart-json parser 2021-01-05 23:43:30 +01:00
Michal Dorner
cb5a347172
Add type definitions for dart-json 2021-01-05 23:42:57 +01:00
Michal Dorner
be4cb45afb Fix for @octokit/types 6.0.0 2020-12-22 10:57:58 +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