Closed Bug 1644829 Opened 5 years ago Closed 5 years ago

Make all APZ subtests use the is/ok/etc functions that emit the subtest name

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(3 files)

If there's a subtest running via runSubtestsSeriallyInFreshWindows, it can use the is, ok, etc. functions installed by runSubtestsSeriallyInFreshWindows which emit the subtest filename as well. Some subtests don't do this and so looking at the output from the full test run it's less obvious which subtest is running.

Using SimpleTest.is directly instead of the "global" is installed by
runSubtestsSeriallyInFreshWindows means that the helper test filename doesn't
get emitted in the assertions, which is a nice thing to have. (Ditto for ok
and friends).

Problematic tests identified using:

for helper in helper_*.html; do
    if [[ $(grep "$helper" test_group*) ]]; then
        echo $helper;
        grep -e 'SimpleTest.\(is\|ok\)' "$helper";
    fi;
done

While it would be nice to catch this sort of thing directly in the code, it's
a bit tricky to do because SimpleTest.(ok|is) do get used legitimately by helper
methods that are used by group subtests and top-level tests.

Depends on D79171

Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7adac05ff314 For consistency ensure all tests that use runSubtestsSeriallyInFreshWindows have a _group in the name. r=botond https://hg.mozilla.org/integration/autoland/rev/affabc9da77a Add an `isnot` reflection to the subtest window as well. r=botond https://hg.mozilla.org/integration/autoland/rev/5fc6a75cec34 Avoid using SimpleTest.is etc. in helper subtests run by runSubtestsSeriallyInFreshWindows. r=botond
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: