Skip to content

Commit

Permalink
Merge pull request #2459 from phansch/mention_how_to_run_single_test
Browse files Browse the repository at this point in the history
Explain how to execute a single UI test
  • Loading branch information
oli-obk authored Feb 20, 2018
2 parents a149ec4 + 0b4e0b8 commit a7407f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ Therefore you can simply run `tests/ui/update-all-references.sh` (after running
`cargo test`) and check whether the output looks as you expect with `git diff`. Commit all
`*.stderr` files, too.

If you don't want to wait for all tests to finish, you can also execute a single test file by using `TESTNAME` to specify the test to run:

```bash
TESTNAME=ui/empty_line_after_outer_attr cargo test --test compile-test
```

And you can also combine this with `CARGO_INCREMENTAL`:

```bash
CARGO_INCREMENTAL=1 TESTNAME=ui/doc cargo test --test compile-test
```

### Testing manually

Manually testing against an example file is useful if you have added some
Expand Down

0 comments on commit a7407f9

Please sign in to comment.