php - Create dynamic tests with PHPUnit -



php - Create dynamic tests with PHPUnit -

i trying write dynamic tests in php.

the thought parts of code test (based on annotations).

i have working 1 way; test class has single method testrun , dataprovider testrunprovider tests each method in turn given set of info dynamically generated. work, when test fails not readable, there 1 test different data.

i've tried numerous combinations of creating tests , suites within test has provider, feeds methods, far can figure should mean each method test, create new suite of tests it, pass info too.

the closest ive gotten name of "new" test show, never completes , test runner doesnt recognise new test in total count.

so turns out there - can define custom test suite putting static function called suite takes argument name of suite.

where going wrong not returning suite creates.

php unit-testing dynamic

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -