Git Product home page Git Product logo

Comments (7)

floehopper avatar floehopper commented on May 27, 2024

I hope you don't mind but I tidied up the formatting in the issue description.

Upgraded from 1.0 to 2.0

Can you confirm this means you've upgraded mocha from v1.0 to v2.0?

Mocha v1.0 was released in 2014, i.e. 9 years ago! Do you really mean you have upgraded from v1.0 -> v2.0? If so, can you try upgrading to the latest v1.x release first, i.e. v1.16.1. Also I'd recommend upgrading to the latest v2.x release, i.e. v2.0.2, not v2.0.0.

NoMethodError: undefined method `pop' for nil:NilClass

What command generated this ☝️ stack trace?

The stack trace suggests mocha's setup is not getting called correctly. Do you have any other test-related gems installed? Can you post your Gemfile?

What version of Ruby are you using?

from mocha.

floehopper avatar floehopper commented on May 27, 2024

Also can you try running the tests with the MOCHA_OPTIONS env var set to "debug" and post the output?

from mocha.

riniculous avatar riniculous commented on May 27, 2024

from mocha.

floehopper avatar floehopper commented on May 27, 2024

Are there any test setup methods or blocks in test_helper.rb or its associated files?

from mocha.

riniculous avatar riniculous commented on May 27, 2024

i saw a post talking about
require 'mocha/setup'
but dont see that in this code... Is that needed?

from mocha.

riniculous avatar riniculous commented on May 27, 2024

OK.. got it working... So basically fixtures being loaded beforehand had some bad data.
Caused the error test_helper to error out. Which caused the mocha/minitest to not load.. which caused the stack trace error above.
There was so much output i never saw the very first error of the fixture data.

from mocha.

floehopper avatar floehopper commented on May 27, 2024

I'm glad you got to the bottom of it! And thanks for letting me know and closing the issue. 😄

from mocha.

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.