Skip to content

DEFRA/forms-acceptance-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

151 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forms-acceptance-tests

The template to create a service that runs WDIO tests against an environment.

Local Development

Requirements

Node.js

Please install Node.js >= v20 and npm >= v9. You will find it easier to use the Node Version Manager nvm

To use the correct version of Node.js for this application, via nvm:

nvm use

Setup

Install application dependencies:

npm install

Running local tests

Start the Forms test harness by doing the following:

You can supply an optional parameter to ./run-harness.sh to prevent forms-designer from being launched. This would be if you wanted to run your own forms-designer say from a branch other than main. To prevent forms-designer from being started, use:

./run-harness.sh omit-designer

Once it has started (usually takes around 10 seconds once all Docker images have been downloaded), you can run the acceptance tests in this repository by doing

npm run test

Running on GitHub

The acceptance tests can be run as a Github workflow.

This starts the workflow job and the progress can be followed by viewing the log. The workflow usually take about 3 - 4 mins to complete.

Once completed, you can examine the artifacts by navigating into the workflow run. Artifacts are listed at the bottom of the screen. Download the allure-report, unzip it, and open index.html for the results in a drill-down web page.

Licence

THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:

http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3

The following attribution statement MUST be cited in your products and applications when using this information.

Contains public sector information licensed under the Open Government licence v3

About the licence

The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.

It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.

About

Git repository for service forms-acceptance-tests

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors