Welcome Guest, Not a member yet? Register   Sign In
testing with phpunit in phpstorm
#1

(This post was last modified: 11-22-2017, 10:12 AM by puschie.)

hey,
currently im trying to get phpunit run all tests ( include own application tests ) in phpstorm.

1. install all dependency via composer
  ( got an error on extractTo phpunit/php-code-coverage : no such file or stream | and git was not found : github.com/sebastianbergmann/php-code-coverage.git ) -> guess i dont need this for testing, so just as notice

2. download phpunit.phar and select it in Settings/Languages&Frameworks/PHP/TestFramework

when i try to run a test without the configuration file i get :
   Fatal error: Class 'CodeIgniter\Test\CIDatabaseTestCase' not found

when i try to run a test with the configuration file ( phpunit.xml.dist ) i get :
  require(application/Config/Paths.php): failed to open stream [...] \tests\_support\_bootstrap.php on line 10


im very new to phpunit - so maybe i miss some phpstorm configuration, but when i use the build-in test creation it work ( but i dont get codeignigter to run in a TestCase class )

thx for reading - hope someone had the same problems and solved it^^
Reply


Messages In This Thread
testing with phpunit in phpstorm - by puschie - 11-22-2017, 10:11 AM
RE: testing with phpunit in phpstorm - by puschie - 11-27-2017, 02:48 AM
RE: testing with phpunit in phpstorm - by puschie - 01-08-2018, 05:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB