On Qualitytrace, we work in two ways to test the entire system and guarantee that everything is working fine. One is through automatic tests, where we run unit, integration and end-to-end tests on Qualitytrace CLI, Web UI and Server.
Another source of tests is the manual tests that we execute on each release, simulating users, and checking if everything is ok on these tests.
On our manual tests, we aim to do some sanity checks to see if the main features are working as expected. Usually, we run it on each Qualitytrace release.
This is a simple test to check if Qualitytrace is working correctly given it was provisioned with one Tracing Data Store.
The steps that we should follow are:
- Open WebUI and go to
/settings
page. The provisioned Data Store should be selected. - Run
qualitytrace export datastore --id current
and check if the data was exported correctly. - Create a test on WebUI that calls a demo API (like Pokeshop or Open Telemetry Store). This test should fetch traces correctly and run without errors.
This is the entire checklist on what we should do to assert that Qualitytrace is working fine on each version release. On each version release, we can copy the contents of this checklist and open a Github Discussion to start each test.
- Check if our release pipeline on Release Qualitytrace workflow on Github Actions worked correctly.
- Double check Detailed installation doc and see if everything is documented correctly
-
Test server installation via CLI
- Docker Compose and no demo API
- Docker Compose and demo API
- Kubernetes and no demo API
- Kubernetes and demo API
-
Test Qualitytrace examples
-
Test specific features added/changed on this release:
- Add features here
-
Test CLI updates
- MacOS via homebrew
- MacOS via curl script
- Windows via chocolatey
- Windows via manual download
-
Test specific features added/changed on this release:
- Add features here
Today Qualitytrace has 3 main components: a WebUI, a CLI and a Server.
- Unit tests: Run by executing
npm test
on./web
folder - End-to-end tests: Run using cypress against a temporary Qualitytrace created on Kubernetes.
- Unit tests: Run by executing
make test
on./cli
folder
- Unit tests: Run by executing
make test
on./server
folder - Integration tests: Run along with some unit tests running
make test
on./server
folder, but also done in a matrix test on Github actions, by executing thetest-examples
action. - End-to-end tests: Run using Qualitytrace to test itself. We deploy two instances of Qualitytrace and use one to test API calls to another on Github actions, by executing the
trace-testing
action.