Skip to content

passing options to iterate command #84

Open

Description

@christiancueto

Just a quick question, I used to be able to run the following:

ember exam:iterate 3 --options '---split 24 --parallel --random' but since upgrading to v0.6.2 I get the following error:

The option '--split 24 --parallel --random' is not registered with the exam:iterate command. Run `ember exam:iterate --help` for a list of supported options.

I just wanted to know if this was updated & what would be the correct way to pass these options to the iterate command.

Any help would be greatly appreciated.

Activity

  1. trentmwillis commented on Apr 14, 2017

    @trentmwillis
    Member

    Nothing changed within ember-exam itself that would cause that to happen. Is it an actual error or just a warning? Meaning, does the command still run correctly even after the message?

    I suspect this is due to a change in the however Ember-CLI parses arguments.

  2. christiancueto commented on Apr 14, 2017

    @christiancueto
    Author

    @trentmwillis The command does not run correctly from what I am seeing. When I try and run the command provided in the description, it does not partition the tests on each iteration.

  3. trentmwillis commented on Apr 14, 2017

    @trentmwillis
    Member

    Okay, I'll try to take a look at it this weekend and see if I can figure out what happened.

  4. rwjblue commented on Apr 27, 2017

    @rwjblue
    Member

    We determined that a bump of nopt caused the change, and are reverting to the older version.

    I do want to suggest changing the way this works though 😛 . Instead of --options as a string that contains options I'd suggest something similar to what ember-try does to allow the exact command to be specified (but obviously choose a sensible default):

    ember exam:iterate 3 -- ember exam --split 24 --parallel --random
    
  5. trentmwillis commented on May 1, 2017

    @trentmwillis
    Member

    Okay, so this was a bug upstream. That said, I agree with the change @rwjblue has suggested here.

  6. rwjblue commented on May 1, 2017

    @rwjblue
    Member

    FYI - The upstream bug should have been fixed with ember-cli > 2.12.3.

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

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