diff options
author | Muriithi Frederick Muriuki | 2018-04-16 17:28:22 +0300 |
---|---|---|
committer | Muriithi Frederick Muriuki | 2018-04-16 17:28:22 +0300 |
commit | f8df8836e33ad226aaa7d2f8874d7a1a08a670dc (patch) | |
tree | 36d455819dd74615151d64e0360b90382d0c89d6 /README.md | |
parent | bc1672f8617c56684ae3aeda7018362e818c46d6 (diff) | |
parent | dda4697505aea2cd950533dfb3a0dfb0e66ec018 (diff) | |
download | genenetwork2-f8df8836e33ad226aaa7d2f8874d7a1a08a670dc.tar.gz |
Merge remote-tracking branch 'pjotrp/testing' into testing
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -17,25 +17,35 @@ deploy GN2 and dependencies as a self contained unit on any machine. The database can be run separately as well as the source tree (for developers). See the [installation docs](doc/README.org). -## Test +## Run Once installed GN2 can be run online through a browser interface ```sh -./bin/genenetwork2 +genenetwork2 ``` -(default is http://localhost:5003/). For more examples, including running scripts and a Python REPL -see the startup script [./bin/genenetwork2](https://github.com/genenetwork/genenetwork2/blob/testing/bin/genenetwork2). +(default is http://localhost:5003/). For full examples (you'll need to +set a number of environment variables), including running scripts and +a Python REPL, see the startup script +[./bin/genenetwork2](https://github.com/genenetwork/genenetwork2/blob/testing/bin/genenetwork2). +## Testing -We are building up automated -testing using [mechanize](https://github.com/genenetwork/genenetwork2/tree/master/test/lib) which can be run with +We are building 'Mechanical Rob' automated testing using Python +[requests](https://github.com/genenetwork/genenetwork2/tree/master/test/lib) +which can be run with something like ```sh -./bin/test-website +env GN2_PROFILE=~/opt/gn-latest ./bin/genenetwork2 ./etc/default_settings.py -c ../test/requests/test-website.py -a http://localhost:5003 ``` +The GN2_PROFILE is the Guix profile that contains all +dependencies. The ./bin/genenetwork2 script sets up the environment +and executes test-website.py in a Python interpreter. The -a switch +says to run all tests and the URL points to the running GN2 http +server. + ## Documentation User documentation can be found |