@bitdiver/logadapter
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -91,2 +91,6 @@ "use strict"; | ||
_getRunTargetPath(meta) { | ||
if (meta.run.name !== undefined && meta.run.name !== '') { | ||
return [this.targetDir, `Run_${meta.run.name}_${meta.run.startString}`]; | ||
} | ||
return [this.targetDir, `Run_${meta.run.startString}`]; | ||
@@ -93,0 +97,0 @@ } |
{ | ||
"name": "@bitdiver/logadapter", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -27,3 +27,3 @@ import { LogAdapterFile } from '../lib/index' | ||
id: 'runId', // RunEnvironment ID | ||
name: 'suite name', | ||
name: 'suiteName', | ||
}, | ||
@@ -38,3 +38,6 @@ logTime: 1544432256132, | ||
const rootGlob = path.join(LOG_PATH, 'Run_2018-12-10_095736/**/*.json') | ||
const rootGlob = path.join( | ||
LOG_PATH, | ||
'Run_suiteName_2018-12-10_095736/**/*.json' | ||
) | ||
const files = await globby([rootGlob]) | ||
@@ -47,3 +50,5 @@ | ||
expect(files).toEqual(['Run_2018-12-10_095736/2018-12-10_095736_error.json']) | ||
expect(files).toEqual([ | ||
'Run_suiteName_2018-12-10_095736/2018-12-10_095736_error.json', | ||
]) | ||
done() | ||
@@ -67,3 +72,3 @@ }) | ||
id: 'runId', // RunEnvironment ID | ||
name: 'suite name', | ||
name: 'suiteName', | ||
}, | ||
@@ -85,3 +90,6 @@ tc: { | ||
const rootGlob = path.join(LOG_PATH, 'Run_2018-12-10_095806/**/*.json') | ||
const rootGlob = path.join( | ||
LOG_PATH, | ||
'Run_suiteName_2018-12-10_095806/**/*.json' | ||
) | ||
const files = await globby([rootGlob]) | ||
@@ -95,3 +103,3 @@ | ||
expect(files).toEqual([ | ||
'Run_2018-12-10_095806/TC_03_great tc name/2018-12-10_095806_error.json', | ||
'Run_suiteName_2018-12-10_095806/TC_03_great tc name/2018-12-10_095806_error.json', | ||
]) | ||
@@ -118,3 +126,3 @@ done() | ||
id: 'runId', // RunEnvironment ID | ||
name: 'suite name', | ||
name: 'suiteName', | ||
}, | ||
@@ -142,3 +150,6 @@ tc: { | ||
const rootGlob = path.join(LOG_PATH, 'Run_2018-12-10_095816/**/*.json') | ||
const rootGlob = path.join( | ||
LOG_PATH, | ||
'Run_suiteName_2018-12-10_095816/**/*.json' | ||
) | ||
const files = await globby([rootGlob]) | ||
@@ -152,5 +163,5 @@ | ||
expect(files).toEqual([ | ||
'Run_2018-12-10_095816/TC_03_great tc name/Step_087_great step name/2018-12-10_095816_error.json', | ||
'Run_suiteName_2018-12-10_095816/TC_03_great tc name/Step_087_great step name/2018-12-10_095816_error.json', | ||
]) | ||
done() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45979
1210