dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 439 forks source link

Codeception report failed when Test format is used #988

Open tankist opened 9 years ago

tankist commented 9 years ago

There is a difference in XML report when using Cest and Test formats in Codeception:

Cest:

<testcase file="/home/stalin/www/PHPCI/PHPCI/build/2/tests/unit/Service/Search/Adapter/StandardCest.php" name="testStandardAdapterFindUseRelevanceSortAndNoAlgorithmRelevance" class="Unit\Service\Search\Adapter\StandardCest" feature="test standard adapter find use relevance sort and no algorithm relevance" assertions="1" time="0.115426"/>

Test:

<testcase name="testBeforeTestProfiler" class="Unit\Library\Codeception\Extensions\ProfilerTest" file="/home/stalin/www/PHPCI/PHPCI/build/2/tests/unit/Library/Codeception/Extensions/ProfilerTest.php" line="53" assertions="1" time="0.008662"/>

As you can see there is no feature attribute in Test XML entry

Codeception plugin by default is using feature attribute so for Test testcases it will be empty.

zot24 commented 8 years ago

How this have been addressed? It's fails for me and I'm in the 2.1.5 Codeception version.

Do we need to have both fixes? https://github.com/tankist/PHPCI/commit/ef21502e99893779f5b56cb281186ca210230918 and https://github.com/Codeception/Codeception/pull/1973? if so why this issue haven't been closed?

zot24 commented 8 years ago

Just for the record my issue here was similar but not the same:

Exception: Notice: Undefined index: class in /Users/zot/Desktop/phpci/PHPCI/Plugin/Util/TestResultParsers/Codeception.php line 67

Because there is not class on my report.xml file