Page MenuHomePhabricator

Add a Go unit test engine with race detection (through go and godep).
AbandonedPublic

Authored by eMxyzptlk on Apr 28 2015, 7:34 PM.
Tags
None
Referenced Files
F13146880: D12598.diff
Fri, May 3, 10:49 AM
F13135865: D12598.diff
Thu, May 2, 11:07 AM
Unknown Object (File)
Tue, Apr 30, 1:10 AM
Unknown Object (File)
Sun, Apr 28, 6:03 AM
Unknown Object (File)
Thu, Apr 25, 12:45 AM
Unknown Object (File)
Thu, Apr 11, 8:35 AM
Unknown Object (File)
Wed, Apr 10, 1:57 AM
Unknown Object (File)
Mar 29 2024, 11:01 PM

Details

Reviewers
None
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T6867: Add linter and unit test engine for Go(lang)
Summary

This Differential adds two new unit engines both are for Golang and both uses
ArcanistGoTestResultParser to parse the result. They run the tests with the -race flag.

Depends on D12537, D12546

Test Plan

Create a new repository with the following .arcconfig:

{
    "unit.engine": "GoTestRaceEngine"
}

Create arc_test.go

package test

import "testing"

func TestShouldNotPassRaceTest(t *testing.T) {
        var myString string

        go func() {
                myString = "hello"
        }()

        go func() {
                myString = "bye"
        }()
}

Now, run arc unit

Diff Detail

Event Timeline

eMxyzptlk retitled this revision from to Add a Go unit test engine with race detection (through go and godep)..
eMxyzptlk updated this object.
eMxyzptlk edited the test plan for this revision. (Show Details)
eMxyzptlk added a reviewer: Blessed Reviewers.
eMxyzptlk added subscribers: epriestley, ox.

D12546 is broken and must be fixed and merged here.

eMxyzptlk edited edge metadata.
  • send the stderr before the stdout so we could parse the race condition
  • Merge branch 'go-unit-race-engine' into go-race-engine