-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (42 loc) · 2.13 KB
/
Makefile
File metadata and controls
54 lines (42 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: help install test report report-tap spec-test unit-test unit-report unit-report-tap functional-test functional-report functional-report-tap
help:
@echo "Available commands:"
@echo ""
@echo " help list of available make commands"
@echo " install installs all dependencies (composer, npm, bower)"
@echo " test launch all tests (spec, unit, functional)"
@echo " report generate code coverage reports for unit and functional tests"
@echo " report-tap generate code coverage reports for unit and functional tests with --tap parameter"
@echo " spec-test launch PhpSpec tests"
@echo " unit-test launch PHPUnit unit tests"
@echo " unit-report launch PHPUnit unit tests with code coverage reports"
@echo " unit-report-tap launch PHPUnit unit tests with code coverage reports and --tap parameter"
@echo " functional-test launch PHPUnit functional tests"
@echo " functional-report launch PHPUnit functional tests with code coverage reports"
@echo " functional-report-tap launch PHPUnit functional tests with code coverage reports and --tap parameter"
@echo ""
install:
composer install
test: spec-test unit-test functional-test
report: unit-report functional-report
report-tap: unit-report-tap functional-report-tap
spec-test:
@echo "NO PHPSPEC TESTS"
unit-test:
@echo "PHPUNIT -- UNIT TESTS"
vendor/bin/phpunit -c build/phpunit_unit_reports.xml --no-coverage
unit-report:
@echo "PHPUNIT -- UNIT TESTS -- WITH REPORT"
vendor/bin/phpunit -c build/phpunit_unit_reports.xml
unit-report-tap:
@echo "PHPUNIT -- UNIT TESTS -- WITH REPORT"
vendor/bin/phpunit -c build/phpunit_unit_reports.xml --tap
functional-test:
@echo "PHPUNIT -- FUNCTIONAL TESTS"
vendor/bin/phpunit -c build/phpunit_functional_reports.xml --no-coverage
functional-report:
@echo "PHPUNIT -- FUNCTIONAL TESTS -- WITH REPORT AND TAP"
vendor/bin/phpunit -c build/phpunit_functional_reports.xml
functional-report-tap:
@echo "PHPUNIT -- FUNCTIONAL TESTS -- WITH REPORT AND TAP"
vendor/bin/phpunit -c build/phpunit_functional_reports.xml --tap