Merge pull request #74 from mhmxs/test-parallel

Make test execution parallel in server
This commit is contained in:
Laszlo Fogas 2019-10-08 15:52:21 +02:00 committed by GitHub
commit e2a7917c83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View file

@ -8,6 +8,8 @@ import (
)
func TestFetchGithub(t *testing.T) {
t.Parallel()
github, err := github.New(github.Opts{URL: "https://github.com"})
if err != nil {
t.Fatal(err)

View file

@ -23,6 +23,8 @@ import (
)
func TestMultilineEnvsubst(t *testing.T) {
t.Parallel()
b := procBuilder{
Repo: &model.Repo{},
Curr: &model.Build{
@ -57,6 +59,8 @@ pipeline:
}
func TestMultiPipeline(t *testing.T) {
t.Parallel()
b := procBuilder{
Repo: &model.Repo{},
Curr: &model.Build{},
@ -89,6 +93,8 @@ pipeline:
}
func TestDependsOn(t *testing.T) {
t.Parallel()
b := procBuilder{
Repo: &model.Repo{},
Curr: &model.Build{},
@ -133,6 +139,8 @@ depends_on:
}
func TestRunsOn(t *testing.T) {
t.Parallel()
b := procBuilder{
Repo: &model.Repo{},
Curr: &model.Build{},
@ -167,6 +175,8 @@ runs_on:
}
func TestBranchFilter(t *testing.T) {
t.Parallel()
b := procBuilder{
Repo: &model.Repo{},
Curr: &model.Build{Branch: "dev"},
@ -211,6 +221,8 @@ pipeline:
}
func TestZeroSteps(t *testing.T) {
t.Parallel()
build := &model.Build{Branch: "dev"}
b := procBuilder{
@ -243,6 +255,8 @@ pipeline:
}
func TestZeroStepsAsMultiPipelineDeps(t *testing.T) {
t.Parallel()
build := &model.Build{Branch: "dev"}
b := procBuilder{
@ -289,6 +303,8 @@ depends_on: [ zerostep ]
}
func TestZeroStepsAsMultiPipelineTransitiveDeps(t *testing.T) {
t.Parallel()
build := &model.Build{Branch: "dev"}
b := procBuilder{
@ -341,6 +357,8 @@ depends_on: [ shouldbefiltered ]
}
func TestTree(t *testing.T) {
t.Parallel()
build := &model.Build{}
b := procBuilder{