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

Test Framework: Do Not Check for Exact Number of Search Results in E2E Tests #171

Merged
merged 1 commit into from Apr 8, 2020

Conversation

tobiasschweizer
Copy link
Contributor

@tobiasschweizer tobiasschweizer commented Apr 8, 2020

This PR changes the assertions in the E2E tests so that search tests do not expect an exact number of results (see dasch-swiss/dsp-api#1615 (comment)). The data can always change in knora-api, but this is irrelevant to these tests. They just have to make sure that the result can be obtained and deserialized correctly.

@tobiasschweizer tobiasschweizer added the enhancement Improve existing code or new feature label Apr 8, 2020
@tobiasschweizer tobiasschweizer self-assigned this Apr 8, 2020
@tobiasschweizer
Copy link
Contributor Author

tobiasschweizer commented Apr 8, 2020

Once this PR has been merged, the JS lib tests will pass for knora-api.

edit: the tests for dasch-swiss/dsp-api@e80bf52 can then be re-run

Copy link
Contributor

@benjamingeer benjamingeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for now, but I really think we should remove these tests, and instead check for compatibility between releases.

@tobiasschweizer
Copy link
Contributor Author

but I really think we should remove these tests

you mean we should run them against a specific release of knora-api and remove the setup from github-ci as it is now?

@benjamingeer
Copy link
Contributor

you mean we should run them against a specific release of knora-api and remove the setup from github-ci as it is now?

Yes, exactly.

@tobiasschweizer
Copy link
Contributor Author

you mean we should run them against a specific release of knora-api and remove the setup from github-ci as it is now?

Yes, exactly.

Ok, let's do this once we have decided how to proceed with releases.

@tobiasschweizer tobiasschweizer merged commit 6520ea6 into master Apr 8, 2020
@tobiasschweizer tobiasschweizer deleted the wip/dsp-132-e2e branch April 8, 2020 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing code or new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants