A grunt plugin to run performance test on Browserstack.
npm install grunt-browserstack-performance-test~0.4.5
shell
npm install grunt-browserstack-performance-test --save-dev
`
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js
grunt.loadNpmTasks('grunt-browserstack-performance-test');
`
The "browserstack-performance-test" task
$3
In your project's Gruntfile, add a section named gemini-runner to the data object passed into grunt.initConfig().
`js
grunt.initConfig({
browserstack-performance-test: {
your_target: {
options: {
// Task-specific options go here.
}
}
}
});
`
$3
#### options.filePath
Type: String
Default value: 'performance-test/result.xml'
A string value that is used to defined path to file with test results.
#### options.toConsole
Type: Boolean
Default value: false
A boolean value that is used to define show result in console or only write in file.
#### options.numberOfRuns
Type: Number
Default value: 1
A number value that is used to define number of runs.
$3
In this example, the updated reference screenshots for the local version.
`js
'browserstack-performance-test': {
'test': {
options: {
filePath: 'my/path/result.xml',
toConsole: true,
numberOfRuns: 3
}
}
}
``