Skip to content

Is there a way to remove the stack trace and improve the actual/expected messages? #65

Open

Description

@alvarocastro

Today errors look like this:

Integration | Component | x-form/x-radio-set: it should render a label if provided
    ✘ assert.equal(this.$('[for$="-input"]').text().trim(), 'Subject') at dummy/tests/integration/components/x-form/x-radio-set-test.js:60:4
            at Object.<anonymous> (http://localhost:7357/assets/tests.js:802:10)
            at runTest (http://localhost:7357/assets/test-support.js:4108:30)
            at Test.run (http://localhost:7357/assets/test-support.js:4094:6)
            at http://localhost:7357/assets/test-support.js:4300:12
            at Object.advance (http://localhost:7357/assets/test-support.js:3746:26)
            at begin (http://localhost:7357/assets/test-support.js:5567:20)
         expected Subject

Would be nicer and cleaner to show something like this:

Integration | Component | x-form/x-radio-set: it should render a label if provided
    ✘ assert.equal(this.$('[for$="-input"]').text().trim(), 'Subject') at dummy/tests/integration/components/x-form/x-radio-set-test.js:60:4
         expected Subject

Also would be even nicer to force it to always show the "Actual" value, even if it's null, undefined or '', wrapping it in " so we can tell there is actually a string, or even to tell the difference between 123 and "123".

Integration | Component | x-form/x-radio-set: it should render a label if provided
    ✘ assert.equal(this.$('[for$="-input"]').text().trim(), 'Subject') at dummy/tests/integration/components/x-form/x-radio-set-test.js:60:4
         actual ""
         expected "Subject"

Activity

  1. changed the title [-]Is there a way to remove the stack trace?[/-] [+]Is there a way to remove the stack trace and improve the actual/expected messages?[/+] on Oct 28, 2018
  2. fedekau commented on Nov 12, 2018

    @fedekau
    Contributor

    Hi @alvarocastro!

    Those ideas sound very interesting! We have been very busy and the maintenance of this addon is not as good as we would like to, if you are up for the challenge, we will for sure accept contributions 😄

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions