-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from kenichiice/xml-format
XMLのサイズを減らす
- Loading branch information
Showing
4 changed files
with
31 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/.bundle/ | ||
/.ruby-version | ||
/.yardoc | ||
/_yardoc/ | ||
/Gemfile.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<testsuites> | ||
% @junit_test_suites.each do |test_suite| | ||
<testsuite name="<%=h test_suite.name %>" | ||
tests="<%=h test_suite.test_cases.size %>" | ||
errors="<%=h test_suite.errors.size %>" | ||
failures="<%=h test_suite.failures.size %>" | ||
skipped="<%=h test_suite.test_cases.count(&:skipped?) %>" | ||
time="<%=h test_suite.time %>"> | ||
% test_suite.test_cases.each do |test_case| | ||
<testcase classname="<%=h test_case.class_name %>" | ||
name="<%=h test_case.name %>" | ||
time="<%=h test_case.time %>" | ||
assertions="<%=h test_case.assertion_count %>"> | ||
% if test_case.error | ||
<error message="<%=h test_case.error.message %>" | ||
type="<%=h test_case.error.exception.class.name %>"> | ||
<testsuite name="<%=h test_suite.name %>" tests="<%=h test_suite.test_cases.size %>" errors="<%=h test_suite.errors.size %>" failures="<%=h test_suite.failures.size %>" skipped="<%=h test_suite.test_cases.count(&:skipped?) %>" time="<%=h test_suite.time %>"> | ||
% test_suite.test_cases.each do |test_case| | ||
<testcase classname="<%=h test_case.class_name %>" name="<%=h test_case.name %>" time="<%=h test_case.time %>" assertions="<%=h test_case.assertion_count %>"> | ||
% if test_case.error | ||
<error message="<%=h test_case.error.message %>" type="<%=h test_case.error.exception.class.name %>"> | ||
<%=h test_case.error.long_display %> | ||
</error> | ||
% elsif test_case.failure | ||
<failure message="<%=h test_case.failure.message %>"> | ||
</error> | ||
% elsif test_case.failure | ||
<failure message="<%=h test_case.failure.message %>"> | ||
<%=h test_case.failure.long_display %> | ||
</failure> | ||
% elsif test_case.omission | ||
<skipped message="<%=h test_case.omission.message %>"/> | ||
% elsif test_case.pending | ||
<skipped message="<%=h test_case.pending.message %>"/> | ||
% end | ||
</testcase> | ||
% end | ||
</testsuite> | ||
</failure> | ||
% elsif test_case.omission | ||
<skipped message="<%=h test_case.omission.message %>"/> | ||
% elsif test_case.pending | ||
<skipped message="<%=h test_case.pending.message %>"/> | ||
% end | ||
</testcase> | ||
% end | ||
</testsuite> | ||
% end | ||
</testsuites> |