Skip to content

Commit

Permalink
Ensure simplecov is required first with MiniTest.
Browse files Browse the repository at this point in the history
Need to require simplecov in the setup of the Rake task, to force it to be
loaded before everything else.
  • Loading branch information
hainesr committed Feb 14, 2025
1 parent 7025f9e commit 1f1123b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013-2023 The University of Manchester, UK.
# Copyright (c) 2013-2025 The University of Manchester, UK.
#
# All rights reserved.
#
Expand Down Expand Up @@ -38,6 +38,7 @@ require 'rubocop/rake_task'
task default: :test

Minitest::TestTask.create do |test|
test.framework = 'require "simplecov"'
test.test_globs = 'test/**/*_test.rb'
end

Expand Down
3 changes: 1 addition & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013-2023 The University of Manchester, UK.
# Copyright (c) 2013-2025 The University of Manchester, UK.
#
# All rights reserved.
#
Expand Down Expand Up @@ -30,7 +30,6 @@
#
# Author: Robert Haines

require 'simplecov'
require 'minitest/autorun'

Minitest::Test.make_my_diffs_pretty!
Expand Down

0 comments on commit 1f1123b

Please sign in to comment.