To ensure data integrity of the application, we need to make sure that the result data matches what we expect to get from accessing a real API as if a real user is using it. Previously, we relied on manual testing.
Automated tests allow us to do this in a very convenient, low cost way that is easily repeatable.
- Automatically or Manually trigger all collection / enrichment / conversion tasks
- Tests access all key data models from our DB to determine if the expected number of rows were collected and processed or not.
- Collect all data normally for all repos.
- Wait until all jobs are done
- Then you can run tests with this command:
make real-e2e-test
{
"name": "jira",
"tasks": [[{
"Plugin": "jira",
"Options": {
"connectionId": <your_connection_id>,
"boardId": 8
}
}]]
}
{ "name": "gitlab", "tasks": [[{ "Plugin": "gitlab", "Options": { "projectId": 8967944 } }]] }
{ "name": "github", "tasks": [[{ "Plugin": "github", "Options": { "repo": "lake", "owner": "merico-dev" } }]] }
{ "name": "jenkins", "tasks": [[ { "plugin": "jenkins", "options": {} } ]] }