|
|
@ -114,13 +114,13 @@ class App { |
|
|
|
// Compile the contracts before instrumentation and preserve their ABI's.
|
|
|
|
// Compile the contracts before instrumentation and preserve their ABI's.
|
|
|
|
// We will be stripping out access modifiers like view before we recompile
|
|
|
|
// We will be stripping out access modifiers like view before we recompile
|
|
|
|
// post-instrumentation.
|
|
|
|
// post-instrumentation.
|
|
|
|
if (shell.test('-e', `${this.coverageDir}/build`)){ |
|
|
|
if (shell.test('-e', `${this.coverageDir}/build/contracts`)){ |
|
|
|
shell.rm('-Rf', `${this.coverageDir}/build`) |
|
|
|
shell.rm('-Rf', `${this.coverageDir}/build/contracts`) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.runCompileCommand(); |
|
|
|
this.runCompileCommand(); |
|
|
|
this.originalArtifacts = this.loadArtifacts(); |
|
|
|
this.originalArtifacts = this.loadArtifacts(); |
|
|
|
shell.rm('-Rf', `${this.coverageDir}/build`); |
|
|
|
shell.rm('-Rf', `${this.coverageDir}/build/contracts`); |
|
|
|
|
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
} catch (err) { |
|
|
|
const msg = ('There was a problem generating the coverage environment: '); |
|
|
|
const msg = ('There was a problem generating the coverage environment: '); |
|
|
|