ethereum / ethereum/populus

Test run seriously slowing down when renaming contracts folder

Open
#368 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
319
Forks
110
PR merge metrics
No merged PRs in 30d

Description

* Populus Version: 1.11.0
* OS: linux/ubuntu
* Python 3.5.2 (default, Sep 14 2017, 22:51:06)

### What was wrong?
consider folder structure:
```
contracts/
tests/
project.json
README.md
```
`tests` folder has 52 items to run, running them all with command `py.test -s --disable-pytest-warnings --populus-project=./ ./` takes ~85 seconds, maxing out load on one CPU core on my old laptop.

Now consider this folder structure:
```
ws_contracts/
tests/
project.json
README.md
```
Same files inside, `project.json` amended to reference the right folder.
Running same tests with the same command takes 4-5 times longer, also maxing out load on one CPU core on my old laptop. No apparent reason why.

Expected: renaming the contracts folder should not affect the test running time.

### Cute Animal Picture
![download](https://user-images.githubusercontent.com/1840160/32344972-90263a88-c000-11e7-9e20-ae2191f4edfd.jpeg)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.