Skip to content
This repository was archived by the owner on Dec 21, 2018. It is now read-only.

libkermit/compose-check

Repository files navigation

Libkermit

GoDoc Build Status Go Report Card License

When libkermit/compose meet with go-check.

Note: This is experimental and not even implemented yet. You are on your own right now

Package compose

This package map the compose package but takes a *check.C struct on all methods. The idea is to write even less. Let's write the same example as above.

package yours

import (
    "testing"

	"github.com/go-check/check"
    "github.com/libkermit/compose-check"
)

// Hook up gocheck into the "go test" runner
func Test(t *testing.T) { check.TestingT(t) }

type CheckSuite struct{}

var _ = check.Suite(&CheckSuite{})

func (s *CheckSuite) TestItMyFriend(c *check.C) {
    project := compose.CreateProject(c, "simple", "./assets/simple.yml")
    project.Start(c)

    // Do your stuff

    project.Stop(c)
}

Other packages to come

  • suite : functions and structs to setup tests suites.

About

🐙 When libkermit/compose meet with go-check

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published