Commit f12d8ab3 authored by Jérome Perrin's avatar Jérome Perrin

slapos-testing: extend README and fix a typo

parent e354e214
...@@ -7,8 +7,8 @@ The approach is to use setuptools' integrated test runner, `python setup.py test ...@@ -7,8 +7,8 @@ The approach is to use setuptools' integrated test runner, `python setup.py test
The `python` used in this command will be a `zc.recipe.egg` interpreter with The `python` used in this command will be a `zc.recipe.egg` interpreter with
all eggs pre-installed by this software release. all eggs pre-installed by this software release.
Nexedi staff can see the results of this test from the test suite The results of this test suite running on Nexedi ERP5 are published as `SlapOS.Eggs.UnitTest-Master.Python3`
`SLAPOS-EGG-TEST` in test result module. and `SlapOS.Eggs.UnitTest-Master.Python2`.
Here's an example session of how a developer could use this software release in Here's an example session of how a developer could use this software release in
...@@ -17,7 +17,7 @@ changes to the code, run tests and publish changes. ...@@ -17,7 +17,7 @@ changes to the code, run tests and publish changes.
```bash ```bash
# install this software release # install this software release
SR=https://lab.nexedi.com/nexedi/slapos/raw/master/software/slapos-testing/software.cfg SR=https://lab.nexedi.com/nexedi/slapos/raw/1.0/software/slapos-testing/software.cfg
COMP=slaprunner COMP=slaprunner
INSTANCE_NAME=$COMP INSTANCE_NAME=$COMP
...@@ -33,7 +33,11 @@ cd ~/srv/runner/instance/slappart0/parts/slapos.core/ ...@@ -33,7 +33,11 @@ cd ~/srv/runner/instance/slappart0/parts/slapos.core/
vim slapos/tests/client.py vim slapos/tests/client.py
# run tests, using bundled python intepreter with pre-installed eggs dependencies # run tests, using bundled python intepreter with pre-installed eggs dependencies
~/srv/runner/instance/slappart0/software_release/bin/python_for_test setup.py build SLAPOS_TEST_IPV6=::1 \
SLAPOS_TEST_IPV4=127.0.0.1 \
SLAPOS_TEST_VERBOSE=1 \
SLAPOS_TEST_DEBUG=1 \
~/srv/runner/instance/slappart0/software_release/bin/python_for_test setup.py test
# when satified, commit changes # when satified, commit changes
git add -p && git commit git add -p && git commit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment