When we do node compile.js && npm run test, first contracts are compiled then tests are run.
While development either we change contract code or change tests code. If we change contract code file both the commands should run, but if we change tests code, then only npm run test should be run. Compiling contracts again with no change in source code is a waste of time. So this can be improved.
When we do
node compile.js && npm run test
, first contracts are compiled then tests are run.While development either we change contract code or change tests code. If we change contract code file both the commands should run, but if we change tests code, then only npm run test should be run. Compiling contracts again with no change in source code is a waste of time. So this can be improved.