Skip to content

hmrc/digital-platform-reporting-manage-ui-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the template README. Please update this with project specific content.

digital-platform-reporting-manage-ui-tests

<SERVICE_NAME> UI journey tests.

Pre-requisites

Services

Start Mongo Docker container as follows:

docker run --rm -d -p 27017:27017 --name mongo percona/percona-server-mongodb:5.0

Start <SERVICE_MANAGER_PROFILE> services as follows:

sm2 --start DPRS_ALL

Tests

Run tests as follows:

  • Argument <environment> must be local, dev, qa or staging.
  • Argument <browser> must be chrome, edge, or firefox.
  • Argument <headless> must be true or false.
sbt clean -Denvironment="<environment>" -Dbrowser="<browser>" --Dbrowser.option.headless="<headless>" "testOnly uk.gov.hmrc.ui.specs.*" testReport

Alternatively you can use:

./run_tests.sh dev firefox true

The above command has default values and if no parameters are passed the default values are: local, chrome and false.

Scalafmt

Check all project files are formatted as expected as follows:

sbt scalafmtCheckAll scalafmtCheck

Format *.sbt and project/*.scala files as follows:

sbt scalafmtSbt

Format all project files as follows:

sbt scalafmtAll

License

This code is open source software licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published