mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-25 14:42:52 +00:00
Add a README for testing
This commit is contained in:
19
README.testing.md
Normal file
19
README.testing.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Seafile Server Tests
|
||||||
|
|
||||||
|
## Run it locally
|
||||||
|
|
||||||
|
To run the tests, you need to install pytest first:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pip install -r ci/requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run the tests with
|
||||||
|
```sh
|
||||||
|
./run_tests.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
By default the test script would try to start ccnet-server and seaf-server in `/usr/local/bin`, if you `make install` to another location, say `/opt/local`, run it like this:
|
||||||
|
```sh
|
||||||
|
SEAFILE_INSTALL_PREFIX=/opt/local ./run_tests.sh
|
||||||
|
```
|
@@ -1,6 +1,5 @@
|
|||||||
termcolor>=1.1.0
|
termcolor>=1.1.0
|
||||||
requests>=2.8.0
|
requests>=2.8.0
|
||||||
httpie>=0.9.9
|
|
||||||
pytest>=3.3.2
|
pytest>=3.3.2
|
||||||
backports.functools_lru_cache>=1.4
|
backports.functools_lru_cache>=1.4
|
||||||
tenacity>=4.8.0
|
tenacity>=4.8.0
|
||||||
|
Reference in New Issue
Block a user