Skip to content

Update branch with latest changes #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: feature/QUAL-5706-coverage-diff
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog of the Jest Coverage Comment

## [Jest Coverage Comment 1.0.27](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.27)

**Release Date:** 2024-09-18

#### Changes

- Fix use cases when comment post by not `github-actions[bot]` and not updated, thanks to [@mluizaa00](https://github.com/mluizaa00) for contribution

## [Jest Coverage Comment 1.0.26](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.26)

**Release Date:** 2024-04-30

#### Changes

- Handle case when testsuites is not the root element of the JUnit xml file, thanks to [@JakeFDev](https://github.com/JakeFDev) for contribution

## [Jest Coverage Comment 1.0.25](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.25)

**Release Date:** 2024-01-30
Expand Down
12 changes: 12 additions & 0 deletions __tests__/junit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ describe('parsing junit', () => {
'Parse JUnit report. Non-whitespace before first tag.\nLine: 0\nColumn: 1\nChar: b'
)
})

test('should work with omitted parent testsuites element', async () => {
const xml =
'<?xml version="1.0" encoding="UTF-8"?><testsuite name="should test controller" errors="0" failures="0" skipped="0" timestamp="2022-03-21T21:15:26" time="0.981" tests="2"><testcase classname="should test controller when #getPost method method succeeds" name="should test controller when #getPost method method succeeds" time="0.004"></testcase><testcase classname="should test controller when #getPost method method fails" name="should test controller when #getPost method method fails" time="0.001"></testcase></testsuite>'
const junit = await parseJunit(xml)

expect(junit?.skipped).toBe(0)
expect(junit?.errors).toBe(0)
expect(junit?.failures).toBe(0)
expect(junit?.tests).toBe(2)
expect(junit?.time).toBe(0.981)
})
})

describe('parse junit and check report output', () => {
Expand Down
41,361 changes: 31,392 additions & 9,969 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

152 changes: 47 additions & 105 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading