Developers/Unit Testing

From PartKeepr Wiki
Revision as of 12:16, 10 October 2015 by Felicitus (talk | contribs) (Created page with "= Introduction = Most PartKeepr tests are actually functional tests. = Common Issues = == Fatal error: Call to undefined method PHPUnit_TextUI_TestRunner::printVersionStrin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Most PartKeepr tests are actually functional tests.

Common Issues

Fatal error: Call to undefined method PHPUnit_TextUI_TestRunner::printVersionString()

This might happen if you are using a local PHPUnit installation. You should use the phpunit version installed in

vendor/bin/phpunit

Unable to find file "@PartKeeprFrontendBundle/Resources/public/js/"

Sometimes the cache messes up unit tests, as we are doing functional tests. You should [Developers/Re-generating_the_environment|regenerate the environment].