Permalink
Browse files

renamed ruby to simplecov

  • Loading branch information...
markbates committed Mar 28, 2017
1 parent 9db5e50 commit 5dc6994452a8bde32ceeabd130527a136c127c6d
@@ -28,3 +28,4 @@ man/*
!man/*.md
.vscode/
artifacts/
.idea/
@@ -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"
)
@@ -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")
@@ -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": ""
File renamed without changes.
@@ -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)
@@ -1,4 +1,4 @@
package ruby
package simplecov

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

import (
"testing"
@@ -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)

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

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

import (
"testing"
@@ -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)

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

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

import (
"testing"

0 comments on commit 5dc6994

Please sign in to comment.