-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flaky UI tests: ConcurrentModificationException #302
Comments
|
|
|
|
Happened locally with this classpackage com.example;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import net.twisterrob.inventory.android.activity.MainActivity;
import net.twisterrob.inventory.android.test.InventoryActivityRule;
import net.twisterrob.inventory.android.test.actors.MainActivityActor;
import net.twisterrob.inventory.android.test.categories.On;
@RunWith(AndroidJUnit4.class)
@Category({On.Main.class})
public class TestClass {
@SuppressWarnings("deprecation")
@Rule public final androidx.test.rule.ActivityTestRule<MainActivity> activity =
new InventoryActivityRule<>(MainActivity.class);
private final MainActivityActor main = new MainActivityActor();
@Ignore("Not implemented yet")
@Test public void testIgnored() {
main.openItems();
}
@Test public void testSuccess() {
main.openSunburst();
}
@Test public void testFailure() {
fail("fail");
main.openBackup();
}
@Test public void testSuccess2() {
main.openSettings();
}
@Test public void testAssume() {
//noinspection DataFlowIssue
assumeTrue("assume", false);
main.openAbout();
}
}
|
|
https://issuetracker.google.com/issues/293190504
Causes process crashed, rerun is mandatory because not all tests have been completed.
Few examples:
testMove (net.twisterrob.inventory.android.activity.RoomViewActivityTest_Move) failed
Move files from master branch to their place android\backup\src\main\… #243
https://github.com/TWiStErRob/net.twisterrob.inventory/actions/runs/5656869563/job/15330638805
Instrumentation Test Results 21.zip
testMoveAlreadyExists (net.twisterrob.inventory.android.activity.RoomViewActivityTest_Move) failed
https://github.com/TWiStErRob/net.twisterrob.inventory/actions/runs/5656869563/job/15326709383
Attempt 1, second attempt cleared artifacts.
testMove (net.twisterrob.inventory.android.activity.RoomViewActivityTest_Move) failed
Move to proper Dependency Injection where possible (#279) #177
https://github.com/TWiStErRob/net.twisterrob.inventory/actions/runs/5338323603/job/14464784986
Potentially after
com.android.documentsui was still open at the end of the test, pressing Back 1 times and Home 0 times helped kill it.
Instrumentation Test Results 21.zip
`
testAddPropertyCancel (net.twisterrob.inventory.android.activity.MainActivityTest_Properties) failed
Improve names #221
https://github.com/TWiStErRob/net.twisterrob.inventory/actions/runs/5510973972/job/14920787170
Potentially after
com.android.documentsui was still open at the end of the test, pressing Back 1 times and Home 0 times helped kill it.
Instrumentation Test Results 21.zip
testTypeClearClose (net.twisterrob.inventory.android.activity.MainActivityTest_Search) failed
Reset trigger #237
https://github.com/TWiStErRob/net.twisterrob.inventory/actions/runs/5578805112/job/15108021643
Instrumentation Test Results 21.zip
testTypeClearClose (net.twisterrob.inventory.android.activity.MainActivityTest_Search) failed
Merge branch 'main' into fix235 #252
https://github.com/TWiStErRob/net.twisterrob.inventory/actions/runs/5667930378/job/15358516305
Standalone failure,
testPrepareVersion1
failed on previous commit too, and it didn't open any UI.Instrumentation Test Results 21.zip
The text was updated successfully, but these errors were encountered: