mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use expect-test for HIR tests
This makes it easier to update cascading test failures while still making output reviewable in the PR.
This commit is contained in:
parent
d9720eaf10
commit
556fda0864
Notes:
git
2025-04-18 13:47:55 +00:00
5 changed files with 121 additions and 112 deletions
10
doc/zjit.md
10
doc/zjit.md
|
@ -50,6 +50,16 @@ You can also run a single test case by specifying the function name:
|
|||
make zjit-test ZJIT_TESTS=test_putobject
|
||||
```
|
||||
|
||||
If you expect that your changes cause tests to fail and they do, you can have
|
||||
`expect-test` fix the expected value for you by putting `UPDATE_EXPECT=1`
|
||||
before your test command, like so:
|
||||
|
||||
```
|
||||
UPDATE_EXPECT=1 make zjit-test ZJIT_TESTS=test_putobject
|
||||
```
|
||||
|
||||
Test changes will be reviewed alongside code changes.
|
||||
|
||||
<details>
|
||||
|
||||
<summary>Setting up zjit-test</summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue