Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle -coverprofile flag #355

Merged
merged 8 commits into from
Jul 21, 2017
Merged

Handle -coverprofile flag #355

merged 8 commits into from
Jul 21, 2017

Conversation

AlexeySoshin
Copy link
Contributor

Fixes #346

Copy link
Owner

@onsi onsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @AlexeySoshin take a look at my comment and let me know if you'll have the bandwidth to fix.

@@ -473,7 +489,7 @@ func (t *TestRunner) run(cmd *exec.Cmd, completions chan RunResult) RunResult {
func (t *TestRunner) combineCoverprofiles() {
profiles := []string{}
for cpu := 1; cpu <= t.numCPU; cpu++ {
coverFile := fmt.Sprintf("%s.coverprofile.%d", t.Suite.PackageName, cpu)
coverFile := fmt.Sprintf("%s%s.%d", t.Suite.PackageName, CoverProfileSuffix, cpu)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this works any more, no?

If you don't use the default name combineCoverprofiles won't find the cover profile you asked for. have you tried running with ginkgo -p -coverprofile="foo" to see it work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@onsi Done

@onsi onsi merged commit 43392d5 into onsi:master Jul 21, 2017
@onsi
Copy link
Owner

onsi commented Jul 21, 2017

sweet! LGTM!

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.

None yet

2 participants