mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 17:34:22 +01:00
Updated Testing (textile)
parent
2e813e9cab
commit
75c3e84744
1 changed files with 8 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue