This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253568 - Codeception could use some PHPUnit code?
Summary: Codeception could use some PHPUnit code?
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Codeception (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 05:10 UTC by Tomas Mysik
Modified: 2016-08-12 10:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2015-07-20 05:10:08 UTC
Since Codeception internally uses PHPUnit, we could try to create some PHPUnit API which could be used (perhaps XML log parser? Maybe more). Junichi, do you have any idea what could be done here, please? I would do that.

Thanks.
Comment 1 junichi11 2015-07-23 02:40:26 UTC
(In reply to Tomas Mysik from comment #0)
> Since Codeception internally uses PHPUnit, we could try to create some
> PHPUnit API which could be used (perhaps XML log parser? Maybe more).
> Junichi, do you have any idea what could be done here, please? I would do
> that.

There are a bit differences between XML logs.
The "testsuite" element doesn't have the "file" attribute in a codeception xml log. Perhaps, if the testsuite doesn't have it, it will be ignored in PhpUnitLogParser.

I guess that PhpUnitCoverageLogParser can be used in the Codeception module. 

I used the same code as PhpUnit.LINE_PATTERN in the Codecept class.

Thanks!
Comment 2 Tomas Mysik 2015-07-23 05:27:58 UTC
Thanks for the info, will have a look at it. It is not necessary but it would be nice to have it.

Thanks.
Comment 3 junichi11 2015-07-23 22:31:07 UTC
I think so. It would be great to have it!

Thanks.
Comment 4 Tomas Mysik 2016-03-15 14:53:56 UTC
BTW in the current dev build, PHPUnit uses --log-json (which is a stream) instead of --log-junit so the results are continuous.
Comment 5 Tomas Mysik 2016-08-12 10:54:31 UTC
More an enahncement than a bug.