skip with message on tests

This commit is contained in:
Alexander Meindl 2023-11-26 17:28:11 +01:00
parent b571dadde8
commit 44b0f73c1e
3 changed files with 6 additions and 5 deletions

View File

@ -16,6 +16,7 @@ if File.file? File.expand_path './.enable_dev', __dir__
gem 'debug'
gem 'marginalia'
gem 'memory_profiler'
gem 'ruby-lsp'
end
end
@ -43,7 +44,7 @@ end
# (this is used to not create conflicts with other plugins)
if File.file? File.expand_path './.enable_test', __dir__
group :development, :test do
gem 'active_record_doctor'
# gem 'active_record_doctor'
gem 'bullet'
gem 'rails_best_practices', require: false
end

View File

@ -76,7 +76,7 @@ class WelcomeControllerTest < Additionals::ControllerTest
end
def test_show_index_with_help_menu
skip if AdditionalsPlugin.active_hrm?
skip 'not tested if hrm is active' if AdditionalsPlugin.active_hrm?
with_plugin_settings 'additionals', remove_help: 0 do
@request.session[:user_id] = 1
@ -87,7 +87,7 @@ class WelcomeControllerTest < Additionals::ControllerTest
end
def test_show_index_without_help_menu
skip if AdditionalsPlugin.active_hrm?
skip 'not tested if hrm is active' if AdditionalsPlugin.active_hrm?
with_plugin_settings 'additionals', remove_help: 1 do
@request.session[:user_id] = 1

View File

@ -21,7 +21,7 @@ class JavascriptLibraryTest < Additionals::IntegrationTest
:queries
def test_not_loaded_chart_css_library
skip if AdditionalsPlugin.active_reporting?
skip 'not tested if reporting is active' if AdditionalsPlugin.active_reporting?
log_user 'admin', 'admin'
get '/'
@ -31,7 +31,7 @@ class JavascriptLibraryTest < Additionals::IntegrationTest
end
def test_not_loaded_chart_js_library
skip if AdditionalsPlugin.active_reporting?
skip 'not tested if reporting is active' if AdditionalsPlugin.active_reporting?
log_user 'admin', 'admin'
get '/'