Skip to content

Playing with code coverage from Cypress E2E tests against small Svelte app

Notifications You must be signed in to change notification settings

bahmutov/coverage-example-svelte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coverage-example-svelte

WIP

Via sveltejs/template

Svelte 3 "User component" example from https://svelte.dev/examples#if-blocks

WIP: the code coverage seems to NOT map the source correctly for .svelte files. For example, the small file src/App.svelte shows so many statements ...

Too many statements

Even if the .svelte file generates lots of code, the back source transformation does not seem to map correctly at all.

Svelte coverage

Hmm, the numbers seem to be from the compiled JS code, not the original Svelte template code.

Use npm run e2e to run the test runner GUI

Also using fork bahmutov/rollup-plugin-istanbul because the original version was behind times and did not have dist published.

See rollup.config.js

Read Cypress code coverage guide

About

Playing with code coverage from Cypress E2E tests against small Svelte app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published