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

Integration Tests and Unit Tests should use random KeyData #244

Open
ubamrein opened this issue Sep 15, 2020 · 0 comments
Open

Integration Tests and Unit Tests should use random KeyData #244

ubamrein opened this issue Sep 15, 2020 · 0 comments

Comments

@ubamrein
Copy link
Contributor

Currently, in the unit and integration tests we use fixed, hardcoded keydata. Since keyData needs to be unique in the database, we introduce potential problems within one test class, when we make assertions on the number of keys in the database (e.g. two times a key with data "a" gets inserted, the second overwrites the first).

We propose to add a utility class, which provides a random keydata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant