Comments (7)
What's the output of autotest -v
in that project?
from zentest.
No tests matched .autotest
No tests matched .rbenv-version
/Users/sema/.rbenv/versions/1.9.3-p0/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/test_foo.rb].each { |f| require f }"
Run options:
# Running tests:
.
Finished tests in 0.000931s, 1074.1139 tests/s, 0.0000 assertions/s.
1 tests, 0 assertions, 0 failures, 0 errors, 0 skips
After touch .autotest
{".autotest"=>2012-03-30 22:39:07 +0800}
No tests matched .autotest
{".autotest"=>2012-03-30 22:39:07 +0800}
No tests matched .autotest
from zentest.
So, I just did the following:
% sow blah
% cd blah
% emacs Rakefile # added: dependency "ZenTest", "~> 4.8", :developer
% rake # to get all deps isolated
% GEM_PATH=tmp/isolate/ruby-1.8 tmp/isolate/ruby-1.8/bin/autotest -v
I added ZenTest just so I could have a local copy to hack on instead of dealing with load path stuffs. Once running, editing .autotest restarted autotest just fine.
The contents of my .autotest:
require "autotest/restart"
Autotest.add_hook :initialize do |at|
at.testlib = "minitest/autorun"
at.add_exception "tmp"
end
So maybe autotest/fsevent
is messing things up. Comment that out and try again?
from zentest.
It works the same way without autotest/fsevent. I will try to repeat your steps exactly.
from zentest.
Any luck?
from zentest.
I have not been able to setup an isolated project using hoe. It uses system rubygems and does not create tmp/isolate directory. You probably have some global settings that allow you to do so. I have created a repo with just ZenTest & Isolate: https://github.com/semaperepelitsa/autotest-restart-bug.
rake isolate:sh
autotest -v
touch .autotest # in another terminal
And it outputs
{".autotest"=>2012-05-22 14:26:52 +0800}
No tests matched .autotest
{".autotest"=>2012-05-22 14:26:52 +0800}
No tests matched .autotest
touch test/test_foo.rb
runs the test fine.
Can you clone the repo and reproduce my steps?
from zentest.
I don't have any global settings or anything fancy going on. I just have hoe, isolate, and rake installed.
I was able to reproduce your error, but only under 1.9. Enumerable#select on a Hash instance on 1.9 returns a Hash, as a result my flatten wasn't flattening. I've fixed it by getting rid of my splat arg to the block.
from zentest.
Related Issues (20)
- zentest proxy gem HOT 4
- remove default :died hook in autotest. HOT 7
- autotest no longer works with rubygems 2.0 HOT 3
- autotest hanging for me HOT 10
- RubyGems at 2.1.1: ZenTest requires RubyGems version < 2.1 HOT 9
- d /git HOT 2
- Conflict with Celluloid HOT 9
- Conflicts with Ruby 2.1 and multi gem? HOT 2
- `-w` doesn't turn on warnings HOT 2
- "Unable to map class ... to a file" HOT 5
- Add note on `add_development_dependency` in README HOT 1
- When `--backtrace` is on and `Time.parse` is used to dynamically generate the name of an example, `autotest` is unable to re-run the failing specs because the first argument to `rspec` is malformed. HOT 2
- Unable to map class <filename> to a file HOT 6
- autotest stops running tests after the last failing test succeeds HOT 4
- Pathname.new "ArgumentError: wrong number of arguments(1 for 0)" HOT 6
- zentest 4.11.0 fails test with ruby 2.3 HOT 1
- Invalid gemspec in [ZenTest.gemspec]: Illformed requirement ["< 3.0, >= 1.8"] HOT 6
- ZenTest 4.11.1 incompatiable with rubygems 3.0.1 HOT 11
- `require': cannot load such file -- ubygems (LoadError) HOT 3
- Can't find executable autotest HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zentest.