I'm trying to get starting with unit testing my android application and I'm having trouble figuring out how to do data driven testing.
For my particular case, I have a file that I'm storing as an asset and this file has input and expected output for a particular API under test. I can read the file and make the calls just fine. I would like to create a test case for each item (line) in the file - this is where I'm stuck. I have no idea how to accomplish with the classes I have in the android framework. I'm using the InstrumentationTestCase class and the InstrumentationTestRunner (the default) to run my tests. I've seen some reference to a JUnit-3 pattern for doing this that involves creating a static suite() method in your test class. The suite() method then creates a suite and adds test cases to it at runtime. I tried adding such a method to my test class, but it never seems to get called. Has anyone out there successfully implemented data driven tests in android? Any advice appreciated. -Mike Ellery -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

