Questions tagged [jasmine-headless-webkit]

13 questions
9
votes
1 answer

Jasmine CI and Capturing Test Result Output on Jenkins Server

Background: Have inherited a Ruby on Rails 3.1.x project which is in need of some BDD and testing for Javascript code. So following the Instructions I have added the jasmine gem for JS testing. This works ok via rake jasmine and gives me the local…
6
votes
1 answer

tutorial and resources for AngularJS Karma

I am going to implementing unit testing in my application and for that I have chosen Karma. But I am struggling regarding how to write the test cases using Karma syntax. Please give me some starting resources and tutorial links regarding Karma…
Utpal
  • 805
  • 4
  • 15
  • 44
3
votes
1 answer

Trouble running Jasmine specs headless

I'm trying to get Jasmine to run in the command line (headless), but have had no success. With our current configuration: Gemfile: gem 'jasmine', :git => "git://github.com/pivotal/jasmine-gem.git" gem 'jasmine-headless-webkit', :git =>…
annasazi
  • 168
  • 8
3
votes
2 answers

NoMethodError from jasmine-headless-webkit

I am suddenly seeing this while running jasmine-headless-webkit in my rails app: dhcp-10-154-148-96:lic_engine_app smadhan$ jasmine-headless-webkit NoMethodError: undefined method `color' for "jasmine-headless-webkit":String run! at…
ssm730
  • 43
  • 5
3
votes
1 answer

Rails, Jasmine-headless: Specs only run inside guard

I'm trying to set up a rails/backbone/jasmine suite, and I'm having a problem getting jasmine-headless-webkit to run. If I run the jasmine suite via guard, it passes, but if I run jasmine-headless-webkit from console, I get: 2013-01-01 10:06:22.855…
PlankTon
  • 12,443
  • 16
  • 84
  • 153
2
votes
1 answer

Backbone, Jasmine - How to run tests in isolation, with no side effects?

I'm starting to use Jasmine(with PhantomJS) to test a Backbone app. The first problem I encountered is that state is persisted across tests. Hence tests see the DOM & data manipulations of each other, making them fragile. Ideally, one would want…
Akshay Rawat
  • 4,714
  • 5
  • 40
  • 65
2
votes
1 answer

How can I use jasmine-headless-webkit with Django?

I've checked out django-jasmine, and although it does most of what I need, it's missing a couple of features that jasmine-headless-webkit provides: automatic coffeescript compilation, and clean debugging backtraces. What is the simplest way to use…
yndolok
  • 5,197
  • 2
  • 42
  • 46
2
votes
1 answer

Jasmine Headless Webkit backbone and Handlebars

I am using the sht_rails gem to render handlebars templates in my Rails 3.2/Backbone App. I'm hoping to use this .handlebars template in both the backbone and rails portion of the app, but so far I just have it working in the backbone. I'm using it…
1
vote
2 answers

ReferenceError: Can't find variable: $ when running JasmineHeadlessWebkit

I've been trying to find an answer to this at least for the last two hours without any luck. I hope someone here might be able to help. I'm getting this ReferenceError: Can't find variable: $ when running my Jasmine specs using the…
0
votes
1 answer

How can I fix an error I am getting with jasmine init

I have an issue with using jasmine init. When I hit enter I get the following output: $ jasmine init /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require': cannot load such file -- jasmine-core (LoadError) …
0
votes
1 answer

module not found when setting angular controller test

I try to set up angular controller unit test following this guide, the code is as follows: describe('ProfileController', function() { // load haloApp module beforeEach(module('haloApp')); it("should have notify_changed in scope",…
0
votes
1 answer

guard init can not find such file error

I have installed guard jasmine-headless webkit but it is causing an error. From the output I think it's the only one. Does anyone know how to fix this, so it can find the file. This is the output: → guard…
Richard
  • 4,516
  • 11
  • 60
  • 87
-5
votes
1 answer

Which is best headless testing tool for ruby on rails app

I have a ruby on rails application and need to run headless testing for javascript and other BDD test cases. Suggest best available tool to run BDD tests in headless mode.