Skip to content

Provide an option to use dasherized test names #14915

@GabrielCW

Description

@GabrielCW

When tests are generated, there name is humanized to make it more readable by humans. This process removes the dashes from the base strings, meaning some-component's test name will be some component.

I recently had a problem where I couldn't run test for one of my components with ember test --filter="some-component". To make it more confusing, jshint tests ran well for the expected files, but the test itself didn't run. @Turbo87 helped me figure out it was because the test name was some component, therefore not matching some-component.

Considering the test's name is humanized, it was counter intuitive to think that it may be used in resolution.

Could an option be added to the generator, in order to allow for the string to stay dasherized? With that option, a test generated for some-name/space/some-component would actually contain some-name/space/some-component.

Or could it even be used as default? Is the current humanized form relied upon?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions