Test Harness failure message for mismatched widget count not very helpful

Bug #1440815 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-shell (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

This is the current failure message when testing the Preview and the widget count does not match the expected set of widgets:

======================================================================
FAIL: tests.test_apps.AppsTest.test_removable_app_preview
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/buildd/unity-scope-click-0.1.1+15.04.20150326bzr329pkg0vivid34/tests/scope-harness/tests/test_apps.py", line 306, in test_removable_app_preview
    self.assertMatchResult(match)
  File "/usr/lib/python3/dist-packages/scope_harness/testing.py", line 34, in assertMatchResult
    self.assertTrue(match_result.success, msg=match_result.concat_failures)
  File "/usr/lib/python3.4/unittest/case.py", line 654, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true : Failed expectations:
Incorrect number of preview widgets 8, expected 9

This is not very helpful for determining what exactly failed in the test. It would be much more helpful if a list of the actual missing widgets was output, similar to what happens when those widgets have different types than are expected. Not knowing which widgets exactly were missing from the result set make it very difficult to debug such test failures.

Changed in unity-scopes-shell (Ubuntu):
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.