--
You received this message because you are subscribed to the Google Groups "Robolectric" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robolectric...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Robolectric" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robolectric/71ZMRDK1gII/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robolectric...@googlegroups.com.
PERFECT news!
That will be really helpful at least for me.
Thanks,
Nick
--
You received this message because you are subscribed to a topic in the Google Groups "Robolectric" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robolectric/71ZMRDK1gII/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robolectric...@googlegroups.com.
Thanks for updating.
Can you pls provide us with the link here when it will be done?
Thanks,
Nick
From: robol...@googlegroups.com [mailto:robol...@googlegroups.com] On Behalf Of Jake Wharton
Sent: Thursday, August 15, 2013 6:45 PM
To: robol...@googlegroups.com
Subject: Re: [robolectric] Re: Robolectric + Android Studio + Gradle
People are beta testing it now. It'll have a 0.9 release today or tomorrow.
--
You received this message because you are subscribed to a topic in the Google Groups "Robolectric" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robolectric/71ZMRDK1gII/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robolectric...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Robolectric" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robolectric...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi SuperJugy, thanks for the reply. Actually my problem is not running the tests inside Studio. I don't mind having to run them from the CLI.
My problem is being able to write the tests inside Studio, because it's not finding Robolectric, neither FEST.
Obviously, I could do all imports by hand and always compile from the CLI, but I'm just asking if there is a way to compile the tests from Studio.
Thanks again.
java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1140) at java.util.regex.Matcher.reset(Matcher.java:291) at java.util.regex.Matcher.<init>(Matcher.java:211) at java.util.regex.Pattern.matcher(Pattern.java:888) at org.robolectric.res.ResName.<init>(ResName.java:25) at org.robolectric.res.builder.RobolectricPackageManager.getActivityInfo(RobolectricPackageManager.java:68) at android.support.v7.app.ActionBarActivityDelegate.getUiOptionsFromMetadata(ActionBarActivityDelegate.java:157) at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:53) at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98) at com.pnv.simplerobolectricwgradle.MainActivity.onCreate(MainActivity.java:12) at android.app.Activity.performCreate(Activity.java:5008)
I tried include appcompat as library, but nothing changed.
I also tried use latest 2.2 Robolectric with the same result.
You can find my simple test project here: SimpleRobolectricWGradleProject
Also is any chance that I will be able to run/debug and see results of unit tests in Android Studio?
Thanks,
Nick
I configured robolectric as seen in the deckard-gradle template, everything is fine except the fact that I get this error message when starting the robolectric tests via terminal: java.lang.RuntimeException: android.content.res.Resources$NotFoundException: unknown resource 2131296262 I know that it's related to the different flavors I use in the build.gradle. I am already using a custom TestRunner for Robolectric, but it is not working anyway, I tried 2.3 + 2.4 SNAPSHOT. My TestRunner looks like this:
What am I doing wrong? My flavors are declared like that:
It would be awesome if somebody could provide me some more informations on that! Thanks a lot! |