-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Description:
We should introduce integration tests to ensure the correct behaviour of ORD plugin/service under realistic component interactions.
Unlike unit tests, integration tests will help validate how various features, e.g. ORD service and resource files generated, ORD related files output from command line.
This will serve as a middle layer between unit tests and full E2E tests, and help detect regressions earlier.
How to:
- Setup test environment and test application
- Setup an integration testing framework (e.g. Jest + Supertest for Node.js / CAP), or use python framework to test.
- Test various scenarios:
- Ord document is valid
- Test service definitions decorated with @ORD.Extensions.visibility.
- Entity annotations are correctly propagated.
- Test regression version
- Test different settings
- ...
Why Integration test:
It's between unittest and e2e test, we can detect the issue with various test plan via pipeline. explained.
Copilot
Metadata
Metadata
Assignees
Labels
No labels