mercredi 3 août 2016

With codeception unit test i get Dependent test for ... not found

I have unit test called testSaveImage. That runs without any issue. The next test is testCompleteUpload. This has some dependencies, and it depends from testSaveImage to. When the testing arrives to testCompleteUpload it gives this error, and marks the test as skipped

MobileAPITest: Complete upload
Test  tests/unit/MobileAPITest.php:testCompleteUpload
Dependent test for MobileAPITest:testSaveImage not found

This is some part of code

/**
 * @depends testLoginSuccess
 * @depends testSaveSuccess
 * @dataProvider imageProvider
 */
public function testSaveImage($data, $token, $id){...}

/**
 * @depends testLoginSuccess
 * @depends testSaveSuccess
 * @depends testSaveA
 * @depends testSaveB
 * @depends testSaveImage
 */
public function testCompleteUpload($token, $id){...}

Aucun commentaire:

Enregistrer un commentaire