-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: | ||
|
||
Scenario: | ||
Given SimpleCov for Minitest is configured with: | ||
""" | ||
require 'simplecov' | ||
SimpleCov.start | ||
""" | ||
|
||
When I open the coverage report generated with `bundle exec rake minitest` | ||
Then I should see the groups: | ||
| name | coverage | files | | ||
| All Files | 80.0% | 1 | | ||
|
||
And I should see the source files: | ||
| name | coverage | | ||
| lib/faked_project/some_class.rb | 80.0 % | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "test_helper" | ||
require "faked_project/some_class" | ||
|
||
class SomeTest < Minitest::Test | ||
def setup | ||
@instance = SomeClass.new("foo") | ||
end | ||
|
||
def test_reverse | ||
assert_equal "oof", @instance.reverse | ||
end | ||
|
||
def test_comparison | ||
assert @instance.compare_with("foo") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "bundler/setup" | ||
|
||
# We're injecting simplecov_config via aruba in cucumber here | ||
# depending on what the test case is... | ||
begin | ||
require File.join(File.dirname(__FILE__), "simplecov_config") | ||
rescue LoadError | ||
warn "No SimpleCov config file found!" | ||
end | ||
|
||
require "minitest/autorun" |