relaxdiego/redmine_backlogs — Issue #304: About Testing
Author: mikoto20000
Created: 2011-10-25 04:45:27+00:00
State: open

I would like to run test code for backlogs plugin.I setup test environment with following description.

http://www.redminebacklogs.net/en/developers/

The I got following result

```
# rake redmine:backlogs:rcov --trace
/usr/bin/ruby -I "/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/lib:lib" -S rcov --rails --text-report --include-file vendor\/plugins\/redmine_backlogs --exclude config\/,features\/.+\/,^app\/,^lib\/,
osx\/objc,gems\/ -o "coverage" "/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/cucumber" -- --no-color
(in /opt/alminium)
** Invoke redmine:backlogs:rcov (first_time)
** Invoke redmine:backlogs:rcov:all (first_time)
** Execute redmine:backlogs:rcov:all
** Invoke redmine:backlogs:rcov:cucumber (first_time)
** Execute redmine:backlogs:rcov:cucumber
WARNING: No DRb server is running. Running features locally:
WARNING: You have set Rails' config.cache_classes to false (most likely in config/environments/cucumber.rb). This setting is known to break Cucumber's use_transactional_fixtures method. Set config
.cache_classes to true if you want to use transactional fixtures. For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165.
no such file to load -- timecop (MissingSourceFile)
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/alminium/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/opt/alminium/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/opt/alminium/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/opt/alminium/features/step_definitions/_given_steps.rb:2
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/alminium/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/opt/alminium/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/opt/alminium/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/rb_support/rb_language.rb:141:in `load_code_file'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:108:in `load_code_file'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:100:in `load_code_files'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `each'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `load_code_files'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:56:in `execute!'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:25:in `execute'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/bin/cucumber:8
/usr/lib/ruby/gems/1.8/gems/rcov-0.9.11/bin/rcov:516:in `load'
/usr/lib/ruby/gems/1.8/gems/rcov-0.9.11/bin/rcov:516
/usr/bin/rcov:19:in `load'
/usr/bin/rcov:19
Using the default profile...
+----------------------------------------------------+-------+-------+--------+
| File | Lines | LOC | COV |
+----------------------------------------------------+-------+-------+--------+
|/usr/lib/ruby/1.8/base64.rb | 133 | 40 | 40.0% |
|/usr/lib/ruby/1.8/benchmark.rb | 572 | 189 | 35.4% |
|/usr/lib/ruby/1.8/bigdecimal/util.rb | 65 | 40 | 22.5% |

..skip..

|/usr/lib/ruby/site_ruby/1.8/RMagick.rb | 1962 | 1508 | 29.8% |
|vendor/plugins/redmine_backlogs/config/routes.rb | 46 | 35 | 100.0% |
|...r/plugins/redmine_backlogs/lib/backlogs_hooks.rb | 220 | 167 | 6.6% |
|...ins/redmine_backlogs/lib/backlogs_issue_patch.rb | 241 | 169 | 19.5% |
|...mine_backlogs/lib/backlogs_issue_status_patch.rb | 30 | 25 | 52.0% |
|...ns/redmine_backlogs/lib/backlogs_merged_array.rb | 92 | 77 | 20.8% |
|...ine_backlogs/lib/backlogs_my_controller_patch.rb | 33 | 28 | 57.1% |
|...s/redmine_backlogs/lib/backlogs_project_patch.rb | 174 | 135 | 26.7% |
|...ins/redmine_backlogs/lib/backlogs_query_patch.rb | 144 | 103 | 35.9% |
|...s/redmine_backlogs/lib/backlogs_tracker_patch.rb | 25 | 20 | 65.0% |
|...gins/redmine_backlogs/lib/backlogs_user_patch.rb | 48 | 38 | 31.6% |
|...plugins/redmine_backlogs/lib/backlogs_version.rb | 28 | 25 | 16.0% |
|...s/redmine_backlogs/lib/backlogs_version_patch.rb | 45 | 36 | 52.8% |
+----------------------------------------------------+-------+-------+--------+
|Total | 31928 | 18744 | 29.2% |
+----------------------------------------------------+-------+-------+--------+
29.2% 104 file(s) 31928 Lines 18744 LOC
rake aborted!
Command failed with status (1): [/usr/bin/ruby -I "/usr/lib/ruby/gems/1.8/g...]
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:994:in `sh'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1009:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1009:in `sh'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1093:in `sh'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/lib/cucumber/rake/task.rb:72:in `run'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.5/lib/cucumber/rake/task.rb:142:in `define_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'
/opt/alminium/vendor/plugins/redmine_backlogs/lib/tasks/rcov.rake:21
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:633:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:633:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
```
I'm not sure test is passed or not. What should I do for checking the test result.
Or test is failed by something?

BTW, gem's are
```
autotest-rails (4.1.1)
capybara (0.3.5)
cucumber (0.8.5)
cucumber-rails (0.3.2)
ffi (1.0.9)
gherkin (2.1.5)
rcov (0.9.11)
redgreen (1.2.2)
rspec (1.3.1)
rspec-rails (1.3.3)
selenium-webdriver (2.9.1)
spork (0.8.5)
ZenTest (4.5.0)
```

regards,