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

Add cargo test in CI workflow, fix failing Rustdoc examples #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ppiotr3k
Copy link

Current CI workflow does not perform any testing on the codebase - which in fact does not include any unit or integration tests.
The lack of testing lowers the confidence users might have in the library, and makes upgrading dependencies complex as impact of such upgrades (ex: breaking changes) can't be identified easily.

This PR aims to try improving this, by having cargo test in the CI workflow, and fixing existing Rustdoc examples that are currently failing after such addition.

Current examples for `ModalCloser` fail `cargo test` as they
require some not provided yet required boilerplate code, plus
do include a minor mistake following previous changes in YBC.

This fixes `ModalCloser` examples to pass `cargo test`, while
preserving the existing code/snippets presentation choices.
@ppiotr3k
Copy link
Author

Adding cargo test to CI workflow and fixing existing Rustdoc examples have been performed in two commits not only as best practices to ease review, but also to highlight why fixing the Rustdoc examples was needed.

However, as workflow execution following PR requires approval, please use ppiotr3k/ybc in order to see the evolution of the CI status for each of those commits.

@ppiotr3k ppiotr3k marked this pull request as ready for review June 13, 2021 00:32
@ppiotr3k ppiotr3k mentioned this pull request Jun 19, 2021
5 tasks
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.

None yet

1 participant