search for: test_units

Displaying 20 results from an estimated 63 matches for "test_units".

Did you mean: test_unit
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
2006 Jun 02
3
Wierdness with rake test_units and schema.rb
I have just migrated to use Rail 1.1 from 1.0. In the progress of fixing and cleaning up the unit tests. I found the following problem. I am not sure if this is a bug or it is my environment. When I run "rake test_units, some of the index in association tables is not created, this leads to failures for some unit test cases. Thinking that may be because I didn''t setup the database correctly, I reload the sql file (with the index defined) into both test and development database. run the test mannually,...
2006 Feb 02
4
rake test_units slow on startup
Hi Running ''rake test_units'' using the simple example from the intro video is very slow on my computer. While the tests claim to execute in 0.17 secs, the startup time ad 5.3 seconds to the overall job. On the video, these tasks ran in about 1 second. (Maybe David was doing the tests on a dual proc mac or did some v...
2004 Sep 10
0
1.0 source candidate
On Fri, Jul 20, 2001 at 05:15:21PM -0700, Josh Coalson wrote: > I rethought it and it seemed like a bad idea to post > a big file, so you can get it here: > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/flac/junk/flac-1.0-src-candidate.tar.bz2 With the attached patch, a complete "make distcheck" should work, including the self-tests. It adds missing directories to some
2005 Dec 27
4
Migrations & Unit Testing: Possible Bug in Rails?
...includes a number of execute statements (to do some things like setting primary keys, autoincrement on some columns and other messy voodoo). Running "rake migrate" creates the database with no problems and everything is happy in my world! However things go wrong when I run "rake test_units". Basically the test database is not recreated properly. I delved into the testing.rake and databases.rake files to see what is going on, and this is my understanding: 1. "rake test_units" recreates the test database by running the db/schema.rb file. 2. However this file will NO...
2006 Mar 01
0
rake test_unit from controller
I was just thinking it might be nice to run rake test_units from a controller and put the outputs into the browser. I like the original green or red bar. I figure someone must have done this but a quick search turned up nothing. Any ideas? Gareth -- Posted via http://www.ruby-forum.com/.
2006 Feb 26
0
using rake test_unit on Bitkeeper repository
Hi, I''m writing an RoR application on a source-control system Bitkeeper. for each source file yyy.zzz in Directory XXX it saves a file called x.yyy.zzz in subdirectory XXX/SCCS. when I try to run ''rake test_unit'' it also tries to execute the files of the bitkeeper as unit tests, which of course fails. Is there a way to tell rake to skip all the files in the SCCS
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All, If I run my unit tests individually using Ruby, they all work correctly. However, if I try to run them using "rake test_units", I get a bunch of error messages. The error messages appear to be caused by rake not loading any of the fixtures into the test database. I am using PostgreSQL on Windows. Does anyone have any suggestions? Many thanks, Bruce. -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
0
rake default(?)/test_unit magic
Hi list! I''m trying to add a rake task or a command line switch to the existing task to run Tk unit test runner instead of console one. Yet I couldn''t figure out where this magic is happening, i.e. where console runner is initialized and run? And yes, wouldn''t something like rake task "all_test" be more appropriate then default? -- Posted via
2012 Feb 27
9
Bit of a issue with creating a new app and running it
HI all, I have just setup the ROR environment on a vps, but once i created the app and run rails s or db:create after modifying the database.yml it keeps on appearing with the "Could not find gem sqlite3" etc message which i know this as it''s not install as i am using mysql. What else have i got to do other than modifying the database.yml as to me it''s still looking
2004 Sep 10
5
1.0 source candidate
I rethought it and it seemed like a bad idea to post a big file, so you can get it here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/flac/junk/flac-1.0-src-candidate.tar.bz2 Josh __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
2006 Mar 10
2
rake fails on build server, but not in development
...X with MySQL, and a production deployment environment of Redhat with Oracle XE. In the course of setting up a new continuous build server that more closely mimics our production environment, I got stuck on the following strangeness on the build server (Linux, Oracle). 1. rake fails 2. rake test_units works 3. rake test_functional works We''ve reduced the problem down to a simple fault by using --trace ... I can see that "purge_test_database" does not happen between test_units and test_functional when a complete rake is done, and the database has a bunch of stuff in it fro...
2006 Apr 02
5
PostgreSQL and unit tests
After upgrading to 1.1, I can''t run any unit tests. Apparently when I run rake test_units, it uses a migration to set up the database. Unfortunately when it runs the migration, it''s adding not null constraints to every field, even though I haven''t got that set up. I''m using the ruby-postgres (0.7.1.2005.12.21) adapter with PostgreSQL 8.1.0. I''m get...
2006 Mar 02
2
Unit tests, salted hash login
Hello, I am having some trouble running the unit tests for the salted has login generator. I am a bit new to both ruby and rails so I am having a little trouble deciphering the error message I get when running ''rake test_units''. Up till the point where I try to run the unit tests I have followed the quick start guide for the salted hash login generator (http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart), my version of rake is 0.7.0. This is my error message [brasse@keso login-test]$ rak...
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 May 07
1
rake test without database
Hi! Is it possible to run unit tests when no database is configured? Rails recipes mentions putting following piece of code in a file within lib/tasks/ [:test_units,:test_functional,:recent].each do |name| Rake::Task.lookup(name).prerequisites.clear end However this seem to be out-of-date, as task lookup in rake according to RDoc is now done using Rake:Task[name]. But after I updated the code above and set a breakpoint, the prerequisties for the :test_uni...
2004 Sep 10
2
-lm ordering
In order to compile flac-1.0 with Compaq C on FreeBSD/alpha, I needed to move -lm to the end of the libraries, otherwise ccc would complain about unresolved symbols. Patches below. The result is nothing less than stunning. On my 21164A/500 box, "ccc -fast" code is almost twice as fast as "gcc -O -mcpu=ev56", 1:11 vs. 2:03 for encoding a test track with default parameters.
2006 Aug 05
5
error with db:migrate
I''m new to ROR, and am working my way through the Agile Web Development Book. In the test application, the authors tell me to test my database connection by performing "rake db:migrate". When I do, I get the error "Don''t know how to build task ''db:migrate''" I''ve been looking around at the files, and I see a reference to a
2006 Apr 12
2
unit testing with model inheritence
Having jotted down some models, with some inheritence I tried to run some unit tests. After waiting for rake test_units to run I got a rake of errors (if you''ll forgive the play on words). The errors were to do with unknown tables in the tear down stage. The unknown tables corresponded to sub-types where single table inheritence was used. In other words, these tables *shouldn''t* exist. Any thoughts...
2011 May 01
2
More detailed Test::Unit error report
Hi, I''m starting to use Test::Unit to create unit tests for my Rails Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The problem is that the output report is very simple and it is very difficult to discover where is the error. Test::Unit does not show the line number of the error and the Stack Trace printed using the --trace option does not help either.