MatthijsKok / TI2806-Contextproject

GNU Lesser General Public License v3.0
0 stars 0 forks source link

Fix GUI tests for Travis #133

Closed joskuijpers closed 7 years ago

joskuijpers commented 7 years ago

Currently, when the GUI tests are not ignored, the Travis Build fails.

nl.tudelft.ewi.ds.bankchain.activities.MainActivityTest > verifyOpenRecentTransactionsActivity[acib(AVD)] FAILED 
    java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not be requesting layout for over 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Otherwise, something is seriously wrong. Selected Root:
    Root{application-window-token=android.view.ViewRootImpl$W@c6750c1, window-token=android.view.ViewRootImpl$W@c6750c1, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) sim=#100 ty=1 fl=#81a90180 pfl=0x20000 wanim=0x1030468 needsMenuKey=2}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=320, height=480, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=2}}
:app:connectedDebugAndroidTest FAILED

This needs solving, of course.

joskuijpers commented 7 years ago

This could not be done. Tried so much and there was a sign of hope: but then everything collapsed again on a rebuild.

GUI tests are ignored on travis now.