Skip to content

Commit 7427117

Browse files
committed
Changes so easy to run single FT
1 parent abe7e2b commit 7427117

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ Spring application entry point and configuration.
120120
The functional tests are located in `aat` folder. The tests are written using
121121
befta-fw library. To find out more about BEFTA Framework, see the repository and its README [here](https://github.com/hmcts/befta-fw).
122122

123+
Will run all the FT's:
124+
125+
./gradlew functional
126+
127+
##### Some Functional Tests
128+
Will run both F-105 and F-110:
129+
130+
./gradlew functional -P tags="@F-105 or @F-110"
131+
132+
Will run only S-110.1:
133+
134+
./gradlew functional -P tags="@S-110.1"
135+
123136
## LICENSE
124137

125138
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.

aat/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ task smoke(type: Test) {
8787
outputs.upToDateWhen { false }
8888
}
8989

90+
def tags = (findProperty('tags') == null) ? 'not @Ignore' : '(' + findProperty('tags') + ') and not @Ignore'
91+
9092
task functional(type: Test) {
9193
description = 'Executes functional tests against the CCD Definition Store Instance just deployed'
9294
setTestClassesDirs(sourceSets.aat.output.classesDirs)
@@ -112,7 +114,7 @@ task functional(type: Test) {
112114
args = [
113115
'--threads', '1', // current definition-store tests do not support multiple threads
114116
'--plugin', "json:${rootDir}/target/cucumber.json",
115-
'--tags', 'not @Ignore',
117+
'--tags', "${tags}",
116118
'--glue', 'uk.gov.hmcts.befta.player', 'src/aat/resources/features'
117119
]
118120
jvmArgs = [ '--add-opens=java.base/java.lang.reflect=ALL-UNNAMED' ]

0 commit comments

Comments
 (0)