Use the new functions in the README examples
This commit is contained in:
parent
3036d6d37e
commit
523df74b72
1 changed files with 8 additions and 4 deletions
12
README.md
12
README.md
|
|
@ -69,12 +69,13 @@ dotnet test --no-build
|
||||||
```
|
```
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Assert that a commit builds, but that the tests do not succeed (`assert_fails` is a helper function included in `git-check-assertions`):
|
Assert that a commit builds, but that the tests do not succeed:
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
```git-check-assertions
|
```git-check-assertions
|
||||||
dotnet build
|
dotnet build
|
||||||
assert_fails dotnet test --no-build
|
run dotnet test --no-build
|
||||||
|
assert_failure
|
||||||
```
|
```
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
@ -83,7 +84,9 @@ Assert that a commit builds, and that the tests fail with exactly the error that
|
||||||
~~~
|
~~~
|
||||||
```git-check-assertions
|
```git-check-assertions
|
||||||
dotnet build
|
dotnet build
|
||||||
(assert_fails dotnet test --no-build) | grep "Invalid URL"
|
run dotnet test --no-build
|
||||||
|
assert_failure
|
||||||
|
assert_output --partial "Invalid URL"
|
||||||
```
|
```
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
@ -94,6 +97,7 @@ Assert that a commit builds, and that a specific change breaks the tests (as dis
|
||||||
dotnet test
|
dotnet test
|
||||||
sed -i '/crucial code/d' Main.fs
|
sed -i '/crucial code/d' Main.fs
|
||||||
dotnet build
|
dotnet build
|
||||||
assert_fails dotnet test --no-build
|
run dotnet test --no-build
|
||||||
|
assert_failure
|
||||||
```
|
```
|
||||||
~~~
|
~~~
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue