How to setup TestNG for Android Instrumented test
up vote
0
down vote
favorite
In my application's build.gradle file, I already added
testImplementation group: 'org.testng', name: 'testng', version: '6.14.3'
in my dependencies and run sync. and I already commented out junit dependency. But still my instrumentedTest class is still using Junit, and I cannot import testng
in the same file, I also tried adding
test{useTestNG()}
but that gave me an error: method test is not found in gradle
I tried adding in the same file
apply plugin: 'java'
but that gave me another error saying: android application is not compatible
can i use testng as my test framework in my intrumentedtest class? looks like i can, I just can't set it right I guess.
android testing testng
add a comment |
up vote
0
down vote
favorite
In my application's build.gradle file, I already added
testImplementation group: 'org.testng', name: 'testng', version: '6.14.3'
in my dependencies and run sync. and I already commented out junit dependency. But still my instrumentedTest class is still using Junit, and I cannot import testng
in the same file, I also tried adding
test{useTestNG()}
but that gave me an error: method test is not found in gradle
I tried adding in the same file
apply plugin: 'java'
but that gave me another error saying: android application is not compatible
can i use testng as my test framework in my intrumentedtest class? looks like i can, I just can't set it right I guess.
android testing testng
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my application's build.gradle file, I already added
testImplementation group: 'org.testng', name: 'testng', version: '6.14.3'
in my dependencies and run sync. and I already commented out junit dependency. But still my instrumentedTest class is still using Junit, and I cannot import testng
in the same file, I also tried adding
test{useTestNG()}
but that gave me an error: method test is not found in gradle
I tried adding in the same file
apply plugin: 'java'
but that gave me another error saying: android application is not compatible
can i use testng as my test framework in my intrumentedtest class? looks like i can, I just can't set it right I guess.
android testing testng
In my application's build.gradle file, I already added
testImplementation group: 'org.testng', name: 'testng', version: '6.14.3'
in my dependencies and run sync. and I already commented out junit dependency. But still my instrumentedTest class is still using Junit, and I cannot import testng
in the same file, I also tried adding
test{useTestNG()}
but that gave me an error: method test is not found in gradle
I tried adding in the same file
apply plugin: 'java'
but that gave me another error saying: android application is not compatible
can i use testng as my test framework in my intrumentedtest class? looks like i can, I just can't set it right I guess.
android testing testng
android testing testng
asked Nov 5 at 1:49
M.A
63
63
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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147318%2fhow-to-setup-testng-for-android-instrumented-test%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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