]> git.lizzy.rs Git - rust.git/commit
Add a way to track Rustfix UI test coverage
authorPhilipp Hansch <dev@phansch.net>
Sun, 24 Mar 2019 13:06:47 +0000 (14:06 +0100)
committerPhilipp Hansch <dev@phansch.net>
Sun, 24 Mar 2019 16:04:40 +0000 (17:04 +0100)
commit02b8533ac8c1cc4521b1da91e52c1327f656c44a
treeff71c7e73d919de241203795d7f82d5bdda16860
parentfb5ed488ff1a251db895c545592488a67be67112
Add a way to track Rustfix UI test coverage

This came out of the first Rustfix WG meeting.

One of the goals is to enable Rustfix tests for all UI tests that
trigger lints with `MachineApplicable` suggestions. In order to do that
we first want to create a tracking issue that lists all files with
missing `// run-rustfix` headers.

This PR adds a `--rustfix-coverage` flag to `./x.py` and compiletest to
list the files with the missing headers in `/tmp/rustfix_missing_coverage.txt`.

From that file we can create the tracking issue and at some point also
enforce the `// run-rustfix` flag on UI tests with `MachineApplicable`
lints.
src/bootstrap/flags.rs
src/bootstrap/test.rs
src/tools/compiletest/src/common.rs
src/tools/compiletest/src/main.rs
src/tools/compiletest/src/runtest.rs