Agoric / nat

Ensures that a number is within the natural numbers (0, 1, 2...) or throws a RangeError
Apache License 2.0
5 stars 4 forks source link

Manual integration Tests #150

Closed katelynsills closed 3 years ago

katelynsills commented 3 years ago

This PR doesn't replace the automated integration tests that existed on Circle CI, but it does allow for a manual testing process.

The automated integration tests would take your usual test and transform it into the different browser contexts, so that you were actually running all of your tests against Nat as bundled by Webpack, browserify, etc. Furthermore, this was set up to run in CI.

This PR enables a manual version. Because we've moved to AVA and AVA is not supported in a browser environment, this version uses Nat tests which are manually copied and transformed back to tape. Then, you can run:

./integration-test/scripts/build-pre-release-test.sh

and visit the following pages in your browser, checking the console output:

/integration-test/pre-release-browser-tests/mock-unpkg-umd/index.html /integration-test/pre-release-browser-tests/webpack/index.html /integration-test/pre-release-browser-tests/rollup/index.html /integration-test/pre-release-browser-tests/browserify/index.html

Related to #142, but doesn't solve it entirely