Skip to content

"Only" option #10

@philcockfield

Description

@philcockfield

I don't think there is a concept of only on an munit suite, is there? Eg:

mySuite =
    name: "My Suite"
    only: true # Of all suites registered, only this one will run

or

mySuite =
    name: "My Suite"
    tests:
        'my test':
             func: (test): ->
             only: true # Only this test will run

This is a concept from Mocha, that if we had it on the raw Munit suites/tests we could put it on the BDD describe / it semantics.

Want me to take a look at this? Or would that be easy for you to bang out seeing you've got you're heads around the MUnit class.

To do one better than Mocha, it's would be really important to be cumulative around only filters. This allows you to narrow in on say 2 relevant tests that you're working on. Mocha just finds the first match of .only and runs that, which is super annoying.

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