Coder Social home page Coder Social logo

concise-test's People

Contributors

dirv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

concise-test's Issues

Think about 'not' matchers

It'd be nice to just have a single not matcher that runs the chained matcher and fails if that matcher does not throw an error.

For example:

expect(actual).not.toEqual("foo");

Should run toEqual(actual, "foo") and catch any ExpectationError. If one isn't thrown then it should also throw.

The challenge will be what's the right message to display here. If it could just say something like "Expected not to equal ".

However, getting a 100% correct exception message is less important than having a concise not implementation.

Add minimal test reporter

This should use a single console line to report test being run together with number of tests in each summary group. Then once the test is over, report each failure as the default reporter does.

This would also include the ability to use a command line option --reporter to specify which reporter to use.

Add watch mode

This can't be done until Node supports unloading ES6 modules.

Allow tests in subdirectories

Right now concise-test just picks up files that match tests/*.tests.js, but this should be tests/**/*.tests.js.

It'd also be nice to support a configurable glob of how to find test files.

Add beforeEach parameter for shared examples

Currently each test within a shared example gets passed the result of calling the parametersFn of it.behavesLike. It may be better to do that as a beforeEach rather than on each test.

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.