landryshuai / robotium

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

Ordering of tests not in sequence as planned? #689

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
http://stackoverflow.com/questions/11765129/how-to-run-robotium-tests-in-a-speci
fic-order
public class AllTests extends ActivityInstrumentationTestCase2<Activity> {

    public AllTests(Class<Activity> activityClass) throws ClassNotFoundException {
        super(activityClass);
    }

    public static TestSuite suite() {
        TestSuite t = new TestSuite();

        t.addTestSuite(TwitterAuthActivityTest.class);
        t.addTestSuite(HomeActivityTest.class);

        return t;
    }

    @Before
    public void setUp()  throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }
}

1. But upon trying my test cases it is still done in alphabetically order
2.
3.

What is the expected output? 
HomeActivityTest.class to be executed first

What do you see instead?
TwitterAuthActivityTest.class is actually executed first instead 

What version of the product are you using? On what operating system?
robotium-solo-5.4.1 Mac OSX Yosemite

Please provide any additional information below.

Original issue reported on code.google.com by minsche...@googlemail.com on 29 Jun 2015 at 7:31

GoogleCodeExporter commented 9 years ago
Typo: 
What is the expected output? 
TwitterAuthActivityTest.class to be executed first

What do you see instead?
HomeActivityTest.class is actually executed first instead 

Original comment by minsche...@googlemail.com on 29 Jun 2015 at 7:37

GoogleCodeExporter commented 9 years ago
This is a Junit question/issue that should be directed to another forum. This 
tracker is only for Robotium issues. 

Original comment by renasr...@gmail.com on 29 Jun 2015 at 9:32