Giter Site home page Giter Site logo

Comments (6)

bodil avatar bodil commented on September 26, 2024

Oh, this is cool! Something I always meant to do with purescript-test-unit was to split the test runner itself off from the testing framework, so it could run any type of test without needing to know anything about the framework being used and still produce consistent and good looking output. As yours seems to produce better looking output than mine, have you considered doing something similar? That would be something I'd love to integrate into Pulp itself, but adding dependency options (and thus opinions) to pulp init isn't something I want to do.

from pulp.

owickstrom avatar owickstrom commented on September 26, 2024

That sounds interesting! I've only considered making the test runners separate (they are now, but I only have one :D), but not fully unaware of the test framework used. How do you think such an interface would look? I'm looking into adding support for running the same tests (purescript-spec) in a browser or phantomjs.

from pulp.

bodil avatar bodil commented on September 26, 2024

I don't know how it should look, but I guess it'll need an API for continuous reporting and be able to run both pure and async tests - and be so lightweight you hardly need any glue code. It's probably a bit of a hard problem, come to think of it. :)

from pulp.

owickstrom avatar owickstrom commented on September 26, 2024

Yeah, I think so as well. I'm trying to add support for async in purescript-spec now, that alone is hard! Maybe I'll cheat and look at your stuff. :)

Mvh
Oskar Wickström

22 apr 2015 kl. 00:01 skrev Bodil Stokke [email protected]:

I don't know how it should look, but I guess it'll need an API for continuous reporting and be able to run both pure and async tests - and be so lightweight you hardly need any glue code. It's probably a bit of a hard problem, come to think of it. :)


Reply to this email directly or view it on GitHub.

from pulp.

hdgarrood avatar hdgarrood commented on September 26, 2024

Sorry, I'm not very keen on this. Even if we had separate test runners and test frameworks, there are still quite a few core libraries (eg maybe, either, integers) which need tests but can't really depend on any fancy test stuff without lots of packaging gymnastics, so they use purescript-assert instead. And a test runner is still a dependency, even if it's lighter than a whole testing framework.

I think the current interface is perfect; super simple, and probably familiar to anyone who's written tests in almost any other language already.

Anyway I'm closing this just as housekeeping - please feel free to open new issues or add comments or whatever about this. :)

from pulp.

owickstrom avatar owickstrom commented on September 26, 2024

No problem, sounds reasonable to me.

from pulp.

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.