GithubHelp home page GithubHelp logo

Testing about asap HOT 6 CLOSED

kriskowal avatar kriskowal commented on July 22, 2024
Testing

from asap.

Comments (6)

domenic avatar domenic commented on July 22, 2024

For something this simple, a test framework as simple as tape might be the way to go. Not sure though. It's very easy to integrate with testling ci which would be a plus.

You can check out the tests for setImmediate if you want; they use Mocha and integrate with Testling CI.

from asap.

kriskowal avatar kriskowal commented on July 22, 2024

The breadth of browsers covered by Testling would be a big win for this particular project. We could use Mocha or Tapeโ€”it is no difference to me.

from asap.

domenic avatar domenic commented on July 22, 2024

Tests I can think of so far:

  • Does execute
  • Does not execute in the same turn
  • Multiple non-throwing queued functions are all executed in order
  • Multiple queued functions, some of which throw, are all still executed in order.

from asap.

rkatic avatar rkatic commented on July 22, 2024

There are more variations on how tasks can behave. Beside throws, we also have to consider "recursive" assaps. Probably we also have to cover all such behaviors of tasks when on the top, in the middle, or at the end of the queue.

from asap.

rkatic avatar rkatic commented on July 22, 2024

Tape looks nice, but I think we should opt for Mocha as a more active project. Also, Mocha allows us to use expect() assertion style as it is used in Q and other projects (not sure about such possibility in Tape, doh.)

from asap.

rkatic avatar rkatic commented on July 22, 2024

@kriskowal could you add hooks for testling-ci and travis?

from asap.

Related Issues (20)

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.