Skip to content

Commit

Permalink
Changes so easy to run single FT
Browse files Browse the repository at this point in the history
  • Loading branch information
patelila committed May 10, 2024
1 parent abe7e2b commit 7427117
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ Spring application entry point and configuration.
The functional tests are located in `aat` folder. The tests are written using
befta-fw library. To find out more about BEFTA Framework, see the repository and its README [here](https://github.com/hmcts/befta-fw).

Will run all the FT's:

./gradlew functional

##### Some Functional Tests
Will run both F-105 and F-110:

./gradlew functional -P tags="@F-105 or @F-110"

Will run only S-110.1:

./gradlew functional -P tags="@S-110.1"

## LICENSE

This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
Expand Down
4 changes: 3 additions & 1 deletion aat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ task smoke(type: Test) {
outputs.upToDateWhen { false }
}

def tags = (findProperty('tags') == null) ? 'not @Ignore' : '(' + findProperty('tags') + ') and not @Ignore'

task functional(type: Test) {
description = 'Executes functional tests against the CCD Definition Store Instance just deployed'
setTestClassesDirs(sourceSets.aat.output.classesDirs)
Expand All @@ -112,7 +114,7 @@ task functional(type: Test) {
args = [
'--threads', '1', // current definition-store tests do not support multiple threads
'--plugin', "json:${rootDir}/target/cucumber.json",
'--tags', 'not @Ignore',
'--tags', "${tags}",
'--glue', 'uk.gov.hmcts.befta.player', 'src/aat/resources/features'
]
jvmArgs = [ '--add-opens=java.base/java.lang.reflect=ALL-UNNAMED' ]
Expand Down

0 comments on commit 7427117

Please sign in to comment.