New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substeps in HTML ResultPrinter are not properly rendered #3410

Closed
niclopez opened this Issue Aug 5, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@niclopez
Contributor

niclopez commented Aug 5, 2016

Since "substeps" were implemented, HTML are not rendered with success. I think is not easier as it seems (only case 4 fails), because there are many possible scenarios. I try to explain below:

CASE 1 (SUCCESS)

    public function demo(FunctionalTester $I)
    {
        $I->comment('no metaStep');
        $I->comment('no metaStep');
    }
Codeception PHP Testing Framework v2.2.3
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
[Groups] demo 

Functional Tests (1) -----------------------------------------------------------------------------
TemplateDemoCest: Demo
Signature: TemplateDemoCest:demo
Test: tests/functional/templateDemoCest.php:demo
Scenario --
 no metaStep
 no metaStep
 PASSED 

RESULT:
case1

CASE 2 (SUCCESS)

    public function demo(FunctionalTester $I)
    {
        $I->comment('no metaStep');
        $I->demoAction1();
        $I->comment('no metaStep');
    }
Codeception PHP Testing Framework v2.2.3
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
[Groups] demo 

Functional Tests (1) -----------------------------------------------------------------------------
TemplateDemoCest: Demo
Signature: TemplateDemoCest:demo
Test: tests/functional/templateDemoCest.php:demo
Scenario --
 no metaStep
 I demo action1 
   I am on page "http://www.google.es"
   I am on page "http://www.google.com"
 no metaStep
 PASSED 

RESULT:
case2

CASE 3 (SUCCESS)

    public function demo(FunctionalTester $I)
    {
        $I->comment('no metaStep');
        $I->demoAction1();
        $I->comment('no metaStep');
        $I->demoAction2();
    }
Codeception PHP Testing Framework v2.2.3
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
[Groups] demo 

Functional Tests (1) -----------------------------------------------------------------------------
TemplateDemoCest: Demo
Signature: TemplateDemoCest:demo
Test: tests/functional/templateDemoCest.php:demo
Scenario --
 no metaStep
 I demo action1 
   I am on page "http://www.google.es"
   I am on page "http://www.google.com"
 no metaStep
 I demo action2 
   I am on page "https://es.yahoo.com/"
 PASSED 

RESULT:
case3

CASE 4 (FAIL) Only the last step is rendered...

    public function demo(FunctionalTester $I)
    {
        $I->demoAction1();
        $I->demoAction2();
    }
Codeception PHP Testing Framework v2.2.3
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
[Groups] demo 

Functional Tests (1) -----------------------------------------------------------------------------
TemplateDemoCest: Demo
Signature: TemplateDemoCest:demo
Test: tests/functional/templateDemoCest.php:demo
Scenario --
 I demo action1 
   I am on page "http://www.google.es"
   I am on page "http://www.google.com"
 I demo action2 
   I am on page "https://es.yahoo.com/"
 PASSED 

RESULT:
case4

CASE 5 (SUCCESS)

    public function demo(FunctionalTester $I)
    {
        $I->comment('no metaStep');
        $I->demoAction1WithNestedNoMetastep();
        $I->comment('no metaStep');
        $I->demoAction2();
    }
Codeception PHP Testing Framework v2.2.3
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
[Groups] demo 

Functional Tests (1) -----------------------------------------------------------------------------
TemplateDemoCest: Demo
Signature: TemplateDemoCest:demo
Test: tests/functional/templateDemoCest.php:demo
Scenario --
 no metaStep
 I demo action1 with nested no metastep 
   I am on page "http://www.google.es"
 no mestastep inside a method
 I demo action1 with nested no metastep 
   I am on page "http://www.google.com"
 no metaStep
 I demo action2 
   I am on page "https://es.yahoo.com/"
 PASSED 

RESULT:
case5

CASE 6 (SUCCESS)

    public function demo(FunctionalTester $I)
    {
        $I->demoAction1WithNestedNoMetastep();
        $I->demoAction2();
    }
Codeception PHP Testing Framework v2.2.3
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.
[Groups] demo 

Functional Tests (1) -----------------------------------------------------------------------------
TemplateDemoCest: Demo
Signature: TemplateDemoCest:demo
Test: tests/functional/templateDemoCest.php:demo
Scenario --
 I demo action1 with nested no metastep 
   I am on page "http://www.google.es"
 no mestastep inside a method
 I demo action1 with nested no metastep 
   I am on page "http://www.google.com"
 I demo action2 
   I am on page "https://es.yahoo.com/"
 PASSED 

RESULT:
case6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment