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
Unknown Object (File)
Thu, Apr 11, 8:35 AM
Unknown Object (File)
Wed, Apr 10, 1:57 AM
Unknown Object (File)
Fri, Mar 29, 11:01 PM
Unknown Object (File)
Sun, Mar 24, 1:19 AM
Unknown Object (File)
Feb 18 2024, 9:50 AM
Unknown Object (File)
Feb 1 2024, 10:42 PM
Unknown Object (File)
Jan 12 2024, 8:38 AM
Unknown Object (File)
Dec 14 2023, 1:23 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