Skip to content

Commit

Permalink
ci: manual migration of test- strings
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 9, 2024
1 parent 070f9f2 commit ce2f01a
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module.exports = {
{
// These tests use EV() instead of E(), which are easy to confuse.
// Help by erroring when E() packages are imported.
files: ['packages/boot/test/**/test-*'],
files: ['packages/boot/test/**/*.test.*'],
rules: {
'no-restricted-imports': [
'error',
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ jobs:
# END-TEST-BOILERPLATE
- name: yarn test (SwingSet)
if: (success() || failure())
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[A-Da-d]*.js' | $TEST_COLLECT
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[A-Da-d]*' | $TEST_COLLECT
- name: notify on failure
if: failure() && github.event_name != 'pull_request'
uses: ./.github/actions/notify-status
Expand Down Expand Up @@ -540,7 +540,7 @@ jobs:
# END-TEST-BOILERPLATE
- name: yarn test (SwingSet)
if: (success() || failure())
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[E-Ie-i]*.js' | $TEST_COLLECT
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[E-Ie-i]*' | $TEST_COLLECT
- name: yarn test (xsnap-lockdown)
if: (success() || failure())
run: cd packages/xsnap-lockdown && yarn ${{ steps.vars.outputs.test }} | $TEST_COLLECT
Expand Down Expand Up @@ -591,7 +591,7 @@ jobs:
# END-TEST-BOILERPLATE
- name: yarn test (SwingSet)
if: (success() || failure())
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[J-Rj-r]*.js' | $TEST_COLLECT
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[J-Rj-r]*' | $TEST_COLLECT
- name: notify on failure
if: failure() && github.event_name != 'pull_request'
uses: ./.github/actions/notify-status
Expand Down Expand Up @@ -633,7 +633,7 @@ jobs:

- name: yarn test (SwingSet)
if: (success() || failure())
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[S-Zs-z0-9]*.js' | $TEST_COLLECT
run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[S-Zs-z0-9.test]*.js' | $TEST_COLLECT
- name: notify on failure
if: failure() && github.event_name != 'pull_request'
uses: ./.github/actions/notify-status
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"ava": {
"files": [
"packages/*/test/**/test-*.ts"
"packages/*/test/**/test-*.*",
"packages/*/test/**/*.test.*"
],
"timeout": "30m"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"exclude": [
"swingsetTests",
"# fast-check unsupported",
"test/unitTests/test-amountProperties.js",
"test/unitTests/test-inputValidation.js",
"test/unitTests/test-issuerObj.js"
"test/unitTests/amountProperties.test.js",
"test/unitTests/inputValidation.test.js",
"test/unitTests/issuerObj.test.js"
]
},
"ava": {
Expand Down
2 changes: 1 addition & 1 deletion packages/agoric-cli/.ava-integration-test.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @jessie-check

export default {
files: ['integration-tests/test-workflow.js'],
files: ['integration-tests/*.test.*'],
timeout: '10m',
workerThreads: false,
};
2 changes: 1 addition & 1 deletion packages/xsnap/src/avaXS.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Usage:
node avaXS.js [--debug] test-*.js
node avaXS.js [--debug] *.test.js
*/

Expand Down
62 changes: 31 additions & 31 deletions packages/zoe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,41 +87,41 @@
"exclude": [
"# path/url/import.meta stuff",
"unitTests/contracts/",
"test/swingsetTests/privateArgs/test-privateArgs.js",
"test/swingsetTests/brokenContracts/test-crashingContract.js",
"test/swingsetTests/offerArgs/test-offerArgs.js",
"test/swingsetTests/makeKind/test-makeKind.js",
"test/swingsetTests/zoe/test-zoe.js",
"test/swingsetTests/runMint/test-runMint.js",
"test/unitTests/test-zoe.js",
"test/unitTests/test-scriptedOracle.js",
"test/unitTests/test-makeKind.js",
"test/unitTests/test-instanceStorage.js",
"test/unitTests/contractSupport/test-depositTo.js",
"test/unitTests/contractSupport/test-withdrawFrom.js",
"test/unitTests/contractSupport/test-offerTo.js",
"test/unitTests/zcf/test-zcfSeat.js",
"test/unitTests/zcf/test-zcfSeat-exit.js",
"test/swingsetTests/privateArgs/privateArgs.test.js",
"test/swingsetTests/brokenContracts/crashingContract.test.js",
"test/swingsetTests/offerArgs/offerArgs.test.js",
"test/swingsetTests/makeKind/makeKind.test.js",
"test/swingsetTests/zoe/zoe.test.js",
"test/swingsetTests/runMint/runMint.test.js",
"test/unitTests/zoe.test.js",
"test/unitTests/scriptedOracle.test.js",
"test/unitTests/makeKind.test.js",
"test/unitTests/instanceStorage.test.js",
"test/unitTests/contractSupport/depositTo.test.js",
"test/unitTests/contractSupport/withdrawFrom.test.js",
"test/unitTests/contractSupport/offerTo.test.js",
"test/unitTests/zcf/zcfSeat.test.js",
"test/unitTests/zcf/zcfSeat-exit.test.js",
"test/unitTests/zcf/setupZcfTest.js",
"test/unitTests/zcf/test-feeMintAccess.js",
"test/unitTests/zcf/feeMintAccess.test.js",
"# import.meta.url by way of setupZcfTest",
"test/unitTests/test-zoe.js",
"test/unitTests/test-zoe-startInstance.js",
"test/unitTests/test-blockedOffers.js",
"test/unitTests/zcf/test-reallocate-empty.js",
"test/unitTests/zcf/test-zoeHelpersWZcf.js",
"test/unitTests/zcf/test-reallocateForZCFMint.js",
"test/unitTests/zcf/test-atomicRearrange.js",
"test/unitTests/zcf/test-zcf.js",
"test/unitTests/zcf/test-allStagedSeatsUsed.js",
"test/unitTests/zoe.test.js",
"test/unitTests/zoe-startInstance.test.js",
"test/unitTests/blockedOffers.test.js",
"test/unitTests/zcf/reallocate-empty.test.js",
"test/unitTests/zcf/zoeHelpersWZcf.test.js",
"test/unitTests/zcf/reallocateForZCFMint.test.js",
"test/unitTests/zcf/atomicRearrange.test.js",
"test/unitTests/zcf/zcf.test.js",
"test/unitTests/zcf/allStagedSeatsUsed.test.js",
"# ManualTimer.setWakeup: no function",
"test/unitTests/test-fakePriceAuthority.js",
"test/unitTests/test-manualTimer.js",
"test/unitTests/fakePriceAuthority.test.js",
"test/unitTests/manualTimer.test.js",
"# hangs",
"test-makeKind.js",
"test/unitTests/test-scriptedOracle.js",
"test/unitTests/test-zoe.js",
"test/unitTests/zcf/test-allStagedSeatsUsed.js",
"makeKind.test.js",
"test/unitTests/scriptedOracle.test.js",
"test/unitTests/zoe.test.js",
"test/unitTests/zcf/allStagedSeatsUsed.test.js",
"# We use SWINGSET_WORKER_TYPE=xs ava to run these...",
"swingsetTests"
]
Expand Down

0 comments on commit ce2f01a

Please sign in to comment.