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

Better unit testing with workspaces #28

Open
totikom opened this issue Jul 22, 2021 · 0 comments
Open

Better unit testing with workspaces #28

totikom opened this issue Jul 22, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@totikom
Copy link
Collaborator

totikom commented Jul 22, 2021

Our unit tests works as follows:

  1. Copy 'tests/test-lib' to target
  2. Build 'target/test-lib' (this invokes our macro and creates 'target/test-lib/fuzz' directory with different fuzz-targets)
  3. Build each fuzz-target in 'target/test-lib/fuzz/fuzz_targets'

The disadvantage of this approach is that if macro produces code, which fails to compile, all the tests will fail.
Alternative is to create not just a crate 'test-lib', but a set of workspaces, which (1) can be compiled independently (2) shares a common dependencies cache.

@totikom totikom added the enhancement New feature or request label Jul 22, 2021
@totikom totikom self-assigned this Jul 22, 2021
totikom added a commit that referenced this issue Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant