You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Within the main Shopify repo, we have several custom cops we'd like to create tests for with Minitest. Having TestHelper and AssertionHelper included in the public release of the gem would be greatly helpful for us so we can take advantage of the functionality built here. They're currently inaccessible as they're located inside the test directory.
RuboCop has some RSpec helpers which are included in the gem, like ExpectOffense. However, it seems like you've already done the work to port it to Minitest, which is exactly what we need.
The text was updated successfully, but these errors were encountered:
…or custom cop development
Resolvesrubocop#155.
This PR provides `assert_offense`, `assert_correction`, and `assert_no_offenses`
for custom Minitest cop development.
Developers can use these APIs by requesting the following in your cop's test code:
```ruby
require 'rubocop/minitest/support'
```
koic
added a commit
to koic/rubocop-minitest
that referenced
this issue
Nov 18, 2021
…or custom cop development
Resolvesrubocop#155.
This PR provides `assert_offense`, `assert_correction`, and `assert_no_offenses`
for custom Minitest cop development.
Developers can use these APIs by requesting the following in custom Minitest cop test code:
```ruby
require 'rubocop/minitest/support'
```
…or custom cop development
Resolvesrubocop#155.
This PR provides `assert_offense`, `assert_correction`, and `assert_no_offenses`
testing APIs for custom Minitest cop development.
Developers can use these APIs by requesting the following in custom Minitest cop test code:
```ruby
require 'rubocop/minitest/support'
```
Is your feature request related to a problem? Please describe.
Within the main Shopify repo, we have several custom cops we'd like to create tests for with Minitest. Having
TestHelper
andAssertionHelper
included in the public release of the gem would be greatly helpful for us so we can take advantage of the functionality built here. They're currently inaccessible as they're located inside thetest
directory.Describe the solution you'd like
Have
TestHelper
andAssertionHelper
bundled in the gem.Describe alternatives you've considered
RuboCop has some RSpec helpers which are included in the gem, like
ExpectOffense
. However, it seems like you've already done the work to port it to Minitest, which is exactly what we need.The text was updated successfully, but these errors were encountered: