Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Integration Tests and CI/CD pipeline #202

@zongqichen

Description

@zongqichen

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions