From 75c3e847447b97343fbd1ba7a985866a8c0b4327 Mon Sep 17 00:00:00 2001 From: u2ix Date: Sun, 23 Oct 2011 08:10:09 -0700 Subject: [PATCH] Updated Testing (textile) --- Testing.textile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Testing.textile b/Testing.textile index 05cfe31..468e275 100644 --- a/Testing.textile +++ b/Testing.textile @@ -77,7 +77,8 @@ RAILS_ENV=selenium cucumber -p selenium features/my_feature.feature -If you encounter problems runnig selenium tests, look at the _problems with selenium tests_ section below. +If you encounter problems runnig selenium tests, look at the _Problems with cucumber selenium tests_ section below. + h2. Running the tests headless All tests will run on a headless setup except for the selenium tests. They will need a webbrowser which will need a running X-server. @@ -118,12 +119,15 @@ and Firefox will pop up and run the suite. If this does not work, you can run th http://localhost:3000/selenium/ in your browser of choice. -.h2 Problems with cucumber selenium tests -.h3 Tests doesn't start +h2. Problems with cucumber selenium tests + +h3. Tests doesn't start + Firefox 3.x is required to run the selenium tests properly. It's also recommanded to use an english version, to avoid problems due to the locale. You can get an old version of firefox "here":http://www.mozilla.org/en-US/firefox/all-older.html. -.h3 Sqlite3 Lock exceptions +h3. Sqlite3 Lock exceptions + In the default settings sqlite locks the db immediately. This behavior can cause problems with the fast executing online tests. Add a timeout to the database.yml configuration file to avoid these errors. For example: