grunt-saucelabs
grunt-saucelabs copied to clipboard
Dynamic 'testname' option
I noticed that if you do not set the options.testname optional parameter, the output will include the proper operating system and browser (http://cl.ly/image/0e3I3D3Q3j19) while rendering the web-based output's 'session' column with "unnamed job" (http://cl.ly/image/1A2M1d0f3n3Q). Is there a way to add that as a variable to be interpolated by saucelabs (Example: "My Project: #{TEST_ENVIRONMENT}") while maintaining both the console output and web-based session column?
How about setting the 'testname' parameter to optionally accept a function. The test runner will pass in a configuration object, and whatever the function returns will be the name of the test. Like so:
testname: function(config){
return "My Project: " + config.platform + " : " + config.framework;
}
Work for you?
That would be perfect!