Skip to content

When the --focus flag argument contains metacharacters the test skips. #786

@joselitofilho

Description

@joselitofilho

Running this focused test with --focus="should MyMethod() $called":

It("should MyMethod() $called", func() {
    println("MyMethod")
})

Output:

ginkgo -focus "Testing various flags the focused set --focus flag argument contains metacharacters should MyMethod() $called"

Running Suite: Flags Suite
==========================
Random Seed: 1616239881
Will run 0 of 16 specs

SSSSSSSSSSSSSSSS
Ran 0 of 16 Specs in 0.016 seconds
SUCCESS! -- 0 Passed | 0 Failed | 0 Pending | 16 Skipped
PASS

Ginkgo ran 1 suite in 2.8910226s
Test Suite Passed

However, if I running without the --focus flag was set it runs.

I've been working on it. Can I open a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixIssues that won't be fixed and can be removed soon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions