Welcome Guest, Not a member yet? Register   Sign In
PHPUnit and extended class
#2

(03-17-2021, 11:30 AM)WebboyFR Wrote: Please, how can I exclude the framework's class from my test ?

By default  the framework's test classes are excluded.
How do you include it?

Here is CI 4.1.1 test results. No "CodeIgniter\Test\FeatureTestCase".
Code:
$ vendor/bin/phpunit --debug
PHPUnit 9.5.2 by Sebastian Bergmann and contributors.

Test 'ExampleDatabaseTest::testModelFindAll' started
Test 'ExampleDatabaseTest::testModelFindAll' ended
Test 'ExampleDatabaseTest::testSoftDeleteLeavesRow' started
Test 'ExampleDatabaseTest::testSoftDeleteLeavesRow' ended
Test 'ExampleSessionTest::testSessionSimple' started
Test 'ExampleSessionTest::testSessionSimple' ended
Test 'HealthTest::testIsDefinedAppPath' started
Test 'HealthTest::testIsDefinedAppPath' ended
Test 'HealthTest::testBaseUrlHasBeenSet' started
Test 'HealthTest::testBaseUrlHasBeenSet' ended


Time: 00:00.472, Memory: 22.00 MB

OK (5 tests, 6 assertions)

Generating code coverage report in Clover XML format ... done [00:00.157]

Generating code coverage report in HTML format ... done [00:00.261]

Generating code coverage report in PHP format ... done [00:00.001]


Code Coverage Report:  
  2021-03-17 17:49:56  
                       
Summary:              
  Classes: 20.00% (1/5)
  Methods: 16.67% (1/6)
  Lines:   20.45% (9/44)

Config\Database
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  4/  4)
Reply


Messages In This Thread
PHPUnit and extended class - by WebboyFR - 03-17-2021, 11:30 AM
RE: PHPUnit and extended class - by kenjis - 03-17-2021, 03:52 PM
RE: PHPUnit and extended class - by WebboyFR - 03-18-2021, 01:32 AM
RE: PHPUnit and extended class - by WebboyFR - 03-18-2021, 01:55 AM
RE: PHPUnit and extended class - by kenjis - 03-18-2021, 10:26 PM
RE: PHPUnit and extended class - by WebboyFR - 03-19-2021, 02:06 AM
RE: PHPUnit and extended class - by kenjis - 03-19-2021, 02:20 AM
RE: PHPUnit and extended class - by WebboyFR - 03-19-2021, 02:29 AM
RE: PHPUnit and extended class - by kenjis - 03-19-2021, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB