Skip to content

More detailed feedback in test failures? #84

Description

@louis-antonopoulos

We just changed some of our tests to use the latest features as of 0.11.0.

In playing with one such test, I changed the text value to fail.

assert_selector :img, "New alt text" -> assert_selector :img, "New alt texts"

The test failure message included the following:

expected to find img "New alt texts" but there were no matches. 
Also found "", "", which matched the selector but not all filters.

Would it be possible for failures like this and others to include more detailed information on what was found? For example, this test failure could include something like

Also found "img", "New alt text", which matched the selector but not all filters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions