Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
414f83d2
...
414f83d2508a39b962a78b23d98e94d973db7cb6
authored
2013-10-23 07:38:48 -0700
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #681 from fwebdev/patch-1
Update xunit.js
2 parents
9e5a43ce
80bf93cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
modules/xunit.js
tests/suites/xunit.js
modules/xunit.js
View file @
414f83d
...
...
@@ -153,7 +153,7 @@ XUnitExporter.prototype.getXML = function getXML() {
suiteNode
.
appendChild
(
warningNode
);
this
.
_xml
.
appendChild
(
suiteNode
);
}.
bind
(
this
));
this
.
_xml
.
setAttribute
(
'
duration
'
,
utils
.
ms2seconds
(
this
.
results
.
calculateDuration
()));
this
.
_xml
.
setAttribute
(
'
time
'
,
utils
.
ms2seconds
(
this
.
results
.
calculateDuration
()));
return
this
.
_xml
;
};
...
...
tests/suites/xunit.js
View file @
414f83d
...
...
@@ -29,7 +29,7 @@ casper.test.begin('XUnitReporter() can hold test suites', 4, function suite(test
test
.
assertEvalEquals
(
function
()
{
return
__utils__
.
findAll
(
'testsuite'
).
length
;
},
2
);
test
.
assertExists
(
'testsuites[
duration
]'
);
test
.
assertExists
(
'testsuites[
time
]'
);
test
.
assertExists
(
'testsuite[name="foo"][package="foo"]'
);
test
.
assertExists
(
'testsuite[name="bar"][package="bar"]'
);
test
.
done
();
...
...
Please
register
or
sign in
to post a comment