Giter Club home page Giter Club logo

Comments (10)

JGulbronson avatar JGulbronson commented on September 9, 2024

I can look in to this Jamie, I've already been checking out Karma anyway. I'll give Testem a look as well.

from rmc.

JGulbronson avatar JGulbronson commented on September 9, 2024

@phleet How do you feel about phantomjs?

from rmc.

jlfwong avatar jlfwong commented on September 9, 2024

PhantomJS is really useful, and we already have it as a dependency, but it doesn't solve the whole problem. You would still need to a build a system for reporting the tests back to the console.

It's also unfortunate that it uses JavaScriptCore (Safari's JS engine), and not V8 (Chrome's JS engine).

It's actually what I ended up using at Khan Academy for rolling my own system to solve this problem, but it can be pretty involved.

I remember that this exists though if you do want to go down that alley: http://metaskills.net/mocha-phantomjs/

from rmc.

JGulbronson avatar JGulbronson commented on September 9, 2024

So just to be clear, we need something that can report back to the terminal with either a 0 or 1 depending on if all the tests passed, and make deployment conditional on passing the js-tests, correct?

from rmc.

jlfwong avatar jlfwong commented on September 9, 2024

Yep. The second step is really simple given the first.

Ideally it would actually print the test results to the console as well, which should be easy if you use one of the 3 prebuilt systems described (testem, karma, and mocha-phantomjs).

from rmc.

JGulbronson avatar JGulbronson commented on September 9, 2024

Alright, I have something that seems to work with mocha-phantomjs, assuming I understand you correctly. Since it's already a dependency I shouldn't have to include the source for it, just for mocha-phantomjs right?

from rmc.

jlfwong avatar jlfwong commented on September 9, 2024

Hmm... we currently have no package.json for listing dependencies in npm.

Judgement call @divad12, @mduan or @jswu? Should we add a package.json then add npm install to the setup scripts, or should we check in the source for mocha-phantomjs?

from rmc.

divad12 avatar divad12 commented on September 9, 2024

Anything wrong with the former (package.json + npm install)?

from rmc.

jlfwong avatar jlfwong commented on September 9, 2024

it's just another thing that can get out of sync, but it shouldn't be a problem.

package.json + npm install it is.

from rmc.

JGulbronson avatar JGulbronson commented on September 9, 2024

I think this can be closed now, I'll reopen it if anything was missed.

from rmc.

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.