autotest

invalid option: --autospec

不羁岁月 提交于 2019-12-12 16:25:43
问题 /usr/local/bin/ruby -rrubygems -e "require 'redgreen'" /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec --autospec <files_here> -O spec/spec.opts invalid option: --autospec Test::Unit automatic runner. Usage: -e [options] [-- untouched arguments] which spec says "/usr/local/bin/spec" which autospec says "/usr/local/bin/autospec" /usr/local/bin/spec --help includes --autospec option in the list. What am I missing here? 回答1: I finally got some time during the weekend to look into this

Does travis-ci.org support pm2?

不想你离开。 提交于 2019-12-12 03:25:25
问题 I set up a nodejs auto test with travis-ci.org。I need to set up a server to support static files.I want to know if trvis-ci support pm2:) Or,is there any way to record a server`s pid。 like pm2 do: pm2 start app.js pm2 stop app.js 回答1: You can install pm2 on travis. To do that, you need to change your .travis.yml: before_script: 来源: https://stackoverflow.com/questions/27837455/does-travis-ci-org-support-pm2

Autotest notifications on Ubuntu virtual environment

Deadly 提交于 2019-12-12 00:37:13
问题 I am having trouble getting Rails autotest notifications to work on the Engine Yard Vagrant environment. On the Mac, I normally get the notifications via Growl. However, on the virtual environment (which runs Ubuntu) that doesn't work. I tried running Linux notification setups such as libnotify+autotest-notification, but I get the following error: libnotify-Message: Unable to get session bus: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization

how to tell autotest to correctly track changes in app source?

妖精的绣舞 提交于 2019-12-11 11:49:14
问题 I want to get autotest to run Steak acceptance tests whenever one of my rails app's relevant files is changed. After studying Rspec's and Cucumber's own autotest configs, I'm trying the following mappings: Autotest.add_hook :initialize do |at| at.add_mapping(%r%^spec/acceptance/.*_spec.rb$%, true) { |filename, _| filename } at.add_mapping(%r%^app/(models|controllers|helpers|lib)/. rb$%) { at.files_matching %r%^spec/acceptance/. _spec.rb$% } at.add_mapping(%r%^app/views/(.*)/. rb$%) { at.files

Behat 3: How to get profile name inside FeatureContext

a 夏天 提交于 2019-12-11 03:43:03
问题 I am starting behat with ./bin/behat --suite=SuiteName --profile=profile_name Is it possible to get current behat profile name inside FeatureContext especially inside BeforeSuiteScope /** * @BeforeSuite */ public static function beforeSuite(BeforeSuiteScope $scope) { } 回答1: So I found brute force method, I know probably its not the best way of getting profile name, but it works. $input = new ArgvInput($_SERVER['argv']); $profile = $input->getParameterOption(array('--profile', '-p')) ? :

Error with autotest in ruby on rails

梦想的初衷 提交于 2019-12-10 15:15:56
问题 I ran the command autotest and this is the error I got . I am following Hartl's book and was wondering is this clash happening because rails now comes with ZenTest or something else ? How can I work past this error. I am new to RoR Invalid gemspec in [/Users//.rvm/gems/ruby-1.9.2-p320@twitclone/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"] Invalid gemspec in [/Users//.rvm/gems/ruby-1.9.2-p320@twitclone/specifications/ZenTest-4.8.4.gemspec]: Illformed

autotest on ubuntu does nothing

霸气de小男生 提交于 2019-12-08 17:33:34
Running either $autotest or $autotest -f gives the same result: # Waiting since [timestamp] Changing a controller or spec file just gets that line repeated (with a newer timestamp). If I try $autotest -v, it does not include the spec or controller among the list of files for which no tests match, which I suppose is good; but it doesn't show anything else besides the #waiting line. If I make a change to a spec or controller while running -v, the output is a hash repeated twice with {[path/to/changed/file] => [timestamp]}. This is Ubuntu 9.04, Ruby 1.9.2, Rails 3, autotest 4.3.2, autotest-rails

Not Receiving Growl Messages from Autotest on Windows

风格不统一 提交于 2019-12-08 06:17:14
问题 I am following the Ruby on Rails Tutorial (http://ruby.railstutorial.org) . In Chapter 3, the author covers testing. Everything seems to be working according to the instructions, but I don't get Growl notifications (green or red) after starting autotest. Also, in Growl, it says "No Applications Have Registered Yet". References: I tried both gem installs mentioned in the autotest-growl readme I blindly loaded the gem karl-autotest-growl, although the blog describing it, although clearly

Autotest with Rspec2 in Rails 3 Can't Find Binaries

时间秒杀一切 提交于 2019-12-06 13:34:11
问题 I'm trying to get autotest back up and running after moving my project to rails 3. After upgrading to rspec 2.0.0.beta.22, I can't seem to run autotest. I get the following: bundler: command not found: c:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.0.beta.22/bin/rspec even though the binary does in fact exist in that location. Here is my Gemfile contents: group :development do gem 'webrat' gem 'rspec-rails', '>=2.0.0.beta.22' gem 'factory_girl_rails', '1.0' gem 'autotest' end group :test

autotest problem

不打扰是莪最后的温柔 提交于 2019-12-05 03:08:33
I just installed Zentest 4.4.6 which includes autotest 4.4.6 and when I run autotest I get the following error: gems/ZenTest-4.6.0/lib/autotest.rb:226:in `autodiscover': undefined method `any?' for Gem::Specification:Class (NoMethodError) huh? it's like it reverted back to ruby without rails I don't know japanese, but looking at http://d.hatena.ne.jp/hkj/20110724 I learned that you can make it work by changing line 226 from: # hacky_discovery = Gem::Specification.any? { |s| s.name =~ /^rspec/ } to # hacky_discovery = true This line was last modified in this commit: https://github.com/seattlerb