From 52f7823fb42e57c390e6b727015f4fb512cd110d Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Tue, 16 Jan 2018 17:10:56 +0800 Subject: [PATCH] Add a README for testing --- README.testing.md | 19 +++++++++++++++++++ ci/requirements.txt | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 README.testing.md diff --git a/README.testing.md b/README.testing.md new file mode 100644 index 0000000..ad83314 --- /dev/null +++ b/README.testing.md @@ -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 +``` diff --git a/ci/requirements.txt b/ci/requirements.txt index 5332848..5a09c3e 100644 --- a/ci/requirements.txt +++ b/ci/requirements.txt @@ -1,6 +1,5 @@ termcolor>=1.1.0 requests>=2.8.0 -httpie>=0.9.9 pytest>=3.3.2 backports.functools_lru_cache>=1.4 tenacity>=4.8.0