You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know the best place to add this, but since it's a touted feature in many frameworks, I feel like explicit guidance on parameterized/data-driven testing would be beneficial. Or if it exists, it's not discoverable.
However, by virtue of language capabilities and how jasmine works at runtime, this is actually 100% natively supported. Credit to jasmine/jasmine#900 (comment):
constcases=[{first: 3,second: 3,sum: 6},{first: 10,second: 4,sum: 14},{first: 7,second: 1,sum: 8}];for(const{first, second, sum}ofcases){it(`${first} plus ${second} is ${sum}`,function(){expect(first+second).toEqual(sum);});}
The appropriate area of the docs should be amended to include this technique, in whatever style/manner best aligns with the existing examples. That way people don't think this common best practice is prohibitively difficult or unsupported, and look to a different framework instead.
The text was updated successfully, but these errors were encountered:
I don't know the best place to add this, but since it's a touted feature in many frameworks, I feel like explicit guidance on parameterized/data-driven testing would be beneficial. Or if it exists, it's not discoverable.
There are several closed issues indicating it's available in (or one would need to create a) plugin, but this is misleading and gives the impression that it's not natively supported. (See jasmine/jasmine#900, jasmine/jasmine#741 (and PR jasmine/jasmine#527), and jasmine/jasmine#480.
However, by virtue of language capabilities and how jasmine works at runtime, this is actually 100% natively supported. Credit to jasmine/jasmine#900 (comment):
Or even:
The appropriate area of the docs should be amended to include this technique, in whatever style/manner best aligns with the existing examples. That way people don't think this common best practice is prohibitively difficult or unsupported, and look to a different framework instead.
The text was updated successfully, but these errors were encountered: