I'm working on trying to refactor an old module someone had built and wanted to have unit tests in place so I could make sure the refactored version was working correctly, so I installed EcomDev_PHPUnit via Magento Connect, added the database and url details to local.xml.phpunit and then added the phpunit entry into the module configuration so it would recognise it as having tests present
The problem is that, when I try to run phpunit in the base directory like the instructions say, it just shows the help prompt phpunit does when you run it without a target. I then tried running it on the Magento directory, but other modules with tests started throwing errors about core classes not being available. The last thing I tried was just running phpunit on the test I'd built, which just had an empty function in it so shouldn't have thrown any errors, but that complained about EcomDev_PHPUnit_Test_Case not being found.
So I'm stuck, it seems like I either can't run any tests or the tests won't import the correct classes from Magento. Does anyone know what might be causing this? I'd really appreciate a bit of help with this