android - On second test getActivity() never returns -



android - On second test getActivity() never returns -

i have couple of simple tests, assertnotnull(mactivity); (i'm reading m.d.torres "android application testing guide"). activity under test runs okay. every single test runs okay well. if run several tests @ 1 time on sec test getactivity() never returns. no errors in logcat (last line "starting intent ..."), no nothing. debugging doesn't help much either, if step getactivity() complains there no source code available. test project - activitytesting google runs okay several tests, eclipse configured right. did ever encounter that?

i recreated test project 1 time more (like "clean room") , worked. compared 2 projects , found culprit. empty teardown:

protected void teardown() throws exception { }

if remove it, tests run green. if paste back, sec test hangs. read explanation , ready mark answer.

edit: should calling super.teardown() @ end of teardown method. sorry bothering everybody.

android testing

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -