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

Extend test suite with basic credential management #81

Merged
merged 5 commits into from
May 23, 2024
Merged

Conversation

robin-nitrokey
Copy link
Member

@robin-nitrokey robin-nitrokey commented May 17, 2024

This PR improves the infrastructure for the test suite and also adds some tests for basic credential management that reproduce #80 (if enabled).

To do:

  • reduce boilerplate code
  • parametrize tests, maybe with exhaustive?
  • randomize tests, maybe with quickcheck?
  • add negative tests
  • add logging
  • improve error formatting

This patch changes the test setup to use separate Channel instances for
each test case.  This means that a panic in one test case does not
affect other test cases.
@robin-nitrokey robin-nitrokey merged commit a2b0280 into main May 23, 2024
2 checks passed
@robin-nitrokey robin-nitrokey deleted the tests branch May 23, 2024 10:07
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.

2 participants