Skip to content

Add tests for the testcommon package - #104

Merged
beeradb merged 27 commits into
ddev:masterfrom
beeradb:testcommon-tests
Mar 30, 2017
Merged

beeradb merged 27 commits into
ddev:masterfrom
beeradb:testcommon-tests

Conversation

@beeradb

@beeradb beeradb commented Mar 27, 2017 •

Copy link
Copy Markdown
Contributor

The Problem:

This introduces test coverage for our testcommon package. It's pretty straightforward, I tried to cover all functionality currently in the package.

Automation Overview:

This is 100% automation. Current test coverage numbers (from a starting point of 0%):

github.com/drud/ddev/pkg/testcommon/testcommon.go:24:	archivePath	100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:29:	Prepare		92.9%
github.com/drud/ddev/pkg/testcommon/testcommon.go:62:	Chdir		100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:67:	Cleanup		100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:73:	CleanupDir	100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:79:	CreateTmpDir	75.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:90:	Chdir		83.3%
github.com/drud/ddev/pkg/testcommon/testcommon.go:103:	RandString	100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:111:	init		100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:117:	CaptureStdOut	100.0%
github.com/drud/ddev/pkg/testcommon/testcommon.go:139:	setLetterBytes	100.0%
total:							(statements)	93.9%

Related Issue Link(s):

#85

beeradb added 22 commits March 29, 2017 13:17
@beeradb beeradb added this to the v0.2 milestone Mar 29, 2017
@tannerjfco

Copy link
Copy Markdown
Contributor

My only feedback here was to fix a couple function comments, so I went ahead and pushed those. This LGTM 👍

@beeradb
beeradb merged commit 3a959d0 into ddev:master Mar 30, 2017
@beeradb
beeradb deleted the testcommon-tests branch March 30, 2017 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants