-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ava-xs): handle some zoe tests (#2573)
* feat(ava-xs): install as npm bin * chore(avaHandler): SES Compartment already has harden * feat(ava-xs): provide makeKind, weakStore to test compartment * feat(ava-xs): handle ava.files, ava.require from package.json - support -v / --verbose - xsnap: add glob, @agoric/assert dependencies. hm... having ava-xs in the xsnap package is increasingly awkward * chore(avaXS): log error before losing full message * feat(ava-xs): test.todo * feat(ava-xs): exclude takes a list of strings * test(zoe): XS test exclusions with reasons * test(zoe): add use --verbose on XS to know which script failed - add a separate test:xs-unit-debug script, since `ava-xs --verbose --debug` isn't yet supported * test(zoe): postpone _ in underscores until #2503 is done * test(zoe): be sure async tests wait for all promises * test(zoe): handle __dirname for bundling zcfTesterContract - clean up some lint * test(zoe): be flexible about error message from assertIssuerKeywords * test(zoe): support test.failing on XS foro test-zoeHelpersWZcf.js - elaborate diagnostics for checkExpectation * test(zoe): add test:xs-unit, test:xs-worker to test script * fix(ava-xs): handle missing ava-xs config section * feat(ava-xs): report count of tests, each in their own crank * test(ERTP): use ava-xs bin, ava-xs.exclude * fix(ava-xs): count where we can see crank boundaries The code running inside xsnap can't see crank boundaries, so don't bother to count planned assertions there. Count on the node parent side. * style(ava-xs): clarify type in avaHandler * fix(ava-xs): notThrows() success case * feat(ava-xs): summarize failed tests * test(zoe): update list of XS exclusions * test(zoe): postpone test:xs-worker * test(zoe): postpone test-scriptedOracle due to intermittent SEGV * refactor(ava-xs): export powerless main * test(zoe): try longer timeout * fix(ava-xs): use cjs rather than -r esm in #! * test(zoe): postpone zoeHelpers on XS * style(ava-xs): jsdoc idiom Co-authored-by: Kris Kowal <[email protected]> * style(ava-xs): jsdoc idiom Co-authored-by: Kris Kowal <[email protected]>
- Loading branch information
Showing
13 changed files
with
407 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env node | ||
/* global require, module */ | ||
// @ts-check | ||
const esmRequire = require('esm')(module); | ||
const process = require('process'); | ||
const { spawn } = require('child_process'); | ||
const { type: osType } = require('os'); | ||
const { promises } = require('fs'); | ||
const path = require('path'); | ||
const glob = require('glob'); | ||
|
||
esmRequire('@agoric/install-ses'); | ||
const bundleSource = esmRequire('@agoric/bundle-source').default; | ||
|
||
const { main, makeBundleResolve } = esmRequire('./avaXS'); | ||
|
||
Promise.resolve() | ||
.then(_ => | ||
main(process.argv.slice(2), { | ||
bundleSource, | ||
spawn, | ||
osType, | ||
readFile: promises.readFile, | ||
resolve: makeBundleResolve(path), | ||
dirname: path.dirname, | ||
glob, | ||
}), | ||
) | ||
.then(status => { | ||
process.exit(status); | ||
}) | ||
.catch(err => { | ||
console.error(err); | ||
process.exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.