Project

General

Profile

Actions

Bug #1741

closed

Test cannot be run in the standard way

Added by Greg Sutcliffe almost 12 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Tests are currently unable to be run without extra options:

root@testvm-gss:~/foreman# RAILS_ENV=test bundle exec rake db:migrate
(in /root/foreman)
rake aborted!
Test::Unit or MiniTest must be loaded *before* Mocha (use MOCHA_OPTIONS=skip_integration if you know what you are doing).
/root/foreman/Rakefile:1:in `require'
(See full trace by running task with --trace)

root@testvm-gss:~/foreman# RAILS_ENV=test bundle exec rake test
(in /root/foreman)
rake aborted!
Test::Unit or MiniTest must be loaded *before* Mocha (use MOCHA_OPTIONS=skip_integration if you know what you are doing).
/root/foreman/Rakefile:1:in `require'
(See full trace by running task with --trace)

If you add the option specified, it seems ok (but no idea what other things it will break):

MOCHA_OPTIONS=skip_integration RAILS_ENV=test bundle exec rake test
[test results]
Actions #1

Updated by Greg Sutcliffe about 8 years ago

  • Description updated (diff)
  • Status changed from New to Resolved

Wow this is old. Closing.

Actions

Also available in: Atom PDF