File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1111 },
1212 "require-dev" : {
1313 "codeception/codeception" : " 2.3.x-dev" ,
14+ "mockery/mockery" : " 1.0" ,
15+ "barryvdh/laravel-ide-helper" : " 2.4.1" ,
1416 "symfony/dom-crawler" : " ~3.0" ,
1517 "symfony/css-selector" : " ~3.0"
1618 },
1921 " database"
2022 ],
2123 "psr-4" : {
22- "App\\ " : " app/"
24+ "App\\ " : " app/" ,
25+ "Tests\\ " : " tests/"
2326 }
2427 },
2528 "autoload-dev" : {
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ $ projectName = basename (getcwd ());
5+
6+ exec ('vendor\bin\codecept run --no-colors -n --html ' , $ output , $ returnCode );
7+
8+ if ($ returnCode !== 0 ) {
9+ $ html = array_pop ($ output );
10+ $ minimalTestSummary = array_pop ($ output );
11+ printf ("Codeception Test suite for %s failed: " , $ projectName );
12+ printf ("( %s ) %s " , $ minimalTestSummary , PHP_EOL );
13+ printf ("%s %s " , $ html , PHP_EOL );
14+ printf ("ABORTING Push! \n" );
15+ exit (1 );
16+ } else {
17+ printf ("Codeception tests are successful! \n" );
18+ }
19+
20+ exit (0 );
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ $ projectName = basename (getcwd ());
5+
6+ exec ('vendor\bin\codecept run --no-colors -n --html ' , $ output , $ returnCode );
7+
8+ if ($ returnCode !== 0 ) {
9+ $ html = array_pop ($ output );
10+ $ minimalTestSummary = array_pop ($ output );
11+ printf ("Codeception Test suite for %s failed: " , $ projectName );
12+ printf ("( %s ) %s " , $ minimalTestSummary , PHP_EOL );
13+ printf ("%s %s " , $ html , PHP_EOL );
14+ printf ("ABORTING Push! \n" );
15+ exit (1 );
16+ } else {
17+ printf ("Codeception tests are successful! \n" );
18+ }
19+
20+ exit (0 );
You can’t perform that action at this time.
0 commit comments