Skip to content
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

test: add testing groups and browser testing environment #728

Closed
wants to merge 52 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
9ee8d19
add `jest-runner-groups` and tag tests
Dhaiwat10 Jan 13, 2023
28fbf75
add `jsdom` and new workflow file to test
Dhaiwat10 Jan 13, 2023
df2e508
fix typo in workflow file
Dhaiwat10 Jan 13, 2023
5ccf2b6
Revert "fix typo in workflow file"
Dhaiwat10 Jan 13, 2023
8799f16
fix usage of `pnpm test` in CI
Dhaiwat10 Jan 13, 2023
4abf41b
run all 4 test groups in parallel
Dhaiwat10 Jan 13, 2023
b647cca
rename workflow files
Dhaiwat10 Jan 13, 2023
5aa382a
fix some misgrouped tests
Dhaiwat10 Jan 16, 2023
8e50548
run services for e2e tests
Dhaiwat10 Jan 16, 2023
63d54a8
add empty changeset
Dhaiwat10 Jan 16, 2023
51d4bb4
polyfill `TextEncoder` and `TextDecoder`
Dhaiwat10 Jan 16, 2023
f4e8481
Merge branch 'master' into dp/testing-groups
Dhaiwat10 Jan 17, 2023
b790b7b
Merge branch 'master' into dp/testing-groups
Dhaiwat10 Jan 31, 2023
4bc2268
use puppeteer for browser unit tests
Dhaiwat10 Jan 31, 2023
35faf15
use pupeteer for all browser tests, remove jsdom
Dhaiwat10 Jan 31, 2023
7677df5
delete old test workflow, move lint checks
Dhaiwat10 Jan 31, 2023
79b3bb0
add build step to lint action
Dhaiwat10 Jan 31, 2023
1aa45ce
run e2e tests sequentially
Dhaiwat10 Jan 31, 2023
df94fce
Merge branch 'master' into dp/testing-groups
Dhaiwat10 Feb 3, 2023
9127f1c
Merge branch 'master' into dp/testing-groups
Dhaiwat10 Feb 24, 2023
a49de06
add label to `account.test.ts`
Dhaiwat10 Feb 24, 2023
c3338b6
try merging coverage reports using gh artifacts
Dhaiwat10 Feb 24, 2023
05d748b
temp remove node e2e tests from reqd list bc theyre failing
Dhaiwat10 Feb 24, 2023
75665c1
Update merge-coverage.yaml
Dhaiwat10 Feb 24, 2023
ca11124
Update merge-coverage.yaml
Dhaiwat10 Feb 24, 2023
1b1e7e2
rename workflows
Dhaiwat10 Feb 25, 2023
6e9f289
Update merge-coverage.yaml
Dhaiwat10 Feb 25, 2023
b49503d
update logic
Dhaiwat10 Feb 25, 2023
3e0262b
Update merge-coverage.yaml
Dhaiwat10 Feb 25, 2023
db9e535
Update merge-coverage.yaml
Dhaiwat10 Feb 25, 2023
a37da5d
Update merge-coverage.yaml
Dhaiwat10 Feb 25, 2023
3d0d4b6
Update merge-coverage.yaml
Dhaiwat10 Feb 27, 2023
9e434b0
Update merge-coverage.yaml
Dhaiwat10 Feb 27, 2023
44d5c29
update workflow files
Dhaiwat10 Feb 27, 2023
a60c542
Update merge-coverage.yaml
Dhaiwat10 Feb 27, 2023
3cf3d9b
rename workflow file
Dhaiwat10 Feb 27, 2023
e96513b
run workflows only for this pr
Dhaiwat10 Feb 27, 2023
3549d51
only run workflow for this pr
Dhaiwat10 Feb 27, 2023
ab2f3b6
only run workflow for this pr
Dhaiwat10 Feb 27, 2023
3bc6561
only run workflow for this pr
Dhaiwat10 Feb 27, 2023
9058236
only run workflow for this pr
Dhaiwat10 Feb 27, 2023
131fbcd
Update browser-e2e-tests.yaml
Dhaiwat10 Feb 27, 2023
7a3e7ff
fix
Dhaiwat10 Feb 27, 2023
8b460f4
reset pr-lint workflow
Dhaiwat10 Feb 27, 2023
25f416c
Merge branch 'master' into dp/testing-groups
Dhaiwat10 Feb 27, 2023
bd5354e
remove jest-runner-groups
Dhaiwat10 Mar 6, 2023
863f636
rename test file
Dhaiwat10 Mar 6, 2023
4f32fa5
remove `--group`
Dhaiwat10 Mar 6, 2023
1a79736
change patterns
Dhaiwat10 Mar 6, 2023
0b1086a
try `npx jest` instead of `pnpm test`
Dhaiwat10 Mar 6, 2023
7ac4759
update patterns
Dhaiwat10 Mar 6, 2023
5e7427c
Update sumMerkleTree.common.unit.test.ts
Dhaiwat10 Mar 6, 2023
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
Prev Previous commit
Next Next commit
Update merge-coverage.yaml
Dhaiwat10 committed Feb 27, 2023
commit a60c542632c4b0343d919eea394dde73720c34b7
29 changes: 27 additions & 2 deletions .github/workflows/merge-coverage.yaml
Original file line number Diff line number Diff line change
@@ -13,8 +13,33 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- name: Download coverage report for Browser unit tests
uses: dawidd6/action-download-artifact@v2
with:
workflow: browser-unit-tests.yaml
name: browswer-unit-coverage
path: browser-unit-coverage

- name: Download coverage report for Browser e2e tests
uses: dawidd6/action-download-artifact@v2
with:
workflow: browser-e2e-tests.yaml
name: browswer-e2e-coverage
path: browser-e2e-coverage

- name: Download coverage report for Node unit tests
uses: dawidd6/action-download-artifact@v2
with:
workflow: node-unit-tests.yaml
name: node-unit-coverage
path: node-unit-coverage

- name: Download coverage report for Node e2e tests
uses: dawidd6/action-download-artifact@v2
with:
workflow: node-e2e-tests.yaml
name: node-e2e-coverage
path: node-e2e-coverage

- name: Merge all coverage reports
run: npx istanbul-merge --out coverage-merged.json browser-unit-coverage/coverage-final.json browser-e2e-coverage/coverage-final.json node-unit-coverage/coverage-final.json node-e2e-coverage/coverage-final.json