Skip to content

Commit ae79336

Browse files
committed
Add test script.
1 parent 60dd475 commit ae79336

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ conda activate some_env
140140
pip install machin
141141
```
142142

143+
**Note**: Currently only a fraction of all functions is supported on Windows, to test whether
144+
the code is running correctly, you can run the corresponding test script in the root directory:
145+
```
146+
run_win_test.bat
147+
run_lunux_test.sh
148+
```
149+
143150
### Contributing
144151
---
145152
Any contribution would be great, don't hesitate to submit a PR request to us! Please follow the instructions in [this](https://github.com/iffiX/machin/tree/master/docs/misc/contribute.md) file.

run_linux_test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
python --version
3+
python -m pip install virtualenv
4+
virtualenv venv
5+
source venv/bin/activate
6+
pip install .
7+
pip install ./test_lib/multiagent-particle-envs/
8+
pip install mock pytest==6.0.0 pytest-html==1.22.1 pytest-repeat==0.8.0
9+
python -m pytest -s --assert=plain -k "not full_train" --html=test_results/test_api.html --self-contained-html ./test/

run_win_test.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@ECHO OFF
2+
python --version
3+
python -m pip install virtualenv
4+
virtualenv venv
5+
.\venv\Scripts\activate
6+
pip install .
7+
pip install .\test_lib\multiagent-particle-envs\
8+
pip install mock pytest==6.0.0 pytest-html==1.22.1 pytest-repeat==0.8.0
9+
python -m pytest -s --assert=plain -k "not full_train" --html=test_results\test_api.html --self-contained-html .\test\

0 commit comments

Comments
 (0)