Skip to content

Commit da8a5c2

Browse files
Merge pull request #695 from NHSDigital/feature/hakh11-NRL-808-AddAllureTestCommand
Add new integration test command to Makefile
2 parents 3edd9e7 + b99ceac commit da8a5c2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ test-features-integration: check-warn ## Run the BDD feature tests in the integr
8686
--define="use_shared_resources=${USE_SHARED_RESOURCES}" \
8787
$(FEATURE_TEST_ARGS)
8888

89+
test-features-integration-report: check-warn ## Run the BDD feature tests in the integration environment and generate allure report therafter
90+
@echo "Cleaning previous Allure results and reports"
91+
rm -rf ./allure-results
92+
rm -rf ./allure-report
93+
@echo "Running feature tests in the integration environment"
94+
behave --define="integration_test=true" \
95+
--define="env=$(TF_WORKSPACE_NAME)" \
96+
--define="account_name=$(ENV)" \
97+
--define="use_shared_resources=${USE_SHARED_RESOURCES}" \
98+
$(FEATURE_TEST_ARGS)
99+
@echo "Generating Allure report"
100+
allure generate ./allure-results -o ./allure-report --clean
101+
@echo "Opening Allure report"
102+
allure open ./allure-report
103+
89104
test-smoke-internal: check-warn ## Run the smoke tests against the internal environment
90105
@echo "Running smoke tests against the internal environment ${TF_WORKSPACE_NAME}"
91106
TEST_ENVIRONMENT_NAME=$(ENV) \

0 commit comments

Comments
 (0)