Skip to content

Commit

Permalink
Move commands to commands package
Browse files Browse the repository at this point in the history
- Rename some file in main package to match the structs

Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
Signed-off-by: Joao Pereira <jdealmeidapereira@pivotal.io>
  • Loading branch information
joaopapereira authored and ameyer-pivotal committed Jan 14, 2019
1 parent 16ebfbe commit 0660a03
Show file tree
Hide file tree
Showing 24 changed files with 632 additions and 496 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions build_test.go → build_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (

var registryPort string

func TestBuild(t *testing.T) {
func TestBuildFactory(t *testing.T) {
color.NoColor = true
rand.Seed(time.Now().UTC().UnixNano())

Expand All @@ -48,10 +48,10 @@ func TestBuild(t *testing.T) {
h.ConfigurePackHome(t, packHome, registryPort)
defer h.CleanDefaultImages(t, registryPort)

spec.Run(t, "build", testBuild, spec.Report(report.Terminal{}))
spec.Run(t, "build_factory", testBuildFactory, spec.Report(report.Terminal{}))
}

func testBuild(t *testing.T, when spec.G, it spec.S) {
func testBuildFactory(t *testing.T, when spec.G, it spec.S) {
var subject *pack.BuildConfig
var outBuf bytes.Buffer
var errBuf bytes.Buffer
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions create_builder_test.go → builder_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ import (
h "github.com/buildpack/pack/testhelpers"
)

func TestCreateBuilder(t *testing.T) {
func TestBuilderFactory(t *testing.T) {
color.NoColor = true
if runtime.GOOS == "windows" {
t.Skip("create builder is not implemented on windows")
}
spec.Run(t, "create-builder", testCreateBuilder, spec.Parallel(), spec.Report(report.Terminal{}))
spec.Run(t, "builder_factory", testBuilderFactory, spec.Parallel(), spec.Report(report.Terminal{}))
}

func testCreateBuilder(t *testing.T, when spec.G, it spec.S) {
func testBuilderFactory(t *testing.T, when spec.G, it spec.S) {
when("#BuilderFactory", func() {
const (
defaultStack = "some.default.stack"
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0660a03

Please sign in to comment.