Commit graph

21 commits

Author SHA1 Message Date
967bb580e6
Remove some newlines in the README 2026-04-16 17:24:00 +02:00
0719fa33c2
Support ✓/✗ as alternatives to [success]/[failure] 2026-04-16 17:23:59 +02:00
4704cc088d
Introduce a DSL to replace the plain bash scripts
It's really important for `git-check-assertions` blocks to be 'obviously
correct', so that we don't need to... test the tests that test the tests.

Let's introduce a little DSL that is less error-prone than a plain bash
script.
2026-04-16 17:23:59 +02:00
1543d47f6e
Update article name 2026-03-13 06:14:57 +01:00
0cdf9a73c6
Fix typos in README 2026-03-13 06:14:03 +01:00
e5baffa698
Document support for multiple git-check-assertion blocks 2026-03-11 23:02:37 +01:00
Sven van Heugten
1080fc60fd Merge pull request 'Cache successful commits' (#14) from cache into main
Reviewed-on: https://codeberg.org/svenvanheugten/git-check-assertions/pulls/14
2026-03-10 06:50:28 +01:00
e647b2599b
Cache successful commits
```git-check-assertions
run test/git-check-assertions.bats
assert_success

git checkout HEAD~1 bin
run test/git-check-assertions.bats
assert_failure
assert_output --partial "file exists, but it was expected to be absent"
```
2026-03-10 06:49:23 +01:00
bf26f40261
Put flake instructions in a <details> block 2026-03-06 18:42:00 +01:00
d4d25dd784
Slightly improve examples 2026-03-04 08:05:49 +01:00
fcea18e820
Add a real-world example to the README 2026-03-04 07:48:26 +01:00
d8e758387c
Add partial change example
```git-check-assertions
sed -i 's/HEAD~/HEAD/' test/git-check-assertions.bats
run test/git-check-assertions.bats
assert_failure
assert_output --partial "Expected command to fail, but it succeeded."
```
2026-03-04 07:27:46 +01:00
66a30d61cf
Fix typo 2026-03-04 07:03:47 +01:00
4eadcbe437
Document the helper functions 2026-03-03 21:14:08 +01:00
523df74b72
Use the new functions in the README examples 2026-03-03 20:32:14 +01:00
a1ffb1abd4
Fix incorrect number in diff 2026-03-03 07:25:23 +01:00
1fb1fcc4fa
Add installation instructions 2026-03-03 07:16:29 +01:00
e9c8e3b35e
Use bats.withLibraries instead of submodules 2026-03-03 07:16:29 +01:00
e48e27fb52
Add helper modules for bats
According to these instructions:
https://bats-core.readthedocs.io/en/stable/tutorial.html#quick-installation
2026-03-03 07:16:28 +01:00
4508d3f1b3
Make it possible to alter code inside of the bash script 2026-02-21 08:06:04 +01:00
f87d6bd4c8
Initial commit 2026-02-21 08:06:04 +01:00