EdgeX testing is focused on ensuring that the functional aspects of EdgeX work correctly. This level of testing includes a number of automated test suites for unit, integration, black-box, API testing and validation. Also, EdgeX has been tested on TAF, which stands for Test Automation Framework. To monitor the stability and efficiency of Edgex, a Jenkins pipeline has been built to automatically trigger daily and weekly jobs. The testing processes are listed below.
PR merge validation
When developers make changes to EdgeX and open PRs, they have to go through unit test to check if it's fit to use.
The service will build images on nexus3.edgexfoundry.org to validate its usage.
- Go modules
- Unit test
- Service
- Unit test
- Image build validation: snap image/ docker image
- edgex-compose
- smoke test by TAF
Functional-test
- Purpose: Test each feature of EdgeX by providing the appropriate input and validating the output against the requirements.
- Frequency: Daily scheduled run on edgex-taf-pipeline
Info | ||
---|---|---|
| ||
https://github.com/edgexfoundry/edgex-taf/blob/main/docs/run-tests-on-local.md |
Integration-test
- Purpose: Check data communication among different software modules.
- Frequency: Daily scheduled run on edgex-taf-pipelines
Info | ||
---|---|---|
| ||
https://github.com/edgexfoundry/edgex-taf/blob/main/docs/run-tests-on-local.md |
Performance-test
- Purpose: Monitor memory usage/ startup time/ CPU usage/ response time/ event exported time of EdgeX
- Frequency: Weekly scheduled run on edgex-taf-pipelines
- Note: When new version of EdgeX is released, we will run performance tests manually on x86_64 and arm64 machine machines to update the reports in here.
Info | ||
---|---|---|
| ||
Smoke-test
- Purpose: Developers will select tests that validate key EdgeX features to run smoke-test.
- Frequency: Only when edgex-compose PR is opened will smoke-test start running.
Info | ||
---|---|---|
| ||
In this example, only does ProfileGET001 - Query all device profiles have SmokeTest tag so smoke-test will run on this testcase only.
When running tests locally with the docker command, remember to specify -include SmokeTest to point to those tests with the SmokeTest tag. |
...