All Projects → ligi → AndroidNewUnitTestTest

ligi / AndroidNewUnitTestTest

Licence: other
repo to test the new unit-testing support coming with 1.1

Programming Languages

java
68154 projects - #9 most used programming language

Project to test the new Unit-Testing support coming with 1.1 Generally it is working pretty nice - but there are some open problems with the new build plugin that is needed for this e.g.:

There is now also initial documentation on this:

You can also use this in combination with robolectric. You need the changes from https://github.com/robolectric/robolectric-gradle-plugin/pull/129 - they are merged to master, but not released as artifact yet. So you will have to do:

$> git clone [email protected]:robolectric/robolectric-gradle-plugin.git
$> cd robolectric-gradle-plugin 
$> gradle install

this is used on the branch: with_robolectric Unfortunately tests will fail with ResourceNotFoundException on the console - but it works in the IDE

Known Problems with Robolectric:

  • resources from library projects cannot be resolved ( android.content.res.Resources$NotFoundException )
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].