Updated Testing (textile)

u2ix 2011-10-23 08:10:09 -07:00
parent 2e813e9cab
commit 75c3e84744

@ -77,7 +77,8 @@ RAILS_ENV=selenium cucumber -p selenium features/my_feature.feature
</code>
</pre>
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:
<pre><code>