Questions tagged [autotest]

Autotest is a Ruby gem for running tests automatically when source files change.

272 questions
2
votes
2 answers

How do I manually specify the test files to run in autotest?

How do I manually specify which test/unit test files should be run when a non-test file gets updated?
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
2
votes
1 answer

autotest failed with invalid gem spec

I am trying to run autotest, at one point it was working for me and then it stop. I have been following the ruby on rails tutorial. lexi87$ autotest Invalid gemspec in [/Users/lexi87/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]:…
Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
2
votes
3 answers

No Growl Notifications with Rails Tutorial 3.2

Michael Hartl's wonderful Rails Tutorial is now available for Rails 3.2. He continues to outline TDD and BDD using rspec and spork as he did in version 3.0 and adds guard in 3.2. In version 3.0, Hartl includes information about autotest and I was…
BenU
  • 2,287
  • 1
  • 22
  • 35
1
vote
1 answer

Ruby on Rails : Autotest-notification on Ubuntu 10.04

So after spending some time googling I finally got autotest to work on ubuntu with autotest-notification It is working fine too. Just got a minor issue. When I get an error the graphical notification pops up with the RED code . Then if I go fic the…
tarashish
  • 1,945
  • 21
  • 32
1
vote
1 answer

How to configure autotest to run on Mac OS X Lion

Am working my way through Michael Hartl's Rails Tutorial and he says in Chapter 5 that one should configure Mac OS X to run auto test. The code he provides for OS X is: Autotest.add_hook :initialize do |autotest| …
pdenlinger
  • 3,897
  • 10
  • 60
  • 92
1
vote
2 answers

Rails - can't run autotest

After my upgrade to Rails 3.1.3 and Ruby 1.9.3 (via RVM) i can't normally run autotest. I don't know what has happened, but when i print: $ autotest It shows strange error loading…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
1
vote
0 answers

autotest, growl, and Ruby on Rails 3 Tutorial

I'm running through Ruby on Rails 3 tutorial, and have been having difficulties with the autotest. Many of them have been handled, but the solutions only seem to bring up subsequent issues. I am currently on page 96 of the tutorial (if it helps). …
1
vote
1 answer

invalid multibyte char (US-ASCII) (SyntaxError) on lion, # encoding: utf-8 does not work

I am trying to install autotest with growl and fsevent on my mac, but got the following message as many others have got: loading autotest/rails_rspec2 /Users/xunx/.rvm/gems/ruby-1.9.2-p290@rails3/gems/ZenTest-4.6.2/lib/autotest.rb:316:in…
1
vote
2 answers

No color in Rspec output but color in autotest

I'm running: + Ruby 1.9.2p290 + Rails 3.1.1 + Rspec 2.6.0 + autotest 4.4.6 + ansicon 1.40 + spork + growl on Windows Vista 64-bit to go through the rails 3 tutorial. The tests seem to run fine and I get the expected output--except coloring. The…
George Shaw
  • 1,771
  • 1
  • 18
  • 32
1
vote
1 answer

Advice on Rails and CI, how often does this run exactly? or what is common practice

First off, is autotest and cruisecontrol performing the same sort of CI tasks? I want to setup something that will run my unit tests, and also integration tests on my local MBP computer i.e. I don't have a seperate computer for this yet. Is autotest…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
1
vote
0 answers

Program fails trying to re-get window handle when switching between browser tabs

Could somebody help me please! What is the problem here: I'm working with selenide, writing autotests using java and I need to switch between different tabs in browser or between its windows from time to time. I use the same method for it,…
1
vote
1 answer

Autotest runs only once if tests don't fail

I'm struggling with setting up autotest. The problem is that it will only run once if the tests are green. I don't yet have any filesystem-notification plugin added yet (autotest-inotify is what I intend to add eventually). When the tests are red,…
Tamás Szelei
  • 23,169
  • 18
  • 105
  • 180
1
vote
2 answers

Speed up slow unit testing for a rails app on Windows?

I'm looking for the quickest way to run unit tests for a rails app on a Windows machine, preferably automatically. My environment is: Ruby 1.8.7 Rails 3.0.9 ZenTest 3.6.0 (the latest versions 4.6.2/4.5.0 failed when I tried them for some…
Graeme Moss
  • 7,995
  • 4
  • 29
  • 42
1
vote
1 answer

How to use text from html-element in others non-cypres functions?

I need to get text from html element to use it in other checking. But this checking must be done elsewhere later, not inside function of text getting. That's why such variant as > cy.get('#at__title').invoke('text').then((storedValue) => { > …
Yoooo
  • 89
  • 6
1
vote
0 answers

How can i use touchAction with selenium?

When i use touchAction in java, the Error is 'org.openqa.selenium.UnsupportedCommandException: touchFlick'. When i use touch_action in python, the Error is 'selenium.common.exceptions.WebDriverException: Message: unknown command: Cannot call non W3C…