Adding custom test class in androidTest source tree results in AssertionFailedError
up vote
0
down vote
favorite
So Ive written class that extends ProviderTestCase2 that I use with some of my tests. All my actual test work just fine, but if I try to run all tests with gradlew connectedAndroidTest I get a AssertionFailedError.
junit.framework.AssertionFailedError: Class com.test.sample.utils.MyProviderTestCase has no public constructor TestCase(String name) or TestCase()
My class contains no actual tests obviously so I'm not entirely sure why this error is thrown.
add a comment |
up vote
0
down vote
favorite
So Ive written class that extends ProviderTestCase2 that I use with some of my tests. All my actual test work just fine, but if I try to run all tests with gradlew connectedAndroidTest I get a AssertionFailedError.
junit.framework.AssertionFailedError: Class com.test.sample.utils.MyProviderTestCase has no public constructor TestCase(String name) or TestCase()
My class contains no actual tests obviously so I'm not entirely sure why this error is thrown.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So Ive written class that extends ProviderTestCase2 that I use with some of my tests. All my actual test work just fine, but if I try to run all tests with gradlew connectedAndroidTest I get a AssertionFailedError.
junit.framework.AssertionFailedError: Class com.test.sample.utils.MyProviderTestCase has no public constructor TestCase(String name) or TestCase()
My class contains no actual tests obviously so I'm not entirely sure why this error is thrown.
So Ive written class that extends ProviderTestCase2 that I use with some of my tests. All my actual test work just fine, but if I try to run all tests with gradlew connectedAndroidTest I get a AssertionFailedError.
junit.framework.AssertionFailedError: Class com.test.sample.utils.MyProviderTestCase has no public constructor TestCase(String name) or TestCase()
My class contains no actual tests obviously so I'm not entirely sure why this error is thrown.
asked Nov 19 at 13:56
ardevd
1,33511835
1,33511835
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53376199%2fadding-custom-test-class-in-androidtest-source-tree-results-in-assertionfaileder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown