Skip to content

Multiline test descriptions not shown completely in test tree #3119

Closed

Description

@HerrNiklasRaab

See the test: "has not been synchronized with a bike,
than it should return false when calling isSynchronizedWith"

image

Activity

  1. DanTup commented on Feb 4, 2021

    @DanTup
    Member

    I guess we could replace these with spaces when setting the node label, although you're going to end up with a lot of whitespace in the name here: "bike, than it should". It may be better to use adjacent string literals to split the text over two lines, so there's no actual newline and/or indenting in the actual test name?

    (btw, I think there are a few typos of "then" being "than" in there!)

  2. added this to the v3.20.0 milestone on Feb 4, 2021
  3. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Feb 4, 2021
  4. HerrNiklasRaab commented on Feb 4, 2021

    @HerrNiklasRaab
    Author

    It may be better to use adjacent string literals to split the text over two lines, so there's no actual newline and/or indenting in the actual test name?

    I agree, but I think it should still work. Either by making the entry in the test tree multiline, or replacing the line breaks with whitespaces.

  5. DanTup commented on Feb 4, 2021

    @DanTup
    Member

    Yep, agreed. I don't believe we can have multiline tree nodes (a VS Code limitation), but we can replace the newline. I'll fix that, but I mention it only because I think the spacing will still look weird for the example above, and I don't think it makes sense to try to massage the strings here (beyond the newline replacement).

  6. DanTup commented on Feb 16, 2021

    @DanTup
    Member

    I ended up tidying the indentation anyway, so they look a little neater.

    Screenshot 2021-02-16 at 18 54 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions