这是indexloc提供的服务,不要输入任何密码
Skip to content

add integration tests #47

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

Merged
merged 15 commits into from
Apr 22, 2024
Merged

add integration tests #47

merged 15 commits into from
Apr 22, 2024

Conversation

hallettj
Copy link
Collaborator

Describe your changes

Run integration tests with,

just test-integration

Or if you don't have your nix develop shell set up you can run,

nix develop -c just test-integration

@hallettj hallettj self-assigned this Apr 20, 2024
@daniel-chambers
Copy link
Contributor

Just a comment on testing strategy:

While I like the idea of these sorts of end to end integration tests, I think our goal should be to have a small number of these for smoke testing and regression testing, with the majority of our tests done at the NDC level (ie. issue NDC requests and assert against NDC responses) using ndc-test.

This decouples our tests from the engine, which is useful when developing features that the engine doesn't yet support, simplifies the tests a lot (no metadata required), and also isolates our tests from breaking changes in the engine (less important, since this is not supposed to happen much). It also focuses our testing investment into ndc-test which can be used by any connector to implement snapshot-style testing. We have failed to do this so far, with every connector either not doing testing or rolling their own testing setup. It would be good to see investment in testing be share-able across connectors, though I know that will take some upfront time and investment. cc @codedmart

@codedmart
Copy link
Collaborator

@hallettj I agree with @daniel-chambers here. These are great, but I do want to use them less and for the reasons @daniel-chambers listed above. We should put more emphasis on ndc-test.

@hallettj hallettj merged commit 4ea8cee into main Apr 22, 2024
@hallettj hallettj deleted the jesse/integration-tests branch April 22, 2024 18:28
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

Successfully merging this pull request may close these issues.

3 participants