peeky icon indicating copy to clipboard operation
peeky copied to clipboard

Code Coverage

Open posva opened this issue 4 years ago • 6 comments

It would be great if there was a way to add code coverage, either out of the box, or with another package like @peeky/coverage and then being able to pass --coverage

  • [x] CLI output
  • [x] Report output (istanbul)
  • [ ] UI

posva avatar Aug 26 '21 15:08 posva

Implemented very fast coverage collection in https://github.com/Akryum/peeky/commit/ae91f10716ba936b3780229572b0a7d99f1ca443

It's using V8 native coverage system, so it's FAST (compared to instanbul which is slow because it uses babel and it's not native).

Akryum avatar Aug 30 '21 21:08 Akryum

@Akryum currently, there is no way to get the V8 results into a file to upload e.g. to codecov.com - or did I overlook something?

distantnative avatar Dec 12 '21 08:12 distantnative

You can see the current state in the original post ☝️

Akryum avatar Dec 12 '21 14:12 Akryum

@Akryum I see. Your comment sounded like Istanbul format file is off the table.

distantnative avatar Dec 12 '21 15:12 distantnative

I've completely refactored the coverage system, now using c8 to generate reports

https://github.com/Akryum/peeky/commit/a086c1560347a2b59ee26710687141a52cee628d

Akryum avatar Feb 18 '22 11:02 Akryum

Docs

Akryum avatar Feb 18 '22 12:02 Akryum