kohana / minion

Everyone loves having a minion they can boss around
113 stars 76 forks source link

All of the minion migration tests fail if no unittest connection exists #20

Closed bobeagan closed 13 years ago

bobeagan commented 13 years ago

Minion_Migration_ModelTest::test_fetch_all Undefined index: unittest

[..]/modules/unittest/classes/kohana/unittest/database/testcase.php:85 [..]/modules/unittest/classes/kohana/unittest/database/testcase.php:60

Note: this is on a Kohana 3.0.x project

Excluding inclusion of all the others as they say the same thing; undefined index: unittest

BRMatt commented 13 years ago

Well you need to specify a database connection else the tests can't run...

bobeagan commented 13 years ago

Right, and I do that in my cascading configs that load specific to the environment. I don't think I should have to create a separate database group just for unit tests. It should be handled by the developer based on Kohana::$environment instead.

BRMatt commented 13 years ago

This is more of an issue with kohana's unittest module as it provides the database test case that minion uses

bobeagan commented 13 years ago

Right, I will move my issue over there.

http://dev.kohanaframework.org/issues/3677