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
feat: singleTest mage target for each integration test package (#8691)
* feat: support running a single test for serverless and resource leak integration tests
* doc: update test-framework-dev-guide.md to include the latest mage targets
Copy file name to clipboardExpand all lines: docs/test-framework-dev-guide.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,21 +64,41 @@ Go to https://docker-auth.elastic.co/ and authenticate with Okta to receive your
64
64
65
65
The test are run with mage using the `integration` namespace:
66
66
67
-
-`mage integration:test` to execute all tests under the `testing/integration`
67
+
#### ESS oriented tests
68
+
69
+
-`mage integration:test` to execute all tests under the `testing/integration/ess`
68
70
folder. All tests are executed on remote VMs, including those that set `Local: true`.
69
71
70
72
-`mage integration:local [testName|all]` to execute only those tests under the
71
-
`testing/integration` folder that set `Local: true`. It'll run all the tests if
73
+
`testing/integration/ess` folder that set `Local: true`. It'll run all the tests if
72
74
`all` is passed as argument, or it'll pass `[testName]` to `go test` as
73
75
`--run=[testName]`. These tests are executed on your local machine.
74
76
75
-
-`mage integration:single [testName]` to execute a single test under the `testing/integration` folder. Only the selected test will be executed on remote VMs.
77
+
-`mage integration:single [testName]` to execute a single test under the `testing/integration/ess` folder. Only the selected test will be executed on remote VMs.
78
+
79
+
-`mage integration:matrix` to run all tests under the `testing/integration/ess` folder on the complete matrix of supported operating systems and architectures of the Elastic Agent.
80
+
81
+
#### Kubernetes oriented tests
82
+
83
+
-`mage integration:testKubernetes` to run kubernetes tests under the `testing/integration/k8s` folder for the default image on the default version of kubernetes (all previous commands will not run any kubernetes tests).
84
+
85
+
-`mage integration:testKubernetesMatrix` to run a matrix of kubernetes tests under the `testing/integration/k8s` folder for all image types and supported versions of kubernetes.
86
+
87
+
-`mage integration:testKubernetesSingle [testName|all]` to execute a single test under the `testing/integration/k8s` folder. Only the selected test will be executed.
88
+
89
+
#### Serverless oriented tests
90
+
91
+
-`mage integration:testServerless` to execute all tests under the `testing/integration/serverless` folder. All tests are executed on remote VMs, including those that set `Local: true`.
92
+
93
+
-`mage integration:testServerlessSingle [testName|all]` to execute a single test under the `testing/integration/serverless` folder. Only the selected test will be executed on remote VMs.
94
+
95
+
#### Resource leaks tests
76
96
77
-
-`mage integration:matrix` to run all tests on the complete matrix of supported operating systems and architectures of the Elastic Agent.
97
+
-`mage integration:testForResourceLeaks` to execute all tests under the `testing/integration/leak` folder. All tests are executed on remote VMs.
78
98
79
-
-`mage integration:testKubernetes` to run kubernetes tests for the default image on the default version of kubernetes (all previous commands will not run any kubernetes tests).
99
+
-`mage integration:testForResourceLeaksSingle [testName|all]` to execute a single test under the `testing/integration/leak` folder. Only the selected test will be executed on remote VMs.
80
100
81
-
-`mage integration:testKubernetesMatrix` to run a matrix of kubernetes tests for all image types and supported versions of kubernetes.
101
+
You can list all available mage targets by running `mage -l`
0 commit comments