search for: testunit

Displaying 13 results from an estimated 13 matches for "testunit".

Did you mean: test_unit
2011 Jun 22
0
Spork, Rails and testunit
Hi. I''m trying to use Spork (actually spork-testunit, last git version) with Rails 3. My setup is correct, I manage to launch Spork (through bundle exec) and testdrb. But I cannot succeed to have my models reloaded. Spork-testunit''s doc says to put the loading commands in the prefork block, which I did. Nobody seems to require the use of...
2008 Nov 19
6
RSpec, TestUnit, Cucumber and Autotest
OS=CentOS-5.2 Ruby=1.8.6 Rails=2.2.1_RC Gems all up to date I have been experimenting with autotest and I have a few questions. 1. given export AUTOFEATURES=TRUE if ./test exists (with tests) then these tests are run and the features are not. Is this intended behaviour? 2. given require ''autotest/redgreen'' in .autotest if /test tests are run then all I get colourized is a
2004 Feb 01
2
test_services test case
...t::Win32Service,a.first) end I added some more information to the error messages, and it turns out that the failure is caused by the call to OpenSCManager() in the services() function in service.c. As far as I can tell, the only reason for this to happen would have something to do with the way TestUnit calls the tests. I discovered two interesting things while tinkering with this test case. First, If I remove the 2nd assertion (assert_raises) the test passes fine. Second, if I add a "sleep 1" after the "assert raises", I get a different error: "Invalid access to mem...
2009 Feb 03
3
Rcov - Specifying rake tasks
...ucumber/rake/task'' task :rcov => "rcov:all" namespace :rcov do Rcov::RcovTask.new(:all) do task :rcov => "rcov:cucumber" end Cucumber::Rake::Task.new(:cucumber) do |t| ... Spec::Rake::SpecTask.new(:rspec) do |t ... Rcov::RcovTask.new(:testunit) do |t| ... Now, rake rcov:cucumber runs the cucumber rcov task as expected. However, both rake rcov and rake rcov:all run rake rcov:testunit. I cannot fathom why. Can someone explain this to me? -- Posted via http://www.ruby-forum.com/.
2010 Jul 25
0
Testing problems: ActiveSupport
...tsuite.rb:37:in `each'' C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:37:in `run'' C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/ui/testrunnermediator.rb:48:in `run_suite'' D:/Projects/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:117:in `start_mediator'' D:/Projects/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:62:in `start'' D:/Projects/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:332:in `<main>'' Thanks a lot to ev...
2010 Jul 24
23
How to disable ORM in Rails 3
Is there any way to prevent Rails 3 from using an ORM? In Rails 2, it used to have a description in environments.rb explaining how to do that. In Rails 3, is there any way to tell it to not use any database? I was trying to make some benchmarks from situations that don''t require a database... Thanks in advance, Rodrigo. -- You received this message because you are subscribed to
2011 May 26
2
Rails new without test unit
When creating a new rails project (3.1.0.rc1) with no test unit options, it still create test unit rake tasks. rails new my_project --skip-test-unit rails g : TestUnit: test_unit:controller test_unit:helper test_unit:integration test_unit:mailer test_unit:model test_unit:observer test_unit:performance test_unit:plugin test_unit:scaffold Is this correct ?? -- You received this message because you are subscribed to the Google Groups "Ruby...
2005 Nov 16
19
Concerns over Rails' handling of tests
...a particular HTML element is present in my view does nothing to tell me that my view is "correct", therefore I think this makes the test worthless. Which leads me on to saying that views such as forms are the realm for proper functional testing using something like Watir or Selenium, not TestUnit and tag assertions. You want to check that you can fill in the form and submit it, not that the page contains a <form> tag. So what would I really like to see? No separation of unit and functional testing in terms of model and controller code. They should all be covered by unit tests. Functi...
2005 Feb 27
0
Re: test/unit report attached
Hi Shanko, I''ve read over the testunit results that you posted. First, please do not include win32-thread or win32-driveinfo. The former is extremely beta. The latter I want to reshape a bit before we release it. Other tests: You can ignore the LINK warnings. win32-dir - These failures are expected. Ignore. win32-file - You can i...
2008 Nov 21
57
Spec''ing via features
As I work with Rails TestUnit tests I am reconsidering how to use cucumber features. It seems to me that it might be best to have a coherent view of how to arrange my test suites before I get much further into this. Now, so far I have considered three possibilities: 1. Use features exclusively. Create a feature file for each...
2007 Jul 06
0
CCRB and ci_reporter XML output: How do you display custom build artifacts
Hi, I''ve installed ci_reporter (having previously installed CruiseControlRB), as both a gem and a rails plugin. The tests are invoked by an explicit project.command (rake ci:setup:testunit test - I probably shouldn''t need to do this explicitly but I''m semi-following ci_reporter instructions here) from cruise_config.rb. At the completion of the tests I see XML files generated in my work/test/reports directory but what further set up do to CruiseControlRB or ci_repor...
2009 Apr 22
15
Why RSpec?
I like Shoulda. Sometimes I like plain old Test::Unit. Cucumber gives me a different thought process. I''d just like to hear some thoughts on why RSpec? What does it buy me that I can''t get with Shoulda? I just can''t seem to think in RSpec. Where is there a good example of RSpec tests that will help me grasp the right path? Thanks! -- Amos King
2009 Aug 21
12
What to do before launching v1.0?
I’m launching a rails website, the app is written and works, undoubtedly it’ll be an unmitigated disaster when I launch but none the less I thought I’d least attempt to give myself the best chance of success by asking all the gurus here for some advice – pre launch advice if you like. In an ideal world I’d spend days and hours on all of these things and get it absolutely spot on, but as we all