Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conformance tests #1

Open
scothis opened this issue Aug 18, 2020 · 2 comments
Open

Conformance tests #1

scothis opened this issue Aug 18, 2020 · 2 comments
Milestone

Comments

@scothis
Copy link
Contributor

scothis commented Aug 18, 2020

We have a spec that has requirements for implementations. It would be nice to have a test suite that could be used to judge if an implementation is compatible with the specification.

The conformance tests should:

  • have an assertion to cover each MUST, MUST NOT, etc in the spec that will fail the suite if the assertion fails
  • have an assertion to cover each SHOULD, SHOULD NOT, etc in the spec, but do not fail the suite if the assertion fails
  • have a negative test to cover each MAY, RECOMMENDED, etc in the spec, but do not fail the suite if the assertion fails
  • make no assumptions as to ambiguities in the spec (those should be files as issues against the spec)
  • make no assumptions as to the internals of the implementation, only the spec defined interfaces should be tested
  • have minimal prerequisites (ideally none) other than a service binding implementation running in a cluster
  • remove any state they add to the cluster during the tests

Initially, we should focus on the core specification. Spec extensions should discrete conformance tests that can be run independently.

@arthurdm
Copy link
Member

great idea @scothis - it will be crucial for ensuring adopting frameworks remain consistent.

@arthurdm
Copy link
Member

Community to check whether there's guidance or requirements from a SIG perspective on conformance test suites.

@nebhale nebhale transferred this issue from servicebinding/spec Nov 11, 2021
@nebhale nebhale added this to the core/1.0.0 milestone Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants