You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: feature-tests/README.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
-
# DI Accounts - VC Storage Tests - JEST Supertest API Test Framework
1
+
# DI Accounts - VC Storage Tests - Vitest Supertest API Test Framework
2
2
3
-
Jest is a JavaScript Testing Framework with a focus on simplicity, which can also be used with TypeScript.
3
+
Vitest is a JavaScript Testing Framework with a focus on simplicity, which can also be used with TypeScript.
4
4
Supertest allows for HTTP assertions.
5
5
6
-
#### The purpose of this project is automate API functionality of the VC Storage Solution. The framework configurations can be found in jest-cucumber-config.js file in the feature-tests folder of the project.
6
+
#### The purpose of this project is automate API functionality of the VC Storage Solution.
7
7
8
8
## This project uses:
9
9
10
-
- Cucumber-Jest
10
+
- Cucumber
11
+
- Vitest
11
12
- Supertest
12
13
- Typescript
13
14
- npm
@@ -33,7 +34,7 @@ Then sign-in into AWS account.
33
34
aws sso login --profile $AWS_PROFILE
34
35
```
35
36
36
-
To run all API tests locally in Jest via Jest.
37
+
To run all API tests locally in Vitest via Vitest.
37
38
38
39
```shell
39
40
npm test
@@ -60,6 +61,22 @@ once the docker image is built, run the following the execute the dockerfile
60
61
docker run account-intervention-service-feature-tests-image:latest
61
62
```
62
63
64
+
To run the feature tests with the correct environment variables and using the AWS profile from your local machine
65
+
66
+
```shell
67
+
docker run --rm -it \
68
+
-v ~/.aws:/root/.aws:ro \
69
+
-e AWS_PROFILE=default \
70
+
-e TEST_ENVIRONMENT=dev \
71
+
-e SAM_STACK_NAME=ais-main \
72
+
-e AWS_REGION=eu-west-2 \
73
+
-e AWS_PROFILE=dev \
74
+
-e tagFilter=@regression \
75
+
-e USE_PRIVATE_API_GATEWAY=true \
76
+
--dns 25.25.25.25 \
77
+
account-intervention-service-feature-tests-image
78
+
```
79
+
63
80
## Environment configuration
64
81
65
82
If new values are added to **endpoints.ts**, associated values will then need to be added to the main template
0 commit comments