You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
End-to-end tests that continuously validate the functional correctness of oras features.
Why it's Needed
As the number of supported commands grows, it's impossible to manually validate all the features before releasing.
Although we have unit tests for CLI, things might still go wrong after integration. Having E2E tests would at least cover high-value use cases and reduce regression.
How to
Setup Test Environment
The E2E tests should run against oras CLI binary with oras-distribution as the backend.
Choose Test Framework
Technically, there are two different directions of tools we use to build E2E test suite:
1) Use golang-native test framework to run test based on Cobra command execution calls
Discussed in #485
Originally posted by qweeah August 9, 2022
What is Needed
End-to-end tests that continuously validate the functional correctness of oras features.
Why it's Needed
How to
Setup Test Environment
The E2E tests should run against oras CLI binary with oras-distribution as the backend.
Choose Test Framework
Technically, there are two different directions of tools we use to build E2E test suite:
1) Use golang-native test framework to run test based on Cobra command execution calls
ginkgo + gomega
2) Use common Behaviour-Driven Development (BDD) tools to test the built out binary
Gherkin + godog
Both options provides expressive assertion that can meet oras' testing need.
Future Works
Below items are valuable but not in scope of this discussion:
If you have any other ideas or suggestions on building the E2E test suite for oras, feel free to response below. Any comments are highly appreciated 🍻
The text was updated successfully, but these errors were encountered: