Is there a corresponding setting for NUnit TestCaseSource in Jasmine?

When writing unit tests with NUnit, you can provide multiple input combinations using TestCaseSourceAttribute

. Example from NUnit Documentation :

private static object[] DivideCases = {
    new object[] {12, 3, 4},
    new object[] {12, 2, 6},
    new object[] {12, 4, 3}
};

[Test, TestCaseSource("DivideCases")]
public void DivideTest(int n, int d, int q) {
    Assert.AreEqual(q, n/d);
}

      

This will run DivideTest

three times with the arguments supplied by the field DivideCases

.

Is there a way to achieve a similar setup with Jasmine?

+3
javascript unit-testing nunit jasmine


source to share


No one has answered this question yet

Check out similar questions:

339
How do I write a test expecting an error in Jasmine?
15
Update html field input from Angular 2 test
five
Nunit runs TestCase with TestCaseSource with first iteration without parameters? What for?
five
Delay loading TestCaseSource in NUnit
4
ReSharper 2018.1.2 NUnit TestCaseSource (.NET Core / VS2017)
2
NUnit 3.x - TestCaseSource for descendant test classes
2
Why is empty collection statement not working in MSTest?
2
Jasmine Checking Multiple Spies
1
NUnit test under mono
0
C # nunit assertion error: expect and were the same



All Articles
Loading...
X
Show
Funny
Dev
Pics