Giter Site home page Giter Site logo

covermonkey's People

Contributors

neonux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

covermonkey's Issues

Line erroniously reported as partially covered while running dom.js tests

In the dom.js wrappers, the CustomEvent constructor has a conditional which CoverMonkey reports as partially covered, even though the offending bytecode "stop" is immediately after an unconditional "return" bytecode and should be regarded as unimportant.

domcore.js:

return (o === undefined) ? undefined : EventInit(o);
Function @  PC  #   Instruction
src/domcore.js:110  0   2   getarg 0
src/domcore.js:110  3   2   name "undefined"
src/domcore.js:110  6   2   stricteq
src/domcore.js:110  7   2   ifeq 16 (+9)
src/domcore.js:110  10  1   name "undefined"
src/domcore.js:110  13  1   goto 25 (+12)
src/domcore.js:110  16  1   callname "EventInit"
src/domcore.js:110  19  1   getarg 0
src/domcore.js:110  22  1   call 1
src/domcore.js:110  25  2   return
src/domcore.js:110  26  0   stop

Sort -c output by percentage covered

It would be nice to see the files sorted by amount of coverage. It might also be nice to leave off any files with 100% coverage (perhaps mentioning that the files were covered outside the table but not giving details)

sanitize <,>, and & in HTML output

HTML chars in the JS source code can mess up the browser output. I had "" in my code and CoverMonkey couldn't display anything past that point.

-q for quiet should be quiet

Small patch which does not pass through output from parsed scripts if the -q quiet option is on.


diff --git a/CoverMonkey b/CoverMonkey
index 998735c..3ddaf16 100755
--- a/CoverMonkey
+++ b/CoverMonkey
@@ -704,7 +704,7 @@ function parseScripts(stream, callback) {
                 inscript = true;
                 scriptlines = [ dataline ];
             }
-            else if (stream === process.stdin) {
+            else if (stream === process.stdin && !options.quiet) {
                 console.log(dataline);
             }
         }

Implement overall coverage percentage

The individual file coverage percentages are great, but it would be extremely useful to know the overall percentage of lines that are covered so there is one number that can easily be observed to be going up and down.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.