From 7db533840df620f25aaf3f87e03fcf192823dfab Mon Sep 17 00:00:00 2001 From: Hardik Joshi Date: Tue, 16 Jan 2024 21:23:54 +0530 Subject: [PATCH] added documentation for running e2e tests --- docs/Testing.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/Testing.rst b/docs/Testing.rst index 5b410dc82..921872d20 100644 --- a/docs/Testing.rst +++ b/docs/Testing.rst @@ -17,6 +17,15 @@ You can configure it to respond on a different port like so: If you are using Rails, you can edit the test configuration ``config/environments/test.rb`` or the ``config/neo4j.yml`` file (see :doc:`Setup `) +To run the e2e tests we first have to run setup script ``sh e2e_tests/setup.sh``. After that we can run e2e tests by ``rspec -Oe2e_tests/.e2e_rspec e2e_tests/`` command +To run the setup script with custom options we can leverage following environment variables +`` +ACTIVEGRAPH_PATH=local path of activegraph code (root directory) +ACTIVE_MODEL_VERSION=version of activemodel +E2E_PORT=neo4j server port +E2E_NO_CRED=set this to true when neo4j server has auth disabled +`` + How to clear the database -------------------------