-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make it possible to implement integration tests #166
Comments
What kind of integration tests would you like to add? Generally, I think it would make sense to split the code into the unsafe C API that just does the data mapping, and a safe Rust API that returns |
I wanted to add tests that used different config files to test #165 on bad files, fingerprints etc... I can't do that in the normal tests because the |
Maybe the change to |
That would require serializing all the tests. |
Would that be an issue? I think if we really want integration tests for a library with a global state, we need sequential tests. If you only want to test the init implementation without the PKCS11 wrapper, you could also test |
I would want to test the full |
You will probably run into issues with repeated calls to |
I was able to implement this in 4157673 |
Some form of integration tests have been implemented as part of #214 |
Since the module is a
cdylib
it is not possible to have integration tests on the main crate.I suggest splitting the crate into a normal rust crate and a
cdylib
that just reexports it that way integration testing is possible.The text was updated successfully, but these errors were encountered: