Slightly improve examples
This commit is contained in:
parent
8de5bee57f
commit
d4d25dd784
1 changed files with 8 additions and 4 deletions
12
README.md
12
README.md
|
|
@ -114,14 +114,15 @@ assert_output --partial "Invalid URL"
|
|||
```
|
||||
~~~
|
||||
|
||||
Assert that a commit builds, and that a specific change breaks the tests (as discussed [here](https://sven.memcmp.org/2026-02-20-writing-the-steps-to-validate-a-test-in-the-commit-message/)):
|
||||
Assert that a specific change breaks the tests (as discussed [here](https://sven.memcmp.org/2026-02-20-writing-the-steps-to-validate-a-test-in-the-commit-message/)):
|
||||
|
||||
~~~
|
||||
```git-check-assertions
|
||||
dotnet test
|
||||
run dotnet test
|
||||
assert_success
|
||||
|
||||
sed -i '/crucial code/d' Main.fs
|
||||
dotnet build
|
||||
run dotnet test --no-build
|
||||
run dotnet test
|
||||
assert_failure
|
||||
```
|
||||
~~~
|
||||
|
|
@ -130,6 +131,9 @@ Assert that a specific change in a commit is necessary for the tests to succeed:
|
|||
|
||||
~~~
|
||||
```git-check-assertions
|
||||
run dotnet test
|
||||
assert_success
|
||||
|
||||
git checkout HEAD~ Main.fs
|
||||
run dotnet test
|
||||
assert_failure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue