File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,14 @@ $projectName = basename(getcwd());
66exec ('vendor\bin\codecept run --no-colors -n --html ' , $ output , $ returnCode );
77
88if ($ returnCode !== 0 ) {
9+ //We will fetch the generated HTML page with all test results and print it to the message
910 $ 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" );
11+ $ minimalTestSummary = array_pop ($ output );
12+ printf ("Codeception Test suite for %s failed: " , $ projectName );
13+ printf ("( %s ) %s " , $ minimalTestSummary , PHP_EOL );
14+ printf ("%s %s " , $ html , PHP_EOL );
15+ printf ("ABORTING Push! \n" );
16+ exit (1 );
1817}
1918
2019exit (0 );
Original file line number Diff line number Diff line change 33
44$ projectName = basename (getcwd ());
55
6- exec ('vendor\bin\codecept run --no-colors -n --html ' , $ output , $ returnCode );
6+ exec ('vendor\bin\codecept run -q -n ' , $ output , $ returnCode );
77
88if ($ 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" );
9+ printf ("ABORTING Push! \n" );
10+ exit (1 );
1811}
1912
2013exit (0 );
You can’t perform that action at this time.
0 commit comments