```ruby
begin
  require 'simplecov'
  if ENV['COVERAGE']
    SimpleCov.start do
      add_filter "/spec/"
    end
  end
rescue LoadError
end

require 'minitest/spec'
require 'minitest/autorun'
```

Add simplecov filter for vendor directory
user
```ruby
begin
  require 'simplecov'
  if ENV['COVERAGE']
    SimpleCov.start do
      add_filter '/spec/'
      add_filter '/vendor/'
    end
  end
rescue LoadError
end

require 'minitest/spec'
require 'minitest/autorun'
```
assistant