feat(#281): flexible roles helper#302
Conversation
|
|
||
| roles('#role6', '#role7', function() { | ||
| it('works', function() { | ||
| assert.ok(this.role.match(/role[6|7]/)); |
There was a problem hiding this comment.
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.
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]/)); |
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: