From a3c034cae5360acf0d9c07ff365184533f34dc2b Mon Sep 17 00:00:00 2001 From: Antonio Barcelos Date: Tue, 29 Jun 2021 12:30:02 +0200 Subject: [PATCH 1/2] Add section about how to test with testkit --- TESTING.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/TESTING.md b/TESTING.md index a1d92e7b9..4528a90a9 100644 --- a/TESTING.md +++ b/TESTING.md @@ -37,3 +37,36 @@ $ NEO4J_USER=bob NEO4J_PASSWORD=secret tox If [Coverage](https://coverage.readthedocs.io/) is installed, test runs automatically add data to a `.coverage` file. To use this data, ensure that `coverage erase` is executed before commencing a test run; a report can be viewed after the run with `coverage report --show-missing`. + +## Testing with Testkit + +Tests **require** the latest [Testkit 4.3](https://github.com/neo4j-drivers/testkit/tree/4.3), Python3 and Docker. + +Testkit is needed to be cloned and configured to run against the Python Driver. Use the following steps to configure Testkit. + +1. Clone the Testkit repository + +``` +git clone https://github.com/neo4j-drivers/testkit.git +``` + +2. Under the Testkit folder, install the requirements. + +``` +pip3 install -r requirements.txt +``` + +3. Define some enviroment variables to configure Testkit + +``` +export TEST_DRIVER_NAME=python +export TEST_DRIVER_REPO= +``` + +To run test against against some Neo4j version: + +``` +python3 main.py +``` + +More details about how to use Teskit could be found on [its repository](https://github.com/neo4j-drivers/testkit/tree/4.3) From 9792413e5cdfc5391c21f3fc93e00c73e09c7b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Barc=C3=A9los?= Date: Thu, 1 Jul 2021 15:57:25 +0200 Subject: [PATCH 2/2] Update TESTING.md Co-authored-by: Robsdedude --- TESTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TESTING.md b/TESTING.md index 4528a90a9..872de6444 100644 --- a/TESTING.md +++ b/TESTING.md @@ -44,7 +44,7 @@ Tests **require** the latest [Testkit 4.3](https://github.com/neo4j-drivers/test Testkit is needed to be cloned and configured to run against the Python Driver. Use the following steps to configure Testkit. -1. Clone the Testkit repository +1. Clone the Testkit repository—preferably not inside this project's folder ``` git clone https://github.com/neo4j-drivers/testkit.git