Skip to content

Commit

Permalink
chore: Enabled clean=true on the cobertura test to avoid issues when
Browse files Browse the repository at this point in the history
running tests more than once now.
  • Loading branch information
bizob2828 committed May 25, 2023
1 parent 5b65511 commit 18e037a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1,183 deletions.
2 changes: 1 addition & 1 deletion test/integration.js
Expand Up @@ -608,7 +608,7 @@ beforeEach(function () {
c8Path,
'--exclude="test/*.js"',
'--temp-directory=tmp/cobertura',
'--clean=false',
'--clean=true',
'--reporter=cobertura',
`--merge-async=${mergeAsync}`,
nodePath,
Expand Down
42 changes: 21 additions & 21 deletions test/integration.js.snap
Expand Up @@ -680,38 +680,38 @@ exports[`c8 mergeAsync cobertura report escapes special characters 1`] = `
<classes>
<class name=\\"computed-method.js\\" filename=\\"test/fixtures/computed-method.js\\" line-rate=\\"1\\" branch-rate=\\"1\\">
<methods>
<method name=\\"Test\\" hits=\\"2\\" signature=\\"()V\\">
<method name=\\"Test\\" hits=\\"1\\" signature=\\"()V\\">
<lines>
<line number=\\"2\\" hits=\\"2\\"/>
<line number=\\"2\\" hits=\\"1\\"/>
</lines>
</method>
<method name=\\"run\\" hits=\\"2\\" signature=\\"()V\\">
<method name=\\"run\\" hits=\\"1\\" signature=\\"()V\\">
<lines>
<line number=\\"6\\" hits=\\"2\\"/>
<line number=\\"6\\" hits=\\"1\\"/>
</lines>
</method>
<method name=\\"map.&lt;computed&gt;.f\\" hits=\\"2\\" signature=\\"()V\\">
<method name=\\"map.&lt;computed&gt;.f\\" hits=\\"1\\" signature=\\"()V\\">
<lines>
<line number=\\"8\\" hits=\\"2\\"/>
<line number=\\"8\\" hits=\\"1\\"/>
</lines>
</method>
</methods>
<lines>
<line number=\\"1\\" hits=\\"2\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"2\\" hits=\\"2\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"3\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"4\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"5\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"6\\" hits=\\"2\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"7\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"8\\" hits=\\"2\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"9\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"10\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"11\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"12\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"13\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"14\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"15\\" hits=\\"2\\" branch=\\"false\\"/>
<line number=\\"1\\" hits=\\"1\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"2\\" hits=\\"1\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"3\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"4\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"5\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"6\\" hits=\\"1\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"7\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"8\\" hits=\\"1\\" branch=\\"true\\" condition-coverage=\\"100% (1/1)\\"/>
<line number=\\"9\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"10\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"11\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"12\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"13\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"14\\" hits=\\"1\\" branch=\\"false\\"/>
<line number=\\"15\\" hits=\\"1\\" branch=\\"false\\"/>
</lines>
</class>
</classes>
Expand Down

0 comments on commit 18e037a

Please sign in to comment.