Skip to content

Commit

Permalink
Merge pull request #205 from shaunahao/QE-4957
Browse files Browse the repository at this point in the history
QE-4957 Get test-file name into action report
  • Loading branch information
scottgunther authored Oct 23, 2019
2 parents 54c44fe + 4596255 commit b60c0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/runner/writers/j-unit-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = jUnitWriter = {
let testcase = testsuiteTag.ele('testcase');
testCount++;

testcase.att('name', `${action.component}.${action.action}`);
testcase.att('name', `${testRun.report.testName}:${action.component}.${action.action}`);
jUnitWriter._setStatus(action, testcase);
jUnitWriter._setTime(action, testcase);

Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/runner/writers/j-unit-writer-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ describe('lib/runner/writers/j-unit-writer.js', function() {
it(`should call testcase.att once with the string 'name' and the action's component and action name`, function() {
jUnitWriter._createReportWithActions(report);

expect(testcase.att.args).to.deep.equal([['name', 'myComponent.MY_ACTION']]);
expect(testcase.att.args).to.deep.equal([['name', '1234_test.json:myComponent.MY_ACTION']]);
});

it(`should call jUnitWrtier._setStatus once with the action and the testcase`, function() {
Expand Down

0 comments on commit b60c0b3

Please sign in to comment.