search for: prepare_test_database

Displaying 5 results from an estimated 5 matches for "prepare_test_database".

2005 Dec 30
1
Need serious help - unit testing without a database
I''ve created a model, let''s just call it Person class Person attr_accessor :first_name, :lastname def full_name @first_name + " " + @last_name end end I''m using this in my Rails application. My Rails application does not use a database of any kind, and this model is obviously not a subclass of ActiveRecord::Base. I can''t unit test this
2006 May 05
0
Perplexing unit test issue
...t and development databases, no change in error. Did I mention that it''s perfectly happy in development and production when it''s not copying the structure? $ rake test_units --trace (in /Users/deirdre/Desktop/datadomain/docmanager) ** Invoke test_units (first_time) ** Invoke prepare_test_database (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute prepare_test_database ** Invoke clone_structure_to_test (first_time) ** Invoke db_structure_dump (first_time) ** Invoke environment ** Execute db_structure_dump rake aborted! You have a nil object when you didn'...
2005 Dec 28
6
coverage does not work
Hi, I''ve installed coverage (gem install coverage) and try to run tests with -rcoverage option on, but following error occurs: ruby: No such file to load -- coverage (LoadError) I try: ruby -rcoverage mytest.rb 1. I have rubygems in evn var RUBYOPT 2. Gem seems to be installed properly (I can read doc via gems, the files exist in the ../gem/... dirs) Does anyone know what is the
2006 Feb 27
1
problem with rakefile
hi, I am having a problem with the rake test_units in my RoR application. when i''m running it it tries to run all the files that end in *.rb (i think) under the /unit folder in the project and it''s subfolders. The problem is that my source control system (bitkeeper) saves an subfolder named SCCS under each of the project folders, and in it, for eack .rb file another file
2006 Jan 06
0
Performance problem w/ Rake on MS SQL 2000 1-GB database
Hello all, I have a legacy 1Gb MS SQL 2000 database in production. A copy of this is my dev db. rake prepare_test_database on this database takes 20+ minutes. Can someone PLEASE tell me if there is a solution to improving the prepare time for this DB ? Thank you thank you thank you in advance! -- ------------------------------ me in you, you in me - the primal empathic mirror in all of us. -----------------------...