KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The problem is not that the tests are failing, but that they simply do not run at all. That is to say, the console tells me they run, but I see absolutely no results from them at all. Note that I 'have' remembered to annotate methods with @Test Here's the code for the test class: package module.jakway.JournalEntry.test; import module.jakway.JournalEntry.Module_JournalEntry; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; public class MainTest extends android.test.ActivityInstrumentationTestCase2<Module_JournalEntry> { public MainTest(Class activityClass) { super("module.jakway.JournalEntry", Module_JournalEntry.class); // TODO Auto-generated constructor stub } @BeforeClass public static void setUpBeforeClass() throws Exception { } @AfterClass public static void tearDownAfterClass() throws Exception { } @Before public void setUp() throws Exception { super.setUp(); Module_JournalEntry journalentry = getActivity(); assertTrue(true); } @After public void tearDown() throws Exception { } @Test public void myTestCase() { assertTrue(false); } } The project I'm testing is named Module_JournalEntry with package module.jakway.JournalEntry and Activity Module_JournalEntry.java Here's the console output: [2011-02-04 20:37:10 - Module_JournalEntryTest] Performing android.test.InstrumentationTestRunner JUnit launch [2011-02-04 20:37:10 - Module_JournalEntryTest] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'my2.3Emulator' [2011-02-04 20:37:12 - Module_JournalEntryTest] Application already deployed. No need to reinstall. [2011-02-04 20:37:12 - Module_JournalEntryTest] Project dependency found, installing: Module_JournalEntry [2011-02-04 20:37:14 -
Tags (comma-separated)
Save Edits
Cancel