search for: test_unit

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

Did you mean: test_init
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 on Rails: Co...
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...
2004 Sep 10
0
1.0 source candidate
...============================= RCS file: /cvsroot/flac/flac/src/Makefile.am,v retrieving revision 1.4 diff -u -r1.4 Makefile.am --- src/Makefile.am 2001/06/08 00:13:21 1.4 +++ src/Makefile.am 2001/07/21 01:58:17 @@ -19,8 +19,4 @@ XMMS_DIRS = plugin_xmms endif -if DEBUG -DEBUG_DIRS = test_streams test_unit -endif - -SUBDIRS = libFLAC flac metaflac $(XMMS_DIRS) $(DEBUG_DIRS) +SUBDIRS = libFLAC flac metaflac $(XMMS_DIRS) test_streams test_unit Index: src/flac/Makefile.am =================================================================== RCS file: /cvsroot/flac/flac/src/flac/Makefile.am,v retrieving re...
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 N...
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 directory ? thanks a lot, Amir. -- Posted via http://www.ruby-forum.com/.
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 fr...
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 ge...
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]$ ra...
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_un...
2004 Sep 10
2
-lm ordering
...- src/test_streams/Makefile.am.orig Tue Aug 28 16:00:17 2001 +++ src/test_streams/Makefile.am Tue Aug 28 16:00:28 2001 @@ -20,6 +20,6 @@ noinst_PROGRAMS = test_streams test_streams_SOURCES = \ main.c -test_streams_LDFLAGS = -lm +test_streams_LDADD = -lm CLEANFILES = $(wildcard *.raw) --- src/test_unit/Makefile.am.orig Tue Aug 28 16:21:54 2001 +++ src/test_unit/Makefile.am Tue Aug 28 16:22:05 2001 @@ -19,8 +19,7 @@ INCLUDES = -I$(top_srcdir)/src/libFLAC/include noinst_PROGRAMS = test_unit -test_unit_LDFLAGS = -lm -test_unit_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la +test_unit_LDADD = $(t...
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 thought...
2011 May 01
2
More detailed Test::Unit error report
.../rake-0.8.7/lib/rake.rb:1094:in `sh'' /home/gustavo/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1029:in `ruby'' /home/gustavo/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1094:in `ruby'' /home/gustavo/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/test_unit/testing.rake:26:in `block (2 levels) in define'' /home/gustavo/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1112:in `verbose'' /home/gustavo/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/test_unit/testing.rake:11:in `block in define'' /home/gustavo/.rvm/ge...