Comments (4)
Do you have a public constructor?
On Jan 8, 2015 4:45 AM, "Kisty" [email protected] wrote:
Can't seem to run Burst with AndroidTestCase using a basic custom
instrumentation runner (class with getAndroidTestRunner() which returns
BurstAndroid).Using burst-android 1.0.2
01-08 07:37:52.376 2546-2546/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: uk.co.imagitech.citb.operatives.plus, PID: 2546
java.lang.RuntimeException: Exception thrown in onCreate() of
ComponentInfo{uk.co.imagitech.citb.operatives.plus.test/uk.co.imagitech.citb.operatives.plus.test.BurstTestRunner}:
java.lang.RuntimeException: java.lang.IllegalStateException:
junit.framework.TestSuite$1 requires at least 1 public constructor
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4338)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException:
junit.framework.TestSuite$1 requires at least 1 public constructor
at com.squareup.burst.BurstAndroid.setTest(BurstAndroid.java:38)
at
android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:379)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4335)
at
android.app.ActivityThread.access$1500(ActivityThread.java:135)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: junit.framework.TestSuite$1
requires at least 1 public constructor
at
com.squareup.burst.BurstableConstructor.findSingle(BurstableConstructor.java:24)
at com.squareup.burst.BurstAndroid.explodeSuite(BurstAndroid.java:97)
at com.squareup.burst.BurstAndroid.explodeSuite(BurstAndroid.java:121)
at com.squareup.burst.BurstAndroid.setTest(BurstAndroid.java:36)
at
android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:379)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4335)
at
android.app.ActivityThread.access$1500(ActivityThread.java:135)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)—
Reply to this email directly or view it on GitHub
#47.
from burst.
I saw this a couple times... junit.framework.TestSuite$1
is a dummy TestCase representing a warning. Can you put a breakpoint in that warning
method to see what the message was?
from burst.
@JakeWharton A public constructor where? In my custom AndroidTestCase, yes. Am using in a gradle build and using AndroidStudio to run the test as a Class. Could be a problem with the TestSuite which is generated? I could try with a custom TestSuite instead.
@dlubarov TestCase doesn't have any sources, will try and find them.
from burst.
We've dropped JUnit 3 support making this obsolete
from burst.
Related Issues (15)
- Android: TestSuite per constructor variation HOT 1
- Expose Filtering for JUnit 3
- Can't run individual test methods from IntelliJ HOT 3
- Broken links in README HOT 2
- Support for field injection
- Kill JUnit 3 support. HOT 1
- Burst not working with Espresso HOT 14
- BeforeClass being called for each Parameter HOT 3
- JUnit 5 support HOT 1
- API to limit set of values HOT 3
- Burst with Robolectric? HOT 2
- Rerun specific test case HOT 2
- Include the test class in the Description HOT 3
- Burst annotation doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from burst.