Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It blocks with .skip() or .only() are not parsed #24

Open
rob4629 opened this issue Aug 24, 2020 · 0 comments
Open

It blocks with .skip() or .only() are not parsed #24

rob4629 opened this issue Aug 24, 2020 · 0 comments

Comments

@rob4629
Copy link

rob4629 commented Aug 24, 2020

With Mocha, you can choose to skip tests, or only run particular tests using .skip() and .only(). I'm not sure how often the latter might occur in users tests... however the former (skip) is likely to be used for any number of reasons.

describe("Test Swagger examples for XYZ", () => {
  context("/uri", () => {
    it.only("Returns 200, when sending a valid request", async () => {
        // Test Code
    });

    // Skipping due to BUG-123
    it.skip("Returns 400, when sending invalid data", async () => {
        // Test Code
    });

    it("Returns 401, when missing required auth headers", async () => {
        // Test Code
    });

    it("Returns 403, when sending invalid auth headers", async () => {
        // Test Code
    });
  });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant