Skip to content

feat: add flagged describe#433

Open
victormejia wants to merge 3 commits into
CrowdStrike:mainfrom
victormejia:flagged-describe
Open

feat: add flagged describe#433
victormejia wants to merge 3 commits into
CrowdStrike:mainfrom
victormejia:flagged-describe

Conversation

@victormejia

Copy link
Copy Markdown

No description provided.

@victormejia

Copy link
Copy Markdown
Author

@kellyselden re-did the PR to cherry-pick Preston's changes, and added tests. Thanks!

let stats = await this.runTests();

expect(stats.passes).to.equal(1);
expect(stats.passes).to.equal(4);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it was working, I would expect this to be 2, not 4?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So before the tests I added, there was one describe with three specs in there, I suspected it was counting the successful describe group of specs.

describe('flag - it', function() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be counting passed tests. Before your change, it was counting the test with '!flag1' because no flags were supplied in the test.

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

Successfully merging this pull request may close these issues.

4 participants