github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/test/executor/scenario_test.go (about)

     1  //go:build integration
     2  
     3  package executor
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/filecoin-project/bacalhau/pkg/docker"
     9  	"github.com/filecoin-project/bacalhau/pkg/model"
    10  	"github.com/filecoin-project/bacalhau/pkg/test/scenario"
    11  )
    12  
    13  func TestScenarios(t *testing.T) {
    14  	for name, testCase := range scenario.GetAllScenarios() {
    15  		t.Run(
    16  			name,
    17  			func(t *testing.T) {
    18  				docker.MaybeNeedDocker(t, testCase.Spec.Engine == model.EngineDocker)
    19  				RunTestCase(t, testCase)
    20  			},
    21  		)
    22  	}
    23  }