-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle coverage when report is empty (#128)
* Do not show coverage for empty report * Add more tests * Remove ts-ignore
- Loading branch information
1 parent
3e3230f
commit b5991a2
Showing
30 changed files
with
2,329 additions
and
471 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 |
---|---|---|
@@ -0,0 +1,171 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.0//EN" | ||
"report.dtd"> | ||
<report name="jacoco-aggregate-playground"> | ||
<sessioninfo dump="1630475840767" id="FWS-CHE-LT-2648-35e84bdf" start="1630475837836" /> | ||
<sessioninfo dump="1630475836741" id="FWS-CHE-LT-2648-dd5996a5" start="1630475831008" /> | ||
<sessioninfo dump="1630475844131" id="FWS-CHE-LT-2648-93125f81" start="1630475843423" /> | ||
<group name="module-1" /> | ||
<group name="module-2"> | ||
<package name="com/madrapps/math"> | ||
<class name="com/madrapps/math/MathOperation$MathOp" sourcefilename="MathOperation.kt" /> | ||
<class name="com/madrapps/math/MathOperation" sourcefilename="MathOperation.kt" /> | ||
<class name="com/madrapps/math/Arithmetic" sourcefilename="Math.kt" /> | ||
<sourcefile name="Math.kt" /> | ||
<sourcefile name="MathOperation.kt" /> | ||
<counter covered="19" missed="8" type="INSTRUCTION" /> | ||
<counter covered="5" missed="2" type="LINE" /> | ||
<counter covered="5" missed="2" type="COMPLEXITY" /> | ||
<counter covered="5" missed="2" type="METHOD" /> | ||
<counter covered="1" missed="0" type="CLASS" /> | ||
</package> | ||
<counter covered="19" missed="8" type="INSTRUCTION" /> | ||
<counter covered="5" missed="2" type="LINE" /> | ||
<counter covered="5" missed="2" type="COMPLEXITY" /> | ||
<counter covered="5" missed="2" type="METHOD" /> | ||
<counter covered="1" missed="0" type="CLASS" /> | ||
</group> | ||
<group name="module-3"> | ||
<package name="com/madrapps/playground"> | ||
<class name="com/madrapps/playground/MainViewModel" sourcefilename="MainViewModel.kt"> | ||
<method name="<init>" desc="()V" line="5"> | ||
<counter covered="3" missed="0" type="INSTRUCTION" /> | ||
<counter covered="1" missed="0" type="LINE" /> | ||
<counter covered="1" missed="0" type="COMPLEXITY" /> | ||
<counter covered="1" missed="0" type="METHOD" /> | ||
</method> | ||
<method name="validate" desc="(Ljava/lang/String;)Z" line="8"> | ||
<counter covered="7" missed="0" type="INSTRUCTION" /> | ||
<counter covered="1" missed="0" type="LINE" /> | ||
<counter covered="1" missed="0" type="COMPLEXITY" /> | ||
<counter covered="1" missed="0" type="METHOD" /> | ||
</method> | ||
<method name="verifyAccess" desc="(Ljava/lang/String;)Z" line="12"> | ||
<counter covered="0" missed="7" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="10" missed="7" type="INSTRUCTION" /> | ||
<counter covered="2" missed="1" type="LINE" /> | ||
<counter covered="2" missed="1" type="COMPLEXITY" /> | ||
<counter covered="2" missed="1" type="METHOD" /> | ||
<counter covered="1" missed="0" type="CLASS" /> | ||
</class> | ||
<class name="com/madrapps/playground/MainActivity$onCreate$$inlined$viewModels$default$2" | ||
sourcefilename="ActivityViewModelLazy.kt"> | ||
<method name="invoke" desc="()Landroidx/lifecycle/ViewModelStore;" line="47"> | ||
<counter covered="0" missed="9" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="0" missed="9" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</class> | ||
<class name="com/madrapps/playground/MainActivity$onCreate$$inlined$viewModels$default$1" | ||
sourcefilename="ActivityViewModelLazy.kt"> | ||
<method name="invoke" desc="()Landroidx/lifecycle/ViewModelProvider$Factory;" line="44"> | ||
<counter covered="0" missed="9" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="0" missed="9" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</class> | ||
<class name="com/madrapps/playground/MainActivity" sourcefilename="MainActivity.kt"> | ||
<method name="<init>" desc="()V" line="10"> | ||
<counter covered="0" missed="3" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<method name="onCreate" desc="(Landroid/os/Bundle;)V" line="13"> | ||
<counter covered="0" missed="71" type="INSTRUCTION" /> | ||
<counter covered="0" missed="12" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<method name="onCreate$lambda-0" | ||
desc="(Lkotlin/Lazy;)Lcom/madrapps/playground/MainViewModel;" line="18"> | ||
<counter covered="0" missed="10" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<method name="<clinit>" desc="()V" line="18"> | ||
<counter covered="0" missed="1" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="0" missed="85" type="INSTRUCTION" /> | ||
<counter covered="0" missed="13" type="LINE" /> | ||
<counter covered="0" missed="4" type="COMPLEXITY" /> | ||
<counter covered="0" missed="4" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</class> | ||
<sourcefile name="ActivityViewModelLazy.kt"> | ||
<line cb="0" ci="0" mb="0" mi="9" nr="44" /> | ||
<line cb="0" ci="0" mb="0" mi="9" nr="47" /> | ||
<counter covered="0" missed="18" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="LINE" /> | ||
<counter covered="0" missed="2" type="COMPLEXITY" /> | ||
<counter covered="0" missed="2" type="METHOD" /> | ||
<counter covered="0" missed="2" type="CLASS" /> | ||
</sourcefile> | ||
<sourcefile name="MainActivity.kt"> | ||
<line cb="0" ci="0" mb="0" mi="3" nr="10" /> | ||
<line cb="0" ci="0" mb="0" mi="3" nr="13" /> | ||
<line cb="0" ci="0" mb="0" mi="3" nr="14" /> | ||
<line cb="0" ci="0" mb="0" mi="2" nr="17" /> | ||
<line cb="0" ci="0" mb="0" mi="15" nr="18" /> | ||
<line cb="0" ci="0" mb="0" mi="10" nr="19" /> | ||
<line cb="0" ci="0" mb="0" mi="10" nr="20" /> | ||
<line cb="0" ci="0" mb="0" mi="4" nr="23" /> | ||
<line cb="0" ci="0" mb="0" mi="10" nr="24" /> | ||
<line cb="0" ci="0" mb="0" mi="10" nr="25" /> | ||
<line cb="0" ci="0" mb="0" mi="4" nr="28" /> | ||
<line cb="0" ci="0" mb="0" mi="10" nr="29" /> | ||
<line cb="0" ci="0" mb="0" mi="1" nr="30" /> | ||
<counter covered="0" missed="85" type="INSTRUCTION" /> | ||
<counter covered="0" missed="13" type="LINE" /> | ||
<counter covered="0" missed="4" type="COMPLEXITY" /> | ||
<counter covered="0" missed="4" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</sourcefile> | ||
<sourcefile name="MainViewModel.kt"> | ||
<line cb="0" ci="3" mb="0" mi="0" nr="5" /> | ||
<line cb="0" ci="4" mb="0" mi="0" nr="8" /> | ||
<line cb="0" ci="0" mb="0" mi="4" nr="12" /> | ||
<counter covered="10" missed="7" type="INSTRUCTION" /> | ||
<counter covered="2" missed="1" type="LINE" /> | ||
<counter covered="2" missed="1" type="COMPLEXITY" /> | ||
<counter covered="2" missed="1" type="METHOD" /> | ||
<counter covered="1" missed="0" type="CLASS" /> | ||
</sourcefile> | ||
<counter covered="10" missed="110" type="INSTRUCTION" /> | ||
<counter covered="2" missed="16" type="LINE" /> | ||
<counter covered="2" missed="7" type="COMPLEXITY" /> | ||
<counter covered="2" missed="7" type="METHOD" /> | ||
<counter covered="1" missed="3" type="CLASS" /> | ||
</package> | ||
<counter covered="10" missed="110" type="INSTRUCTION" /> | ||
<counter covered="2" missed="16" type="LINE" /> | ||
<counter covered="2" missed="7" type="COMPLEXITY" /> | ||
<counter covered="2" missed="7" type="METHOD" /> | ||
<counter covered="1" missed="3" type="CLASS" /> | ||
</group> | ||
<counter type="INSTRUCTION" missed="8754" covered="28212"/> | ||
<counter type="BRANCH" missed="798" covered="1268"/> | ||
<counter type="LINE" missed="2230" covered="7593"/> | ||
<counter type="COMPLEXITY" missed="1271" covered="2645"/> | ||
<counter type="METHOD" missed="683" covered="2194"/> | ||
<counter type="CLASS" missed="40" covered="353"/> | ||
</report> |
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,3 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.1//EN" | ||
"report.dtd"> | ||
<report name="jacoco-playground" /> |
148 changes: 148 additions & 0 deletions
148
__tests__/__fixtures__/empty_multi_module/empty-appCoverage.xml
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,148 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE report PUBLIC | ||
"-//JACOCO//DTD Report 1.1//EN" "report.dtd"> | ||
<report name="app"> | ||
<sessioninfo dump="1690537657266" id="Admins-MBP-102-fd20ba3e" start="1690537656947" /> | ||
<package name="com/madrapps/playground"> | ||
<class name="com/madrapps/playground/MainViewModel" sourcefilename="MainViewModel.kt"> | ||
<method name="<init>" desc="()V" line="5"> | ||
<counter covered="3" missed="0" type="INSTRUCTION" /> | ||
<counter covered="1" missed="0" type="LINE" /> | ||
<counter covered="1" missed="0" type="COMPLEXITY" /> | ||
<counter covered="1" missed="0" type="METHOD" /> | ||
</method> | ||
<method name="validate" desc="(Ljava/lang/String;)Z" line="8"> | ||
<counter covered="7" missed="0" type="INSTRUCTION" /> | ||
<counter covered="1" missed="0" type="LINE" /> | ||
<counter covered="1" missed="0" type="COMPLEXITY" /> | ||
<counter covered="1" missed="0" type="METHOD" /> | ||
</method> | ||
<method name="verifyAccess1" desc="(Ljava/lang/String;)Z" line="12"> | ||
<counter covered="0" missed="7" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<method name="verifyPassword" desc="(Ljava/lang/String;)Z" line="16"> | ||
<counter covered="0" missed="11" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="BRANCH" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="2" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="10" missed="18" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="BRANCH" /> | ||
<counter covered="2" missed="2" type="LINE" /> | ||
<counter covered="2" missed="3" type="COMPLEXITY" /> | ||
<counter covered="2" missed="2" type="METHOD" /> | ||
<counter covered="1" missed="0" type="CLASS" /> | ||
</class> | ||
<class name="com/madrapps/playground/MainActivity$onCreate$$inlined$viewModels$default$2" | ||
sourcefilename="ActivityViewModelLazy.kt"> | ||
<method name="invoke" desc="()Landroidx/lifecycle/ViewModelStore;" line="47"> | ||
<counter covered="0" missed="7" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="0" missed="7" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</class> | ||
<class name="com/madrapps/playground/MainActivity$onCreate$$inlined$viewModels$default$1" | ||
sourcefilename="ActivityViewModelLazy.kt"> | ||
<method name="invoke" desc="()Landroidx/lifecycle/ViewModelProvider$Factory;" line="44"> | ||
<counter covered="0" missed="7" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="0" missed="7" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</class> | ||
<class name="com/madrapps/playground/MainActivity" sourcefilename="MainActivity.kt"> | ||
<method name="<init>" desc="()V" line="10"> | ||
<counter covered="0" missed="3" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<method name="onCreate" desc="(Landroid/os/Bundle;)V" line="13"> | ||
<counter covered="0" missed="91" type="INSTRUCTION" /> | ||
<counter covered="0" missed="12" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<method name="onCreate$lambda$0" | ||
desc="(Lkotlin/Lazy;)Lcom/madrapps/playground/MainViewModel;" line="18"> | ||
<counter covered="0" missed="6" type="INSTRUCTION" /> | ||
<counter covered="0" missed="1" type="LINE" /> | ||
<counter covered="0" missed="1" type="COMPLEXITY" /> | ||
<counter covered="0" missed="1" type="METHOD" /> | ||
</method> | ||
<counter covered="0" missed="100" type="INSTRUCTION" /> | ||
<counter covered="0" missed="13" type="LINE" /> | ||
<counter covered="0" missed="3" type="COMPLEXITY" /> | ||
<counter covered="0" missed="3" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</class> | ||
<sourcefile name="ActivityViewModelLazy.kt"> | ||
<line cb="0" ci="0" mb="0" mi="7" nr="44" /> | ||
<line cb="0" ci="0" mb="0" mi="7" nr="47" /> | ||
<counter covered="0" missed="14" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="LINE" /> | ||
<counter covered="0" missed="2" type="COMPLEXITY" /> | ||
<counter covered="0" missed="2" type="METHOD" /> | ||
<counter covered="0" missed="2" type="CLASS" /> | ||
</sourcefile> | ||
<sourcefile name="MainActivity.kt"> | ||
<line cb="0" ci="0" mb="0" mi="3" nr="10" /> | ||
<line cb="0" ci="0" mb="0" mi="3" nr="13" /> | ||
<line cb="0" ci="0" mb="0" mi="3" nr="14" /> | ||
<line cb="0" ci="0" mb="0" mi="2" nr="17" /> | ||
<line cb="0" ci="0" mb="0" mi="10" nr="18" /> | ||
<line cb="0" ci="0" mb="0" mi="14" nr="19" /> | ||
<line cb="0" ci="0" mb="0" mi="14" nr="20" /> | ||
<line cb="0" ci="0" mb="0" mi="4" nr="23" /> | ||
<line cb="0" ci="0" mb="0" mi="14" nr="24" /> | ||
<line cb="0" ci="0" mb="0" mi="14" nr="25" /> | ||
<line cb="0" ci="0" mb="0" mi="4" nr="28" /> | ||
<line cb="0" ci="0" mb="0" mi="14" nr="29" /> | ||
<line cb="0" ci="0" mb="0" mi="1" nr="30" /> | ||
<counter covered="0" missed="100" type="INSTRUCTION" /> | ||
<counter covered="0" missed="13" type="LINE" /> | ||
<counter covered="0" missed="3" type="COMPLEXITY" /> | ||
<counter covered="0" missed="3" type="METHOD" /> | ||
<counter covered="0" missed="1" type="CLASS" /> | ||
</sourcefile> | ||
<sourcefile name="MainViewModel.kt"> | ||
<line cb="0" ci="3" mb="0" mi="0" nr="5" /> | ||
<line cb="0" ci="4" mb="0" mi="0" nr="8" /> | ||
<line cb="0" ci="0" mb="0" mi="4" nr="12" /> | ||
<line cb="0" ci="0" mb="2" mi="8" nr="16" /> | ||
<counter covered="10" missed="18" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="BRANCH" /> | ||
<counter covered="2" missed="2" type="LINE" /> | ||
<counter covered="2" missed="3" type="COMPLEXITY" /> | ||
<counter covered="2" missed="2" type="METHOD" /> | ||
<counter covered="1" missed="0" type="CLASS" /> | ||
</sourcefile> | ||
<counter covered="10" missed="132" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="BRANCH" /> | ||
<counter covered="2" missed="17" type="LINE" /> | ||
<counter covered="2" missed="8" type="COMPLEXITY" /> | ||
<counter covered="2" missed="7" type="METHOD" /> | ||
<counter covered="1" missed="3" type="CLASS" /> | ||
</package> | ||
<package name="com/madrapps/playground/events" /> | ||
<counter covered="10" missed="136" type="INSTRUCTION" /> | ||
<counter covered="0" missed="2" type="BRANCH" /> | ||
<counter covered="2" missed="19" type="LINE" /> | ||
<counter covered="2" missed="10" type="COMPLEXITY" /> | ||
<counter covered="2" missed="9" type="METHOD" /> | ||
<counter covered="1" missed="4" type="CLASS" /> | ||
</report> |
3 changes: 3 additions & 0 deletions
3
__tests__/__fixtures__/empty_multi_module/empty-textCoverage.xml
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,3 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE report PUBLIC | ||
"-//JACOCO//DTD Report 1.1//EN" "report.dtd"> | ||
<report name="text" /> |
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
Oops, something went wrong.