From 8c7c810ea3de0d6a5e3f64206ed0b48d20de7105 Mon Sep 17 00:00:00 2001 From: Erik Eide Date: Thu, 15 Oct 2015 16:35:21 +0100 Subject: [PATCH 1/2] Adds a note and link to installing PhantomJS to run smart-answer tests locally. --- doc/testing.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/testing.md b/doc/testing.md index 89ddda9c34b..b9a7e510d0c 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -1,5 +1,12 @@ # Testing +## External dependencies + +Some of the smart-answers tests require PhantomJS to be [installed on your machine +natively](https://github.com/teampoltergeist/poltergeist/blob/master/README.md#installing-phantomjs). + +## Executing tests + Run all tests by executing the following: bundle exec rake From f188600079eb85cad56937dc56eb4ea2f7209953 Mon Sep 17 00:00:00 2001 From: Erik Eide Date: Thu, 15 Oct 2015 16:55:34 +0100 Subject: [PATCH 2/2] Add testing instruction regarding govuk-content-schemas dependency --- doc/testing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/testing.md b/doc/testing.md index b9a7e510d0c..fb8149f8db1 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -5,6 +5,10 @@ Some of the smart-answers tests require PhantomJS to be [installed on your machine natively](https://github.com/teampoltergeist/poltergeist/blob/master/README.md#installing-phantomjs). +Smart-answers also require the govuk-content-schemas repository which can +be [cloned](https://github.com/alphagov/govuk-content-schemas) into a sibling +directory, or a directory referenced using GOVUK_CONTENT_SCHEMAS_PATH. + ## Executing tests Run all tests by executing the following: