rspec / rspec-autotest Goto Github PK
View Code? Open in Web Editor NEWAutotest integration for RSpec 3
License: MIT License
Autotest integration for RSpec 3
License: MIT License
This is a placeholder as I work through figuring out how to add Spring support to rspec-autotest. If anyone has already figured it out though I'd love some advice.
@myronmarston is travis enabled for this repo?
Don't know if this is ZenTest issue or respec-autotest integration issue, but on Ubuntu
18.04.3 LTS (Bionic Beaver), using ruby 2.6.6, sinatra 2.0.2, rspec 3.3.0, rspec-autotest 1.0.0, and ZenTest 4.12.0, all bundled with Bundler version 1.17.3, I get the following error when issuing the command bundle exec autotest
: /usr/share/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/rubygems_integration.rb:462:in `block in replace_bin_path': can't find executable autotest for gem ZenTest (Gem::Exception)
Any ideas?
Hey @seuros, I plan to release RSpec 3.0.0 tomorrow. Would be great to have a 1.0.0 release of this gem out by then. Can you take care of that? I can take care of it when I'm doing the other releases but I figure it's best to let you take care of it since you're the maintainer of this now :).
Ok this is good to go, travis build is up and running, I've tested it can replace autotest integration against 2.99 and 3.x
So it just needs a final README check over and release. Unless anyone can think of anything else it needs?
rspec-autotest
version: latest
Rails Version: 5.1.4
I have to update .autotest
file to the following, in order to autotest working with Rails:
require "autotest/rails_rspec"
It was not picked up automatically, as stated in the README.md
.
Could the distribution of this gem on https://rubygems.org/ be updated?
By using commit 93ecc27
I was able to this gem working properly with Rails 5 and RSpec 3. Using the latest rubygems.org release (1.0.0), I got:
NameError: uninitialized constant ActiveSupport::Autoload
/bundle/gems/activesupport-5.1.4/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>'
/bundle/gems/activesupport-5.1.4/lib/active_support/number_helper.rb:2:in `<module:ActiveSupport>'
/bundle/gems/activesupport-5.1.4/lib/active_support/number_helper.rb:1:in `<top (required)>'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext/numeric/conversions.rb:2:in `require'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext/numeric/conversions.rb:2:in `<top (required)>'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext/numeric.rb:4:in `require'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext/numeric.rb:4:in `<top (required)>'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext.rb:2:in `require'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext.rb:2:in `block in <top (required)>'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext.rb:1:in `each'
/bundle/gems/activesupport-5.1.4/lib/active_support/core_ext.rb:1:in `<top (required)>'
/bundle/gems/rspec-autotest-1.0.0/lib/rspec/rails/autotest.rb:25:in `require'
/bundle/gems/rspec-autotest-1.0.0/lib/rspec/rails/autotest.rb:25:in `<top (required)>'
/bundle/gems/rspec-autotest-1.0.0/lib/autotest/rails_rspec.rb:1:in `require'
/bundle/gems/rspec-autotest-1.0.0/lib/autotest/rails_rspec.rb:1:in `<top (required)>'
/app/.autotest:2:in `require'
/app/.autotest:2:in `<top (required)>'
/bundle/gems/ZenTest-4.11.1/lib/autotest.rb:323:in `load'
/bundle/gems/ZenTest-4.11.1/lib/autotest.rb:323:in `block in initialize'
/bundle/gems/ZenTest-4.11.1/lib/autotest.rb:322:in `each'
/bundle/gems/ZenTest-4.11.1/lib/autotest.rb:322:in `initialize'
/bundle/gems/autotest-rails-4.2.1/lib/autotest/rails.rb:7:in `initialize'
/bundle/gems/ZenTest-4.11.1/lib/autotest.rb:248:in `new'
/bundle/gems/ZenTest-4.11.1/lib/autotest.rb:248:in `run'
/bundle/gems/ZenTest-4.11.1/bin/autotest:6:in `<top (required)>'
/bundle/bin/autotest:23:in `load'
/bundle/bin/autotest:23:in `<top (required)>'
For me, the tool is continuously re-running failing specs (about once per 2 seconds) even if there are no changed files.
Is this how it's supposed to behave, or am I using/configuring it wrong?
Gracias!
Running with ruby 2.2.0, rails 4.2.0, rspec-rails 3.1.0 (rspec-core 3.1.7), rspec-autotest 1.0.0.
On running autotest, this produces an uninitialized constant ActiveSupport::Deprecation
error. active_support/deprecation
is not being loaded. The stack trace is showing this hitting at lib/rspec/rails/autotest.rb:26
.
When I replaced the line (26):
require 'active_support/core_ext'
with:
require 'active_support/all'
I was able to run my full test suite without any problems.
It seems documentation has a piece missing to make it work.
This is part of my Gemfile:
gem 'rspec', ">=3.0"
gem 'rspec-autotest'
After I run bundle
I got this message in green:
Installing rspec-autotest 1.0.0
Yet when I ran autotest
I get:
The program 'autotest' is currently not installed. You can install it by typing:
sudo apt install ruby-zentest
.rspec
file does exist:
$ cat .rspec
--color
--require spec_helper
Do I really need ruby-zentest? I have no idea what's that. By reading documentation I thought I could just type autotest
and everything would work.
How to make it work?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.