-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_test.go
More file actions
29 lines (23 loc) · 827 Bytes
/
test_test.go
File metadata and controls
29 lines (23 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package regression_retrieval
import (
"testing"
"github.com/src-d/regression-core"
"github.com/src-d/regression-retrieval/test"
"github.com/src-d/regression-retrieval/test/gitcollector"
"github.com/stretchr/testify/require"
)
// TestGitCollector
// runs regression comparison for remote:master remote:regression
// <expected> no errors occurred during tests execution
// <expected> GetResults returns true
func TestGitCollector(t *testing.T) {
config := regression.NewConfig()
config.BinaryCache = "binaries"
config.Versions = []string{"remote:regression", "remote:master"}
config.Repeat = 1
gitCollectorTest, err := test.NewTest(gitcollector.Kind, config)
require.NoError(t, err)
require.NoError(t, gitCollectorTest.Prepare())
require.NoError(t, gitCollectorTest.RunLoad())
gitCollectorTest.GetResults()
}