-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from albins/testing-doc
[WIP] Describe standard proceedure for writing and running tests in the book
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Testing Polonius | ||
|
||
## Rust UI Tests with Polonius Compare Mode | ||
|
||
There is a mode of the Rust test suite that compares Polonius' output to the | ||
current NLL one. You can invoke it by using `--compare-mode polonius`. For | ||
example, the following will run the UI tests: | ||
|
||
``` | ||
$ ./x.py test -i --stage 1 --compare-mode polonius src/test/ui | ||
``` | ||
|
||
## Polonius' Own Unit Test | ||
|
||
(Not yet written, but this section should describe how to use `polonius-parser` | ||
to generate input for unit tests.) |