Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
renamed ruby to simplecov
  • Loading branch information
markbates committed Mar 29, 2017
1 parent 9db5e50 commit 5dc6994
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -28,3 +28,4 @@ man/*
!man/*.md
.vscode/
artifacts/
.idea/
4 changes: 2 additions & 2 deletions cmd/format-coverage.go
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"

"github.com/codeclimate/test-reporter/formatters"
"github.com/codeclimate/test-reporter/formatters/ruby"
"github.com/codeclimate/test-reporter/formatters/simplecov"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand All @@ -31,7 +31,7 @@ func (f CoverageFormatter) Save() error {
var in formatters.Formatter
_, err := os.Stat("coverage/.resultset.json")
if err == nil {
in = ruby.New("coverage/.resultset.json")
in = simplecov.New("coverage/.resultset.json")
}
if in == nil {
return errors.New("no coverage found to format")
Expand Down
2 changes: 1 addition & 1 deletion examples/codeclimate.json
Expand Up @@ -10,7 +10,7 @@
"environment": {
"gem_version": "2.6.10",
"package_version": "",
"pwd": "/go/src/github.com/codeclimate/test-reporter/ruby-test-reporter",
"pwd": "/go/src/github.com/codeclimate/test-reporter/simplecov-test-reporter",
"rails_root": "",
"reporter_version": "",
"simplecov_root": ""
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion formatters/report_test.go
Expand Up @@ -100,7 +100,7 @@ func Test_Report_JSON_Unmarshal(t *testing.T) {
r.NoError(err)

r.Equal(20, len(rep.SourceFiles))
r.Equal("/go/src/github.com/codeclimate/test-reporter/ruby-test-reporter", rep.Environment.PWD)
r.Equal("/go/src/github.com/codeclimate/test-reporter/simplecov-test-reporter", rep.Environment.PWD)

sf := rep.SourceFiles["lib/code_climate/test_reporter/client.rb"]
r.NotNil(sf)
Expand Down
@@ -1,4 +1,4 @@
package ruby
package simplecov

import (
"github.com/codeclimate/test-reporter/formatters"
Expand Down
@@ -1,4 +1,4 @@
package ruby
package simplecov

import (
"testing"
Expand All @@ -16,7 +16,7 @@ func Test_Format(t *testing.T) {

r := require.New(t)

rb := New("./ruby-example.json")
rb := New("./simplecov-example.json")
err := rb.Parse()
r.NoError(err)

Expand Down
File renamed without changes.
@@ -1,4 +1,4 @@
package ruby
package simplecov

import (
"encoding/json"
Expand Down
@@ -1,4 +1,4 @@
package ruby
package simplecov

import (
"testing"
Expand All @@ -9,7 +9,7 @@ import (
func Test_Parse(t *testing.T) {
r := require.New(t)

f := New("./ruby-example.json")
f := New("./simplecov-example.json")
err := f.Parse()
r.NoError(err)

Expand Down
@@ -1,4 +1,4 @@
package ruby
package simplecov

import (
"github.com/codeclimate/test-reporter/formatters"
Expand Down
@@ -1,4 +1,4 @@
package ruby
package simplecov

import (
"testing"
Expand Down

0 comments on commit 5dc6994

Please sign in to comment.