Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

gregwhitworth/wpt-test-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPT-Test-Coverage

Gives a rough test coverage based on <link rel="help" href="<speclink>". This will currently provide the unique spec links within the tests. It will recursively look through the folder and subfolders.

Note: This works best on spec generated by bikeshed

Output to file

It by default just prints into the console, so you can output it using the normal CLI commands such as:

wptcoverage -f .\ > D:\test-coverage.txt

Install

npm install -g wptcoverage

Usage

wptcoverage -f <file directory> -t <link to TR version of spec>

How does it determine possible anchors

Specs have numerous anchors & ids within the spec so this gathers ALL ids & name values from within the <main> element in the spec.

Contribution/Issues

Feel free to help out or file issues on Github

License

Copyright (c) 2017 Greg Whitworth Licensed under the MIT license.

About

A very basic node module to provide a rough idea of test coverage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published