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 235354

Summary: Add support for Codeception framework
Product: php Reporter: songoko20000
Component: ProjectAssignee: Tomas Mysik <tmysik>
Status: RESOLVED FIXED    
Severity: normal CC: dynasource, junichi11, vriha
Priority: P2    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description songoko20000 2013-09-01 02:09:24 UTC
It would be great if Netbeans added support for Codeception framework (http://codeception.com/).

Codeception is used for doing both Functional,Story and Unit testing testing in addition to BDD.
Comment 1 bugmenot1 2014-02-12 14:27:29 UTC
If you want to run all tests and exclude codeception tests in Netbeans you have to use this ugly hack. Put this at the top of your test file:

if (!class_exists('Codeception\TestCase\Test')) {
    return;
}

I tried exclude dir in phpunit config file, add tests to special group, but always when I tried to run all tests Netbeans fail:

Fatal error: Class 'Codeception\TestCase\Test' not found in ...
Comment 2 Tomas Mysik 2015-07-15 06:17:52 UTC
*** Bug 246240 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Mysik 2015-07-15 07:28:01 UTC
Junichi has created a plugin for Codeception [1]. This plugin could be part of standard distribution of NetBeans soon.

Thanks Junichi!
[1] https://bitbucket.org/junichi11/nb-codeception
Comment 4 andrewpk 2015-07-15 13:33:17 UTC
(In reply to Tomas Mysik from comment #3)
> Junichi has created a plugin for Codeception [1]. This plugin could be part
> of standard distribution of NetBeans soon.
> 
> Thanks Junichi!
> [1] https://bitbucket.org/junichi11/nb-codeception

This is pretty awesome. Thanks!
Comment 5 Tomas Mysik 2015-07-17 06:43:50 UTC
Support has been added. Please, test it and report all the issues you find.

Thanks.

http://hg.netbeans.org/web-main/rev/22d3bce0eaee
Comment 6 Quality Engineering 2015-07-18 01:46:47 UTC
Integrated into 'main-silver', will be available in build *201507180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/22d3bce0eaee
User: Tomas Mysik <tmysik@netbeans.org>
Log: #235354 - Add support for Codeception framework

Patch contributed by junichi11@netbeans.org.