-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly check for created coverage files (#838)
- Loading branch information
Showing
8 changed files
with
81 additions
and
11 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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import xml.etree.cElementTree as etree | ||
|
||
from services.report.languages import jetbrainsxml | ||
|
||
from . import create_report_builder_session | ||
|
||
|
||
def test_simple_jetbrainsxml(): | ||
xml = """ | ||
<Root ReportType="DetailedXml"> | ||
<File Index="1" Name="/_/src/testhost.x86/UnitTestClient.cs"/> | ||
<Statement FileIndex="1" Line="1" Column="1" EndLine="1" EndColumn="10" Covered="True" /> | ||
</Root> | ||
""" | ||
report_builder_session = create_report_builder_session() | ||
jetbrainsxml.from_xml( | ||
etree.fromstring(xml), | ||
report_builder_session, | ||
) | ||
report = report_builder_session.output_report() | ||
|
||
assert not report.is_empty() |
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