Commit graph

412 commits

Author SHA1 Message Date
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
Abel Braaksma
f191e67022
Improve clarity on configuring for forkable repos
Add a note to signify that a workflow-based run won't execute in a PR and must be merged into `main` first.
2022-11-24 18:28:51 +01:00
Ats Uiboupin
578b47fbd3
update generated files
Closes #208
2022-11-19 22:20:44 +02: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
Ats Uiboupin
b41f730922
ignore IntelliJ Idea IDE folder 2022-11-18 17:50:14 +02:00
Ats Uiboupin
d71eea3059
add .nvmrc 2022-11-18 17:47:49 +02:00
Michal Dorner
074fe2cd27
Merge pull request #193 from rvdlaarschot/mocha-empty-test-suite
Gracefully handle empty nested testsuite elements for JUnit.
2022-11-13 13:25:06 +01:00
Michal Dorner
3b54f63d95
Update dist/index.js 2022-11-13 13:22:18 +01: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
Michal Dorner
21b00b9bcc
Merge pull request #207 from dorny/issue-205-check-dist
Verify content of dist/ folder matches build output
2022-11-13 13:13:36 +01:00
Michal Dorner
f3b6327f90
Disable generation of the source map 2022-11-13 12:55:50 +01:00
Michal Dorner
59de73d003
Verify content of dist/ folder matches build output 2022-11-13 12:39:16 +01:00
Dharmendra Soni
3cca7492d0
Merge pull request #200 from petrdvorak/main
Fix #199: Use  instead of ✔️ for better cross platform look
2022-11-03 04:28:34 +05:30
Michal Dorner
c9b3d0e2bd
Update CHANGELOG for v1.6.0 2022-10-13 22:14:03 +02:00
Michal Dorner
d93282af1c
Merge pull request #203 from dorny/update-node-and-dependencies
Update to node16 + recent versions of core and exec packages
2022-10-13 22:09:41 +02:00
Michal Dorner
e54753f811
Update to node16 + recent versions of core and exec packages 2022-10-13 22:05:31 +02:00
Petr Dvořák
ba1a54f2f4
Update markdown-utils.ts 2022-10-05 22:01:58 +02:00
Petr Dvořák
ae902f665e
Fix #199: Use instead of ✔️ for better cross platform look
- Use the  for passed tests
- Use the  for skipped tests
2022-10-05 22:01:28 +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
0d9714ddc7
Merge pull request #186 from dorny/update-dependencies
Update all dependencies to latest versions
2022-08-23 23:13:53 +02:00
Michal Dorner
aba461c3a7
Downgrade got package to v11.x
got@v12.x has a dependency on @sindresorhus/is@v5.x and it uses optional chaining operator "?.".  
Probably due to issue https://github.com/vercel/ncc/issues/873 this syntax got into our dist/index.js. For some unknown reason it results in error when action is executed in GitHub runner despite the node version is 16.17.
2022-08-23 23:10:34 +02:00
Michal Dorner
a95a149c9a
Print used node version in CI job 2022-08-23 22:46:11 +02:00
Michal Dorner
0b7f7244db
Update dist 2022-08-20 00:10:53 +02:00
Michal Dorner
b595428c55
Update multiple packages + fix eslint resolver issue 2022-08-20 00:06:56 +02:00
Michal Dorner
5558abf4ac
Update prettier 2022-08-19 23:40:20 +02:00
Michal Dorner
bbf369dfb0
Update got 2022-08-19 23:39:23 +02:00
Michal Dorner
57e5862411
Update multiple packages and configs 2022-08-19 23:37:14 +02:00
Michal Dorner
81fcbf17a9
Update js-yaml 2022-08-19 22:21:54 +02:00
Michal Dorner
4c7348c4be
Update TypeScript 2022-08-19 22:19:29 +02:00
Michal Dorner
8848447e3f
Fix tests on non us-EN local env (#185)
* Fix tests on non us-EN local env

Different locale might result in different alphabetical order of tests in report. Tests using snapshot comparison then fails

* Fix code style
2022-08-19 21:53:20 +02:00
Vasanth Dharmaraj
8b0cebbf1d
Merge pull request #1 from vasanthdharmaraj/remove-excessive-logging 2022-06-18 01:09:08 +05:30
Vasanth Dharmaraj
19aaf9016e
Suppress "Processing test results from" log 2022-06-18 01:08:45 +05:30
Ryan Casburn
6bd7855a9d
Update jest-Junit part of Readme
I had issues with setting --reporters=jest-Junit". I found I needed to use --reporters=jest-junit" instead.
2022-06-05 14:46:30 -04:00
Tomer Figenblat
c3f44eaca3
fix: action fields with default values should not be required
Signed-off-by: Tomer Figenblat <tomer.figenblat@gmail.com>
2022-05-07 12:50:04 +03:00
Ian Moroney
d553414051
Update README.md
updated Junit to lowercase junit.
If the reporter is used as "jest-Junit" in a linux build agent, the test runner throws a `module not found` error related to Junit.
Setting `--reporters=jest-junit` solves the problem.
2022-02-14 15:07:15 +00:00
Linas Daneliukas
74d8fd673e shortSummary const 2021-11-30 10:56:33 +02:00
Linas Daneliukas
d1e7a9281a Update check title and remove icon 2021-10-11 15:35:03 +03:00
Michal Dorner
0d00bb14cb
Update CHANGELOG to 1.5.0 2021-06-22 22:43:05 +02:00
Michal Dorner
a585725c8b
Merge pull request #128 from dorny/issue-127-fix-pattern-with-backslash
Add option to convert backslashes in path pattern to forward slashes
2021-06-22 22:40:02 +02:00
Michal Dorner
de0b4b9ece
Add option to convert backslashes in path pattern to forward slashes
The fast-glob library that is internally used interprets backslashes as escape characters. If enabled, all backslashes in provided path will be replaced by forward slashes and act as directory separators. It might be useful when path input variable is composed dynamically from existing directory paths on Windows.

Closes #127
2021-06-22 22:33:11 +02:00
Michal Dorner
ad831af420
Merge pull request #123 from workgroupengineering/features/only-summary
Add option to generate only the summary from processed test results files
2021-06-22 21:32:05 +02:00
Michal Dorner
2ac8b4498f
Force generating summary if there is single results file and onlySummary is enabled 2021-06-22 21:28:22 +02:00
Giuseppe Lippolis
17e793242c feat: allows to generate the summary only. 2021-06-03 10:57:57 +02:00
Michal Dorner
e8f4fdfec7
Merge pull request #118 from dorny/java-junit-support-errors
Fix JUnit test-cases with error misclassified as passed test
2021-05-24 15:06:06 +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
6969ae6af5
Update CHANGELOG for v1.4.3 2021-05-13 23:01:52 +02:00
Michal Dorner
7c6c7df048
Remove depandabot - for this project its too annoying without real benefits 2021-05-13 23:00:15 +02:00