Skip to content

Commit 4c5700f

Browse files
committed
Integrate Documentation Tests into Makefile
We already have a tests that the documentation of the guides renders without warnings in the github workflows. However these tests also need to be run with the functional and integration tests: Changes to the guides might break rendering our own docs, which also represent a test-case.
1 parent cfd5bc0 commit 4c5700f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ psalm:
2424
$(PHP_BIN) vendor/bin/psalm --update-baseline
2525

2626
.PHONY: test
27-
test: test-unit test-functional test-integration## Runs all test suites with phpunit/phpunit
27+
test: test-unit test-functional test-integration test-docs## Runs all test suites with phpunit/phpunit
2828

2929
.PHONY: test-unit
3030
test-unit: ## Runs unit tests with phpunit/phpunit
@@ -38,6 +38,10 @@ test-functional: ## Runs functional tests with phpunit/phpunit
3838
test-integration: ## Runs integration tests with phpunit/phpunit
3939
$(PHP_BIN) vendor/bin/phpunit --testsuite=integration
4040

41+
.PHONY: test-docs
42+
test-docs: ## Generate projects docs without warnings
43+
$(PHP_BIN) vendor/bin/guides -vvv --no-progress docs /tmp/test --fail-on-log
44+
4145
.PHONY: cleanup
4246
cleanup: cleanup-tests cleanup-build cleanup-cache
4347

0 commit comments

Comments
 (0)