Skip to content

Commit

Permalink
refactor(tests): use testonnet instead of assert (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic authored Apr 17, 2023
1 parent 299e0e4 commit 3e494e0
Show file tree
Hide file tree
Showing 8 changed files with 522 additions and 323 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.jekyll-cache
jsonnetfile.lock.json
vendor
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
.PHONY: test
test:
jsonnet test.jsonnet
@cd test/; \
jb install; \
RESULT=0; \
for f in $$(find . -path './.git' -prune -o -name 'vendor' -prune -o -name '*_test.jsonnet' -print); do \
echo "$$f"; \
jsonnet -J vendor -J lib "$$f"; \
RESULT=$$(($$RESULT + $$?)); \
done; \
exit $$RESULT


.PHONY: docs
docs:
Expand Down
322 changes: 0 additions & 322 deletions test.jsonnet

This file was deleted.

Loading

0 comments on commit 3e494e0

Please sign in to comment.