jeudi 20 juillet 2017

Force running a codeception test before another

If i define an @depends annotation like below, the test cannot be run if the createObjectBase Test has not run successfully before.

Sometimes i don't want to run the whole suite, but only the createObjectGeo Test. How can i define that if i run createObjectGeo, codeception runs createObjectBase before it?

/**
 * 
 */   
 public function createObjectBase  (AcceptanceTester $I) {
 }


/**
 * @depends createObjectBase  
 */   
 public function createObjectGeo(AcceptanceTester $I) {
 }

Aucun commentaire:

Enregistrer un commentaire