frontier
frontier copied to clipboard
feat: add e2e test bench
Add utility to do end-to-end test
- Spin up 2 Postgres and 1 Spice DB in such a way that they are connected
- All are being done programmatically with dockertest
- Once all DBs are up, run shield migration and shield server with
cobra cli
Pull Request Test Coverage Report for Build 2888214370
- 0 of 2 (0.0%) changed or added relevant lines in 2 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 49.195%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| cmd/serve.go | 0 | 1 | 0.0% |
| cmd/server.go | 0 | 1 | 0.0% |
| <!-- | Total: | 0 | 2 |
| Totals | |
|---|---|
| Change from base Build 2887226770: | 0.0% |
| Covered Lines: | 3454 |
| Relevant Lines: | 7021 |
💛 - Coveralls
Haven't looked at the actual test data. But code wise looks good to me.
Testdata in this PR consist of:
- Creating 1 organization, 1 project
- Creating 3 groups assigned to the organization
- Each group will have 3 users (created 9 users) and one of them is admin
- So a group consist of 1 admin and 2 members