Coder Social home page Coder Social logo

twerp's People

Contributors

flatheadmill avatar philjackson avatar stuartquin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

stuartquin

twerp's Issues

Line-at-a-time Error Output

I'm writing a timezone, date format, date parse library in CoffeeScript. I'm using Twerp for testing. There are tests were I run through every day of the year for 70 years and check that the output of a library function matches cached output from GNU date. This makes for a lot of dots on the command line, and it makes me have to scroll back to see if tests passed.

I'd like to see output that is line at a time. A progress indicator that updates itself on one line for a test and then moves onto the next test when it is complete.

"Styled" runner

Would be nice, if you could add a "styled" runner with more spaces and a bit more color.
For example, just change the following functions in progress.js:

Progress.prototype.onStartClass = function(suite) {
this.suite = suite;
return process.stderr.write("\033[33m\n " + suite + "\n");
};

Progress.prototype.onRunEnd = function(summary) {
process.stderr.write("\n\n");
process.stderr.write(" Time taken: " + summary.time + "\n");
process.stderr.write(" Passed: " + summary.passed + "\n");
return process.stderr.write(" Failed: " + summary.failed + "\n");
};

Thanks,
Joachim

Twerp Should Catch Uncaught Exceptions

When my twerp tests fail due to an exception, I'm expecting to see a stack trace. Instead, the twerp runner stops. With the tiny runner, using the following example, there is no output.

{TwerpTest} = require "twerp"

class exports.ATest extends TwerpTest
  testSomething: (done) ->
    a.b.c
    done 0

It would be nice to get a stack trace and go on with the tests.

Twerp Should Allow External Runners

Currently, the twerp program has a --runner parameter that is defined using OptionParser as an enum. The enum is populated by a directory listing of lib/runner. This assertion means that, in order to provide a customized test runner, an end user must place the customized runner in the Twerp library.

It would probably be better to allow the user to specify a runner external to Twerp.

Perhaps the --runner parameter can accept a library path. The module would return a CustomRunner class or a createRunner method.

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.