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: packages/integration-tests/README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,25 @@ or `npm run test:dir packages/integration-tests/lib/test-in-memory` (to run them
17
17
The create-amplify e2e suite tests the first-time installation and setup of a new amplify backend project. To run this suite, run
18
18
`npm run test:dir packages/integration-tests/lib/test-e2e/create_amplify.test.js`
19
19
20
-
## deployment tests
20
+
## deployment and sandbox tests
21
21
22
-
To run end-to-end deployment tests, credentials to an AWS account must be available on the machine. Any credentials that will be picked up by the
22
+
To run end-to-end deployment or sandbox tests, credentials to an AWS account must be available on the machine. Any credentials that will be picked up by the
23
23
[default node credential provider](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html) should work.
24
-
This include setting environment variables for a default profile.
24
+
This includes setting environment variables for a default profile.
25
25
26
-
To run this suite, run
27
-
`npm run test:dir packages/integration-tests/lib/test-e2e/deployment.test.js`
26
+
To run deployment suite, run
27
+
`npm run test:dir packages/integration-tests/lib/test-e2e/deployment/*.deployment.test.js`
28
+
29
+
To run sandbox suite, run
30
+
`npm run test:dir packages/integration-tests/lib/test-e2e/sandbox/*.sandbox.test.js`
31
+
32
+
To run deployment or sandbox test for specific project, specify exact test file, for example
33
+
`npm run test:dir packages/integration-tests/lib/test-e2e/sandbox/data_storage_auth_with_triggers.sandbox.test.js`
34
+
35
+
When working locally with sandbox tests, it is sometimes useful to retain deployment of test project to avoid full re-deployments while working
36
+
on single test project incrementally. To retain deployment set `AMPLIFY_BACKEND_TESTS_RETAIN_TEST_PROJECT_DEPLOYMENT` environment
37
+
variable to `true`. This flag disables project name randomization and deployment cleanup, so that subsequent runs of same test
38
+
target the same CFN stacks. This option is not available for deployment tests (hotswap is not going to work there anyway).
0 commit comments