Skip to content

Commit b988f78

Browse files
committed
Add more logs
I found while setting this up that more logs were helpful to know if I had something misconfigured
1 parent 11f6df3 commit b988f78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

support.js

+3
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ const registerHooks = () => {
171171
urls.push(url)
172172
}
173173
urls.map(url => {
174+
logMessage(`Requesting coverage for **${url}**`)
174175
cy.request({
175176
url,
176177
log: false,
@@ -183,11 +184,13 @@ const registerHooks = () => {
183184
if (!coverage) {
184185
// we did not get code coverage - this is the
185186
// original failed request
187+
logMessage(`No coverage for: **${url}**`)
186188
return
187189
}
188190
sendCoverage(coverage, `backend: ${url}`)
189191
})
190192
})
193+
logMessage('Finished collecting coverage')
191194
}
192195
})
193196

0 commit comments

Comments
 (0)