summaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-08-15 22:01:30 -0700
committersteven-na <noreply.github@stvnc.dev>2026-08-15 22:01:30 -0700
commit37af20d053624e0cc2e5245ec2f6eba7a55158be (patch)
treeaaffc7d962d85c3cbbfe6e8410f125a16413b24c /Justfile
parent82e164f8796d57aa78c14b20f0a750f4b40c861b (diff)
Fix coverage recipe and failed tests (retval changes)
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Justfile b/Justfile
index e0834e4..7a2547d 100644
--- a/Justfile
+++ b/Justfile
@@ -87,7 +87,7 @@ test-all: (gen-version "debug")
coverage: (gen-version "debug")
mkdir -p {{build_dir}}/cov-src {{build_dir}}/cov-tests
cd {{build_dir}}/cov-src && {{cc}} {{cflags}} --coverage -c ../../{{src_dir}}/unity.c
- cd {{build_dir}}/cov-tests && {{cc}} {{cflags}} --coverage -c ../../{{test_dir}}/unity.c
+ cd {{build_dir}}/cov-tests && {{cc}} {{cflags}} --coverage -c ../../{{test_dir}}/*.c
{{cc}} {{cflags}} --coverage {{build_dir}}/cov-src/*.o {{build_dir}}/cov-tests/*.o -o {{build_dir}}/test-coverage -lcriterion {{lflags}}
./{{build_dir}}/test-coverage
gcovr --root . --filter '{{src_dir}}/' {{build_dir}}/cov-src --html-details {{build_dir}}/coverage.html --print-summary