Skip to content

Commit

Permalink
update the readme for testing (and running simulation)
Browse files Browse the repository at this point in the history
  • Loading branch information
naterush committed Oct 9, 2017
1 parent 9b3db15 commit f158021
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ pip install -r requirements.txt
## Run Simulations
This code is marked up for use as follows:
```
kernprof -l casper.py rounds && python -m line_profiler casper.py.lprof > results.txt
kernprof -l casper.py (rand | rrob | full | nofinal)
```
OR

## Run Tests
To run all unit tests:
```
python -m unittest discover
```
To run a specific test, use (or the equivalent for whatever test you wish to run)
```
kernprof -l casper.py blockchain && python -m line_profiler casper.py.lprof > results.txt
python -m unittest test.test_safety_oracle
```

0 comments on commit f158021

Please sign in to comment.