File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ var myReporter = {
2929
3030 onSingleFileOutput : function ( suites ) {
3131 const xml = this . prepareXml ( suites )
32- let filename = `REPORT-browserstack.all.xml`
33- this . write ( filename , xml )
32+ var write = this . write ;
33+ browser . getProcessedConfig ( ) . then ( function ( config ) {
34+ var browserName = config . capabilities . browserName ;
35+ let filename = `REPORT-browserstack.${ browserName } .xml`
36+ write ( filename , xml )
37+ } ) ;
3438 } ,
3539
3640 prepareName : function ( name = 'Skipped test' ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " protractor-browserstack-reporter" ,
3- "version" : " 0.1.0 " ,
3+ "version" : " 0.1.1 " ,
44 "description" : " A Protractor plugin which enables BrowserStack reports on CI" ,
55 "main" : " index.js" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments