-
When you creates a new capacitor plugin it comes with a couple of I am interested on write and run the unit tests on the There is even an unanswered Stackoverflow question from Dec 2019. How does one run an android unit test on an capacitor plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Try running |
Beta Was this translation helpful? Give feedback.
-
I am still looking for an answer to this. Maybe somebody with better understanding of the Android configs can help me. |
Beta Was this translation helpful? Give feedback.
-
So!!! I finally understood why this was failing. The problem was that my unit tests were using I had to add this at the top level of my
|
Beta Was this translation helpful? Give feedback.
So!!! I finally understood why this was failing.
The problem was that my unit tests were using
JUnit 5
and gradle did not understood how to read them (weirdly enough Android Studio does that just fine)I had to add this at the top level of my
build.gradle
file: