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

Consider using Cargo's testing framework to implement offline validation tests #10

Closed
PaulDance opened this issue Jan 4, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@PaulDance
Copy link
Owner

PaulDance commented Jan 4, 2024

Cargo has its own test support framework: https://github.com/rust-lang/cargo/blob/master/crates/cargo-test-support/. An example of usage: https://github.com/hi-rustin/cargo-information/blob/main/tests/testsuite/cargo_information/basic/mod.rs. It should be a good candidate to implement validation tests that actually run in GitHub's CI that does not allow external connections.

trycmd or snapbox should also help in this endeavor.

Try terminal resizing hacks to check that the README.md tests work while still preserving a readable presentation. 70 columns should do fine.

@PaulDance PaulDance added the enhancement New feature or request label Jan 4, 2024
@PaulDance PaulDance self-assigned this Jan 4, 2024
PaulDance added a commit that referenced this issue Feb 1, 2024
A good step towards #10.

Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
@PaulDance
Copy link
Owner Author

Released as part of v0.5.0.

@PaulDance PaulDance added this to the v0.5.0 milestone Feb 26, 2024
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