Get test files after compileComplete hook runs (Truffle) (#485)

pull/488/head
cgewecke 5 years ago committed by GitHub
parent 383e43ab7f
commit c7848badf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/truffle.plugin.js

@ -95,13 +95,13 @@ async function plugin(config){
);
config.all = true;
config.test_files = await truffleUtils.getTestFilePaths(config);
config.compilers.solc.settings.optimizer.enabled = false;
// Compile Instrumented Contracts
await truffle.contracts.compile(config);
await api.onCompileComplete(config);
config.test_files = await truffleUtils.getTestFilePaths(config);
// Run tests
try {
failures = await truffle.test.run(config)

Loading…
Cancel
Save