Axxxon
Axxxon

Reputation: 733

Robotium test won't start after unit tests are run

I have a following problem with robotium. I have test package with few unittests for my app, this package also includes Robotium tests, the structure is simple as following:

\tests
    \data
        \datatests
    \robotium

When I start test for only robotium package everything works fine, but when I start All tests in my test app robotium tests are failing as the wont initialize activity at all (not sure but no view is layouted, and I'm sure screen is active all the time), and log I get is only that View robotium was searching is not found.

I have no clue what causes it, so I would appreciate any help.

Upvotes: 0

Views: 76

Answers (1)

Dave C
Dave C

Reputation: 928

This can happen if there are unfinished activities from your tests. In all robotium tests your tearDown() method should call solo.finishOpenedActivities().

Upvotes: 1

Related Questions