mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-03-30 23:16:40 +08:00
1.1 KiB
1.1 KiB
Contributing
Tests and Coverage
PRs must include test coverage. However, if your PR includes large tests or tests which cannot run in parallel
(which is the default operation of the cargo test command), these tests should be decorated with #[ignore].
If you add #[ignore] tests, you should add your branch to the filters for the all_tests job in our circle.yml
(or if you are working on net code or marf code, your branch should be named such that it matches the existing
filters there).
A test should be marked #[ignore] if:
- It does not always pass
cargo testin a vanilla environment (i.e., it does not need to run with--test-threads 1). - Or, it runs for over a minute via a normal
cargo testexecution (thecargo testcommand will warn if this is not the case).
Formatting
This repository uses the default rustfmt formatting style. PRs will be checked against rustfmt and will fail if not
properly formatted.
You can check the formatting locally via:
cargo fmt --all -- --check
You can automatically reformat your commit via:
cargo fmt --all