We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2e123 commit f821dceCopy full SHA for f821dce
git-hooks/pre-commit
@@ -1,6 +1,6 @@
1
#!/usr/bin/env php
2
<?php
3
-
+//Run codeception tests and show HTML file with generated test results
4
$projectName = basename(getcwd());
5
6
exec('vendor\bin\codecept run --no-colors -n --html', $output, $returnCode);
git-hooks/pre-push
@@ -1,13 +1,11 @@
+//Run codeception tests and abort on fail
-exec('vendor\bin\codecept run -q -n', $output, $returnCode);
+exec('vendor\bin\codecept run -n -q -f', $output, $returnCode);
7
8
if ($returnCode !== 0) {
9
- printf("ABORTING Push!\n");
10
exit(1);
11
}
12
13
exit(0);
0 commit comments