Skip to content

Duplicate notifications when minitest/pride is required #160

@MatzFan

Description

@MatzFan

Guard shows a notification twice with a single test run if I include the line require 'minitest/pride' in a test file.

MRE:

Guardfile

guard :minitest do
  watch(%r{^test/(.*)/?test_(.*)\.rb$})
end

test/test_foo.rb

require 'minitest/autorun'
# require 'minitest/pride'

class FooTest < Minitest::Test
  def test_foo
    assert true
  end
end

The above runs as expected, but if I uncomment the require 'minitest/pride' line and save the file I get 2 notifications.

guard 2.19.1
guard-minitest 2.4.6
minitest 5.25.5

OS: LMDE 6 (based on Debian bookworm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions