-
Notifications
You must be signed in to change notification settings - Fork 22
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 #57 from Bizordec/main
Add flag for xml report
- Loading branch information
Showing
8 changed files
with
789 additions
and
15 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,4 @@ | ||
from .version import __version__ | ||
from .slipcover import Slipcover, merge_coverage, print_coverage | ||
from .slipcover import Slipcover, merge_coverage, print_coverage, print_xml | ||
from .importer import FileMatcher, ImportManager, wrap_pytest | ||
from .fuzz import wrap_function |
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,30 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from typing import Dict, List, NotRequired, Tuple, TypedDict | ||
|
||
class CoverageMeta(TypedDict): | ||
software: str | ||
version: str | ||
timestamp: str | ||
branch_coverage: bool | ||
show_contexts: bool | ||
|
||
class CoverageSummary(TypedDict): | ||
covered_lines: int | ||
missing_lines: int | ||
covered_branches: NotRequired[int] | ||
missing_branches: NotRequired[int] | ||
percent_covered: float | ||
|
||
class CoverageFile(TypedDict): | ||
executed_lines: List[int] | ||
missing_lines: List[int] | ||
executed_branches: NotRequired[List[Tuple[int, int]]] | ||
missing_branches: NotRequired[List[Tuple[int, int]]] | ||
summary: CoverageSummary | ||
|
||
class Coverage(TypedDict): | ||
meta: CoverageMeta | ||
files: Dict[str, CoverageFile] | ||
summary: CoverageSummary |
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 +1,2 @@ | ||
__version__ = "1.0.15" | ||
__url__ = f"https://github.com/plasma-umass/slipcover/tree/v{__version__}" |
Oops, something went wrong.