I would like to know how I could provide an array of variables and let Jasmine run all the tests using each time one of those values.
For the story :
- I am using jasmine and webdriver to test our website. Webdriver is an automation tool to open a chosen browser and drive it to make tests.
- I do have a bank of tests which for now a hardcoded browser goes along
- I would like to have a list of supported browsers ["safari", "chrome",…] and run the same test for all of those browsers without changing anything to the code.
An option could be to run jasmine through a shell script and pass the browser global variable before every invocation but I do not like much this idea.
PS: This questions could be related to this one