aboutsummaryrefslogtreecommitdiffstats
path: root/library/go/test/yatest/env_test.go
blob: e3ee8156e306c2516f952524ed6da439f720540a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package yatest

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestContextParameters(t *testing.T) {
	val, ok := BuildFlag("AUTOCHECK")
	if ok {
		assert.Equal(t, "yes", val)
	} else {
		_, ok = BuildFlag("TESTS_REQUESTED")
		assert.Equal(t, true, ok)
	}

	assert.Equal(t, "library/go/test/yatest/gotest", ProjectPath())
}