From c7848badf96a4fac73a5726b36c0f58a2ddbb93f Mon Sep 17 00:00:00 2001 From: cgewecke Date: Thu, 19 Mar 2020 17:31:25 -0700 Subject: [PATCH] Get test files after compileComplete hook runs (Truffle) (#485) --- plugins/truffle.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/truffle.plugin.js b/plugins/truffle.plugin.js index d574ffa..8e337c6 100644 --- a/plugins/truffle.plugin.js +++ b/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)