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

Split test code #1023

Merged
merged 17 commits into from
Oct 26, 2023
Merged

Split test code #1023

merged 17 commits into from
Oct 26, 2023

Conversation

bobozaur
Copy link
Contributor

@bobozaur bobozaur commented Oct 23, 2023

An attempt at a better separation between test and production code. This comes with the removal of default features from aries_vcx and the introduction of the test_utils and the libvcx_logger crates.

Some run_setup_test macro changes were pulled from #1022 for simplicity (since this PR heavily modifies and moves test code).

NOTE: uniffi_aries_vcx and rust/mediator crates use test_utils as a full dependency (not dev) because of the MockLedger requirement. While a dummy implementor of LedgerRead and LedgerWrite` parts could be implemented, this part of the crates seems to be in need of updating anyway, so for simplicity this compromise was done.

@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2023

Codecov Report

Merging #1023 (dc0e5d8) into main (a85df79) will decrease coverage by 36.20%.
The diff coverage is 0.44%.

@@            Coverage Diff             @@
##             main   #1023       +/-   ##
==========================================
- Coverage   36.31%   0.11%   -36.20%     
==========================================
  Files         386     383        -3     
  Lines       22040   21284      -756     
  Branches     4063    3837      -226     
==========================================
- Hits         8003      25     -7978     
- Misses      11877   21254     +9377     
+ Partials     2160       5     -2155     
Flag Coverage Δ
unittests-aries-vcx 0.11% <0.44%> (-36.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
aries_vcx/src/common/credentials/encoding.rs 0.00% <ø> (-26.83%) ⬇️
aries_vcx/src/common/credentials/mod.rs 0.00% <ø> (-83.46%) ⬇️
aries_vcx/src/common/keys.rs 0.00% <ø> (-50.00%) ⬇️
aries_vcx/src/common/ledger/service_didsov.rs 0.00% <ø> (-22.67%) ⬇️
aries_vcx/src/common/mod.rs 50.00% <ø> (ø)
...vcx/src/common/primitives/credential_definition.rs 0.00% <ø> (-61.32%) ⬇️
...ies_vcx/src/common/primitives/credential_schema.rs 0.00% <ø> (-22.42%) ⬇️
aries_vcx/src/common/proofs/prover/mod.rs 0.00% <ø> (-48.79%) ⬇️
aries_vcx/src/common/proofs/verifier/mod.rs 0.00% <ø> (-86.65%) ⬇️
...cx/src/common/proofs/verifier/verifier_internal.rs 0.00% <ø> (-35.09%) ⬇️
... and 99 more

... and 142 files with indirect coverage changes

@bobozaur bobozaur self-assigned this Oct 24, 2023
Patrik-Stas
Patrik-Stas previously approved these changes Oct 25, 2023
Copy link
Contributor

@Patrik-Stas Patrik-Stas left a comment

Choose a reason for hiding this comment

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

This was a lot of work! Nice cleanup 👍 💯

Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
@Patrik-Stas Patrik-Stas merged commit d069fab into main Oct 26, 2023
28 checks passed
@Patrik-Stas Patrik-Stas deleted the refactor/test_code branch October 26, 2023 12:55
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.

3 participants