dimanche 4 novembre 2018

How to setup TestNG for Android Instrumented test

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.

Aucun commentaire:

Enregistrer un commentaire