Skip to content

Commit 5e8574d

Browse files
authored
Run Behat on scrutinizer (#86)
1 parent 70c5b54 commit 5e8574d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build:
1616
stop_on_failure: true
1717
override:
1818
-
19-
command: make coverage
19+
command: make coverage && make test-behat
2020
idle_timeout: 1200
2121
coverage:
2222
file: 'build/coverage/clover.xml'

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ test-technical:
8181

8282
test-functional:
8383
./vendor/bin/phpunit ${PHPUNIT_COLOR_OPTION} ${PHPUNIT_OUTPUT_STYLE_OPTION} --testsuite functional
84+
make test-behat
85+
86+
test-behat:
8487
./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} --no-snippets
8588

8689
codestyle: create-reports-directory
@@ -89,11 +92,6 @@ codestyle: create-reports-directory
8992
coverage: create-coverage-directory
9093
./vendor/bin/phpunit ${PHPUNIT_COLOR_OPTION} ${PHPUNIT_OUTPUT_STYLE_OPTION} ${PHPUNIT_COVERAGE_OPTION}
9194

92-
behat-coverage: create-behat-coverage-directory
93-
composer required leanphp/behat-code-coverage
94-
./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} --no-snippets --profile coverage
95-
96-
9795
# Internal commands
9896
create-coverage-directory:
9997
mkdir -p ${COVERAGE_DIRECTORY}

0 commit comments

Comments
 (0)