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

Single folder for fixtures, remove almost all build scripts, make file #334

Merged
merged 14 commits into from
Jan 8, 2025

Conversation

CyonAlexRDX
Copy link
Contributor

@CyonAlexRDX CyonAlexRDX commented Jan 8, 2025

Changes:

  • Add script files for bumping patch version for all crates, one variant which git commits and one which does not
  • Add makefile which makes use of the above mentioned scripts, you can now make bump or make bump_and_commit to bump
  • Move all fixtures to ROOT/fixtures
  • Create new .cargo/config.toml which sets an important CARGO_WORKSPACE_DIR var which can be used from anywhere.
  • New crate prelude which has macro_rules for fixtures files
  • Ensure ALL crates depend on prelude
  • Switch all include_str!(concat!(env!("FIXTURE...)) to use the new fixtures macro
  • Update README to mention a bit about the workspace setup

@CyonAlexRDX CyonAlexRDX changed the title Ac/fixtures Single folder for fixtures, remove almost all build scripts, make file Jan 8, 2025
@@ -241,6 +240,15 @@ mod tests {

use base64::engine::general_purpose::URL_SAFE_NO_PAD;

#[test]
fn aaaaparse_url_into_request() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove

makefile Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Could add also build_ios

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

env!("FIXTURES_VECTOR"),
"rola_challenge_payload_hash_vectors.json"
));
let json = fixture_vector!("rola_challenge_payload_hash_vectors");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Way nicer right?!

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.32%. Comparing base (2e9c1e8) to head (117f861).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #334   +/-   ##
=======================================
  Coverage   94.32%   94.32%           
=======================================
  Files         427      427           
  Lines        4688     4688           
  Branches       79       79           
=======================================
  Hits         4422     4422           
  Misses        251      251           
  Partials       15       15           
Flag Coverage Δ
kotlin 97.18% <ø> (ø)
swift 93.41% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CyonAlexRDX CyonAlexRDX merged commit 629393c into main Jan 8, 2025
12 of 13 checks passed
@CyonAlexRDX CyonAlexRDX deleted the ac/fixtures branch January 8, 2025 15:09
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