Giter Club home page Giter Club logo

Comments (7)

EndangeredMassa avatar EndangeredMassa commented on August 16, 2024

The methods require to work with additional windows don't currently exist, but I can certainly add them.

I don't use mocha.opts to run tests in CoffeeScript. Can you tell me more about what wasn't working and what you added to make it work?

from testium.

max-degterev avatar max-degterev commented on August 16, 2024
--compilers coffee:coffee-script/register
--colors
--ui bdd
--reporter nyan
--debug
--timeout 15000

I added that to the test folder, but I think only --compilers coffee:coffee-script/register is important. The problem was that mocha didn't see coffee files, and therefore running coffee index.coffee didn't invoke any of the tests. Am I doing something wrong?

from testium.

EndangeredMassa avatar EndangeredMassa commented on August 16, 2024

Oh! You are right: the readme doesn't say how to run the tests. I'll update that.

You can run them with: make test. Check out the Makefile for more commands.

Sorry for the trouble.

from testium.

max-degterev avatar max-degterev commented on August 16, 2024

Ok, so basically I was doing it right, you just had the register call in the command line. Gotcha.

BTW it seems that testium swallows up additional stuff like reporter configuration etc, cos I didnt see nyan cat flying as I usually do 😺

How do you set mocha configuration with testium?

screen shot 2014-07-25 at 5 42 03 pm

from testium.

EndangeredMassa avatar EndangeredMassa commented on August 16, 2024

You can use mochaOptions in the testium options to pass along whatever mocha accepts. For example:

testiumOptions =
  mochaOptions:
    reporter: 'spec' # the screenshot on failure future will stop working if you set this
    timeout: 20000
    slow: 4000

from testium.

max-degterev avatar max-degterev commented on August 16, 2024

Oh, I missed that, sorry. Thanks!

from testium.

EndangeredMassa avatar EndangeredMassa commented on August 16, 2024

Added methods for handling other windows. #96

from testium.

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.