This is the template README. Please update this with project specific content.
<SERVICE_NAME> UI journey tests.
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
Run tests as follows:
- Argument
<environment>
must belocal
,dev
,qa
orstaging
. - Argument
<browser>
must bechrome
,edge
, orfirefox
. - Argument
<headless>
must betrue
orfalse
.
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.
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
This code is open source software licensed under the Apache 2.0 License.