-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(#281): flexible roles helper #302
base: main
Are you sure you want to change the base?
Conversation
|
||
roles('#role6', '#role7', function() { | ||
it('works', function() { | ||
assert.ok(this.role.match(/role[6|7]/)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really not sure whether there might be a better way to do this? For mocha there might be a solution in manually tracking number of assertions like here: https://github.com/mochajs/mocha/wiki/HOW-TO:-Count-assertions Does that make sense? Do we want it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming back to this the overall number of assertions expected is covered in the calling test: https://github.com/MichalBryxi/faltest/blob/6c3d9c9358a56c33cb5027e4bfe00aabbd47ca8b/packages/mocha/test/acceptance/index-test.js#L113
And here we match against the role names.
So we verify that correct number of cases that we expect to be executed are executed. And we verify that the correct ones are being executed. So I believe that this should be ok.
|
||
roles('#role6', '#role7', function() { | ||
it('works', function() { | ||
assert.ok(this.role.match(/role[6|7]/)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea.
bb5d19b
to
8104c36
Compare
I have problem figuring out what is the problem on Travis: https://travis-ci.org/github/CrowdStrike/faltest/jobs/702527287 For me the result is ok:
|
Running the whole Any help @kellyselden ? |
68eacd2
to
abe8ba8
Compare
Supported format: - Concatenated string - Multiple arguments
abe8ba8
to
10462dc
Compare
Figured out that it was just about the version of |
Supported format: