Hello, I am testing PHPunit with CI4.
I run a test on HTTP testing (to test routes), so my classe extends "FeatureTestCase"
And when I run my test, PHPUNIT says :
Code:
1) Warning
No tests found in class "CodeIgniter\Test\FeatureTestCase".
This is my test class :
PHP Code:
<?php
namespace App;
use CodeIgniter\Test\FeatureTestCase;
class TestUrlExists extends FeatureTestCase
{
public function setUp(): void
{
parent::setUp();
}
public function tearDown(): void
{
parent::tearDown();
}
public function testHome(){
$result = $this->call('get', '/');
$this->assertTrue($result->isOK());
}
public function testContact(){
$result = $this->call('get', '/contact');
$this->assertTrue($result->isOK());
}
}
I just want to "exclude" the parent class from the code coverage, but I search everywhere, I didn't find. I think it's more touchy because it's not a file but a namespace...
Please, how can I exclude the framework's class from my test ?
Thanks