-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into line-ending
- Loading branch information
Showing
24 changed files
with
1,810 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,30 +16,40 @@ solve with the feature and maybe provide some ideas for how to go about that. | |
|
||
## Running the Tests | ||
|
||
When you want to contribute directly please make sure to run the tests and | ||
format the code before making a pull request. Tests are also run in CI but | ||
it's typically easier to run them locally. | ||
|
||
To run all tests a makefile is provided | ||
|
||
```sh | ||
make test | ||
``` | ||
|
||
If you want to format the code you can quickly run this command: | ||
To format the code, run: | ||
|
||
```sh | ||
make format | ||
``` | ||
|
||
## Conduct | ||
To run the version of `cargo-insta` in the working directory, run: | ||
|
||
This issue tracker follows the [Rust Code of Conduct]. For escalation or moderation | ||
issues please contact Armin ([email protected]) instead of the Rust moderation team. | ||
```sh | ||
cargo run -p cargo-insta -- test # (or `review` or whatever command you want to run) | ||
``` | ||
|
||
[rust code of conduct]: https://www.rust-lang.org/policies/code-of-conduct | ||
...in contrast to running `cargo insta`, which invokes the installed version of | ||
`cargo-insta`, and so make iterating more difficult. | ||
|
||
## Writing tests | ||
|
||
If making non-trivial changes to `cargo-insta`, please add an integration test to | ||
`cargo-insta/tests/main.rs`. Feel free to add an issue if anything is unclear. | ||
|
||
## Website / Documentation | ||
|
||
If you want to do changes to the website or documentation have a look at the | ||
To make changes to the website or documentation, have a look at the | ||
separate [insta-website](https://github.com/mitsuhiko/insta-website) repository. | ||
|
||
## Conduct | ||
|
||
This issue tracker follows the [Rust Code of Conduct]. For escalation or moderation | ||
issues please contact Armin ([email protected]) instead of the Rust moderation team. | ||
|
||
[rust code of conduct]: https://www.rust-lang.org/policies/code-of-conduct |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.