-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(ci): Add junit reporters to jest/vitest, codecov test results #15341
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
Changes from 2 commits
a375268
3c54638
455666a
5cc7979
8095394
0765013
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,6 +381,14 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload test results to Codecov | ||
if: cancelled() == false | ||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
continue-on-error: true | ||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uses: codecov/test-results-action@v1 | ||
with: | ||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
files: packages/**/*.xml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have hard-coded the path to the test results. This could potentially cause problems when the project structure changes. Consider moving this into a configuration file or an environment variable so that any potential changes in the project structure are easier to manage. |
||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
job_bun_unit_tests: | ||
name: Bun Unit Tests | ||
needs: [job_get_metadata, job_build] | ||
|
@@ -484,6 +492,14 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Upload test results to Codecov | ||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if: cancelled() == false | ||
continue-on-error: true | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
files: packages/**/*.junit.xml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
job_browser_playwright_tests: | ||
name: Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}', matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests | ||
needs: [job_get_metadata, job_build] | ||
|
@@ -701,6 +717,14 @@ jobs: | |
working-directory: dev-packages/node-integration-tests | ||
run: yarn test | ||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Upload test results to Codecov | ||
if: cancelled() == false | ||
continue-on-error: true | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
directory: dev-packages/node-integration-tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
job_remix_integration_tests: | ||
name: Remix (Node ${{ matrix.node }}) Tests | ||
needs: [job_get_metadata, job_build] | ||
|
@@ -737,6 +761,14 @@ jobs: | |
cd packages/remix | ||
yarn test:integration:ci | ||
billyvg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Upload test results to Codecov | ||
if: cancelled() == false | ||
continue-on-error: true | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
directory: packages/remix | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
job_e2e_prepare: | ||
name: Prepare E2E tests | ||
# We want to run this if: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,10 @@ export default defineConfig({ | |
enabled: true, | ||
reportsDirectory: './coverage', | ||
}, | ||
reporters: ['default', 'junit'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have chosen to use both the 'default' and 'junit' reporters. Ensure that using both these reporters together does not produce conflicting or duplicate reports. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the |
||
outputFile: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double check the jest configurations and make sure that |
||
junit: `vitest.junit.xml`, | ||
}, | ||
typecheck: { | ||
tsconfig: './tsconfig.test.json', | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19066,6 +19066,16 @@ jest-jasmine2@^27.5.1: | |
pretty-format "^27.5.1" | ||
throat "^6.0.1" | ||
|
||
jest-junit@^16.0.0: | ||
version "16.0.0" | ||
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-16.0.0.tgz#d838e8c561cf9fdd7eb54f63020777eee4136785" | ||
integrity sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ== | ||
dependencies: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The addition of the jest-junit package has introduced several new dependencies. Make sure these new dependancies do not cause conflicts with existing code or other packages. |
||
mkdirp "^1.0.4" | ||
strip-ansi "^6.0.1" | ||
uuid "^8.3.2" | ||
xml "^1.0.1" | ||
|
||
jest-leak-detector@^27.5.1: | ||
version "27.5.1" | ||
resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8" | ||
|
@@ -30490,6 +30500,11 @@ xml-name-validator@^4.0.0: | |
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835" | ||
integrity sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw== | ||
|
||
xml@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" | ||
integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw== | ||
|
||
xmlchars@^2.2.0: | ||
version "2.2.0" | ||
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" | ||
|
Uh oh!
There was an error while loading. Please reload this page.