unit testing - How can I create test-suites to run on VisualPHPUnit? -


i using visualphpunit , trying organize tests suites (due fact selenium ide not export phpunit test suites). implementing option of configuration xml file.

yet,it limiting cause want run test suites on demand , not uploading each time on server new xml file (aka test suite).

i know can create xml file many test-suites in run them individually.

as understand struggling towards dontrepeatyourself principle , code reuse.you know..just choose login.php , testcase , them logout.php , run them. possible???

moreover...would difficult visualphpunit parse 1 xml file , create dropdown box of testsuites choose , run?

this xml file

<phpunit>  <!-- required vpu work correctly --> <listeners>          <listener class="phpunit_util_log_json"></listener> </listeners>    <testsuites>     <testsuite name="testsuite1">      <file>/var/www/visualphpunit/app/unittests/login/login.php</file>      <file>/var/www/visualphpunit/app/unittests/createcourse/createcourse1.php</file>      <file>/var/www/visualphpunit/app/unittests/logout.php</file>      </testsuite>   </testsuites> </phpunit> 

actually php formaters once again available selenium ide. may want check out: https://addons.mozilla.org/en-us/firefox/addon/selenium-ide-php-formatters/

there 2 php formaters: php_unit , php_selenium


Comments