autotest

Is there something like ZenTest/Autotest for Java and JUnit

I've used ZenTest and autotest to work on Ruby projects before, and I used to using them for test-driven development a la this configuration. I have a project that I'm currently working on in Java, and I was wondering if there is something similar in the Java world to achieve the same effect. ...

A pretty GUI for autotest

I was wondering if anyone knows of any nice GUIs for autotest? I already know about all the plugins distributed with autotest (growl, knotify etc.), what I want is a little more. I would like a GUI that displays the total count of failed tests at all times. I would like the GUI to allow me to click through to the failing test (have t...

Autotest performance slowdown

I've been using ZenTest to run all the tests in my Rails project for years and it's always been quite nippy. However, on my Mac it has suddenly started taking 3 times as long to run all the tests. We have 1219 tests and for the past year it would run all the tests in around 300 seconds on average. Now though, it's taking almost 900 se...

Shoulda, Rails Tests , and Autotest

I'm trying to model my tests after the great work that the Thougtbot guys have done. They seem to use the test framework built into Rails Shoulda. Great. I have been hearing a lot about Autotest - that its magical-ness should make things easier.... I expected that things would 'just work' if I installed it. My rake test:units already a...

autotest is not working

i changed my .autotest file to use with ruby based project. after that when i wanted to use it for rails it is using the .autotest configuration settings i used for ruby project. i uninstalled autotest and reinstalled it with no luck. i also removed .autotest file in root directory but it is not working. ...

How can I have autospec/test not run the full test suite after everything goes green?

Same question as waloeiii in twitter: How can I have autospec/test not run the full test suite after everything goes green? The next test I write will be red! I'd rather run the full test suite manually. By the way, I tried adding a failing spec: it "should flunk" do flunk end but autospec seems to ignore it when it fee...

How do I get rspec / autotest going on a rails project?

What's the best practice for getting RSpec / Autotest going on a Rails project? I googled some stuff but it feels like it may be out of date. ...

Rails: using ZenTest / autospec to test specs in new directories

I am adding a directory for services classes in my rails application: app/services I would like to add specs for these classes in the directory: spec/services I added a spec to spec/services, but running autospec does not run the example. Is there a way to configure autospec to run examples in new directories? Thanks. ...

ZenTest autotest can't find rubygems

I have a rails project that runs fine in development and production and the tests pass when I do a rake test but when I try to autotest it it fails with: Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, blah blah Of course the rails gem is not missing and if I comment this line out, it complains about the rest of the ...

How to make rails autospec stop looping

I'm using autospec and when all tests are passing, the green messages pops up just once, but when the tests are NOT passing, it remains popping up infinite red windows in growl. Does anybody knows how to turn this off and make autospec run just after I save my files? I have a .autotest file in my home with these contents: require 'aut...

AutoTest and Rspec testing with Rails

I just started using AutoTest. As far as i can tell i have everything configured, but everytime i run autotest then i get the following error coming from my test_helper.rb: richards-macbook-pro: $ autotest loading autotest/rails /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit...

How to have autotest and RSpec nicely formatted when comparing long texts (with \t and \n)?

I have a test in RSpec which compares to long text strings. When the test fails, I get a message like this: 'jobs partial should render the correct format for jobs' FAILED expected: "Job {\n\tName = \"name1-etc\"\n\tType = Backup\n\tMessages = Daemon\n\tPool = Default \n\tSchedule = \"schedule1\"\n\tStorage = storage1\n\tClient = \"name...

Ruby Autotest with add_mapping

I am trying to add a hook in Autotest to trigger tests when javascript files are changed. Below the is the .autotest file I am using. The syntax seems to be correct, but nothing is happening when a javascript file is updated. The first hook works fine, the second does not. Autotest.add_hook :initialize do |at| at.add_mapping(%r%^s...

No colors when using autospec

When I'm using autospec to test a non-Rails Ruby project, I always have trouble getting my tests to show up red or green. When I run a regular 'spec spec/ --color' command I get normal red/green responses. I've tried putting all sorts of commands in the .autotest file and I can't get that to work. Also, in my Rails projects, I don't ge...

Cucumber + Rspec + Rails + Webrat, factor_girl + autotest on MacOSX ... in gem.config ?

I found example how to use on: http://www.claytonlz.com/index.php/2009/04/how-to-setup-rspec-cucumber-webrat-rcov-and-autotest-on-leopard/ but I try to find solution to put this all gems to gem.config (enviroment.rb) with using gemcutter gem repository (this is prefered gems repository now ?) Maybe some one have properly configured ge...

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? ...

rake test finding tests. autotest not finding them

$ rake test $ rake test (in /Users/ethan/project/mtc/completestreets) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0...

Passing options in autospec with Cucumber in Ruby on Rails Development

I always run autospec to run features and RSpec at the same time, but running all the features is often time-consuming on my local computer. I would run every feature before committing code. I would like to pass the argument in autospec command. autospec doesn't obviously doesn't accept the arguments directly. Here's the output of autos...

Error after second spec run with rspec and autospec

After installing rspec/ZenTest and running autospec, it runs my specs the first time as expected. After making a change to one of my specs and upon running the second time I get the following results: /usr/bin/ruby1.8 /usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec --autospec /home/schambers/Projects/notebook/spec/models/user_spec.rb -...

Autotest not understanding namespacing

Most of my work in a rails application is done with rails engines. When I develop new applications, it usually use a custom built cms. My CMS was inspired by refineryCMS in that there is a core that lives as a rails engine. Features that make up the application are other rails engines that register themselves with the core. For example t...