stephenwang1011 / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Robotium does not run Junit 4 tests #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Eclipse Indigo and ADT plugin.
2. Create a new Android test project for existing Android project and configure 
it.
3. Create a new Junit4 test case. Write some code to test the application and 
run it as Android Junit Test.

What is the expected output? What do you see instead?
Expected: Junit4 test should run in the same way as Junit3 test runs.
Actual: Junit4 test doesn't run at all. Junit console doesn't display any 
output or test information. However, the Android console shows the message as 
Test run finished.

What version of the product are you using? On what operating system?
Robotium 3.2.1,
Eclipse Indigo,
Android SDK r18
ADT plugin v18
Junit 4.10

Please provide any additional information below.
The issue has been observed on Eclipse Galilio and Robotium 3.0.
When we keep same configuration, delete Junit 4 test class, create new Junit3 
test class and run it as Android Junit test, it runs as expected.

I tried to set breakpoints at various methods and attempted to run the test 
case in debug mode. However, the testrunner bypasses all debug points and gives 
output as test run finished. The Junit console doesn't show any output for the 
test run.

Original issue reported on code.google.com by sbaduk...@gmail.com on 29 May 2012 at 6:48

GoogleCodeExporter commented 9 years ago
The tests were being executed on Android elumator 4.0.3

Original comment by sbaduk...@gmail.com on 29 May 2012 at 7:12

GoogleCodeExporter commented 9 years ago
The issue is that Android does not support JUnit 4. That is why it is failing 
for you. Remote control is being worked on and it will make it possible for 
users to use Robotium with JUnit4, testNG etc.

Original comment by renasr...@gmail.com on 29 May 2012 at 8:04

GoogleCodeExporter commented 9 years ago
Thanks for the update, Renas.
However, it is not mentioned in Robotium FAQs.

Original comment by sbaduk...@gmail.com on 30 May 2012 at 8:56