GithubHelp home page GithubHelp logo

Comments (7)

doryphores avatar doryphores commented on June 12, 2024 1

Wouldn't this prevent failing tests to break a build in a CI environment? I investigated preventing this error output before but seem to remember that the exit status code is required for CI.

from jasmine-rails.

jondkinney avatar jondkinney commented on June 12, 2024

Here's a screenshot of the tmp/runner.html file

screen shot 2013-08-30 at 2 33 15 pm

from jasmine-rails.

RyanV avatar RyanV commented on June 12, 2024

@jondkinney , the error isn't an issue with your setup. The exception is raised when the Kernel#system call returns false on receipt of a non-zero exit status code. The PhantomJS runner returns a exit status code 1 if any specs fail (https://github.com/searls/jasmine-rails/blob/master/lib/assets/javascripts/jasmine-runner.js#L52). Here is a quick patch you can use if it bothers you enough. I also chose to comment out the line that logs the PhantomJS command string before running the specs. Uncomment the line if you want to use the default logging.

# config/initializers/jasmine_rails.rb
if Rails.env.in? %w(test development)
  require 'jasmine_rails/runner'

  module JasmineRails
    module Runner
      class << self
        private
        def run_cmd(cmd)
          # puts "Running `#{cmd}`"
          system(cmd)
        end
      end
    end
  end
end

from jasmine-rails.

RyanV avatar RyanV commented on June 12, 2024

I think your right there @doryphores. I overlooked it because the current project i'm testing it on isn't running CI.

from jasmine-rails.

searls avatar searls commented on June 12, 2024

Closing unless someone's still bugged by this

from jasmine-rails.

juandazapata avatar juandazapata commented on June 12, 2024

I've hit this very same problem with a small difference. My tests in the browser are green, in the console are green as well, but the command fails with an error soon after the tests are green.

ruby 2.2.2
jasmine 0.12.4
rails 4

jasmine_specs

terminal

from jasmine-rails.

juandazapata avatar juandazapata commented on June 12, 2024

Ended up by removing jasmine-rails and going with vanilla jasmine gem.

from jasmine-rails.

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.