Skip to content

Commit

Permalink
chore: speed up tests by avoid unchanged contracts recompilation (ace…
Browse files Browse the repository at this point in the history
…busters#14)

Monkey patch for now. Source: trufflesuite/truffle#343
Run with 'patch node_modules/truffle/build/cli.bundled.js truffle-test-cache.patch'
  • Loading branch information
troggy committed Sep 11, 2017
1 parent defd498 commit 9cc6896
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ npm install
npm run tests
```

To avoid recompiling contracts all the time, consider patching truffle with supplied patch:
```
patch node_modules/truffle/build/cli.bundled.js truffle-test-cache.patch
```

### code coverage

```
Expand Down
6 changes: 6 additions & 0 deletions truffle-test-cache.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
206816c206816,206818
< temp.mkdir('test-', function(err, temporaryDirectory) {
---
> var temporaryDirectory = path.join(temp.dir, 'compiled_test_contracts');
>
> mkdirp(temporaryDirectory, function(err) {

0 comments on commit 9cc6896

Please sign in to comment.