OpenST / mosaic-contracts

Mosaic-0: Gateways and anchors on top of Ethereum to scale DApps
https://discuss.openst.org/c/mosaic
MIT License
114 stars 31 forks source link

Run integration and tool tests with settable decimals #757

Closed schemar closed 5 years ago

schemar commented 5 years ago

Fixes #736

I updated the tests that test the tools as well as the integration tests to use by default 18 decimals. The value can be overridden in all the tests (also unit tests) with the same ENV variable (OPENST_DECIMALS).

The test:range still runs simply npm test, which by default runs the "test" script from within package.json.

However, I updated how the tests are organized so that npm test runs all the tests, and the individual tests have script names test:<section>.

I moved "generate test proofs" out of the test namespace, as that is not actually running tests, it is just using mocha.

deepesh-kn commented 5 years ago

Reviewing 🦖