Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

JoeDoyle23/jstestcover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jstestcover

.NET JavaScript Code Coverage tool

This is a .NET 4 port of the yuitest-coverage and yuitest-coverage-reporter Java apps.

It includes a pre-compiled ANTLR 3.5 Lexer and Parser for the ES3 version of JavaScript.

My goal it to be compatible with the original yuitest coverage tool, but with minor improvements and additional features.

Building

You can build the apps by running build.cmd from the command prompt. The output will be in the build folder.

	build

To build the debug version:

	build debug

To build the debug version and run the tests:

	build tests

If you just want to get going, use the binary in the build folder.

Usage

Instrumenting a single file, instrumented in place.

	jstestcover file.js

Instrumenting a single file, with the output to a different file.

	jstestcover -o file.covered.js file.js

Instrumenting a directory of files, with each file instrumented in place. The directory is processed recursively to instrument all .js files.

	jstestcover -d C:\app\scripts

Instrumenting a directory of files, outputting the instrumented files to a different directory. Again, the directory is processed recursively. The directory structure is preserved in the output directory.

	jstestcover -o C:\covered -d C:\app\scripts

Current Version

The coverage tool (jstestcover.exe) supports single file and directory processing. An exclusion list will be handle via the configuration file, which is still in development.

The report generator is in development, but the instrumented files are compatible with the YUITest Coverage Reporter, so it can be used instead.

Included libraries

Antlr 3.5 for .NET
Command Line Parser Library

License

jstestcover is licensed under the New BSD License.

About

.NET JavaScript Code Coverage tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages