Beispiel #1
0
 public ExecutionResultSteps(HooksDriver hooksDriver, VSTestExecutionDriver vsTestExecutionDriver, TestProjectFolders testProjectFolders, TestRunLogDriver testRunLogDriver)
 {
     _hooksDriver           = hooksDriver;
     _vsTestExecutionDriver = vsTestExecutionDriver;
     _testProjectFolders    = testProjectFolders;
     _testRunLogDriver      = testRunLogDriver;
 }
Beispiel #2
0
 public SolutionWriteToDiskDriver(SolutionDriver solutionDriver, SolutionWriter solutionWriter, TestProjectFolders testProjectFolders, NuGetRestorerFactory nugetRestorerFactory)
 {
     _solutionDriver       = solutionDriver;
     _solutionWriter       = solutionWriter;
     _testProjectFolders   = testProjectFolders;
     _nugetRestorerFactory = nugetRestorerFactory;
 }
Beispiel #3
0
        public SolutionDriver(
            NuGetConfigGenerator nuGetConfigGenerator,
            TestRunConfiguration testRunConfiguration,
            ProjectBuilderFactory projectBuilderFactory,
            Folders folders,
            TestProjectFolders testProjectFolders,
            SolutionNamingConvention solutionNamingConvention)
        {
            _nuGetConfigGenerator  = nuGetConfigGenerator;
            _testRunConfiguration  = testRunConfiguration;
            _projectBuilderFactory = projectBuilderFactory;
            _folders = folders;
            _solutionNamingConvention = solutionNamingConvention;
            NuGetSources = new List <NuGetSource>
            {
                new NuGetSource("LocalSpecFlowDevPackages", _folders.NuGetFolder),
                new NuGetSource("SpecFlow CI", "https://www.myget.org/F/specflow/api/v3/index.json"),
                new NuGetSource("SpecFlow Unstable", "https://www.myget.org/F/specflow-unstable/api/v3/index.json")
            };

            if (testRunConfiguration.UnitTestProvider == UnitTestProvider.SpecRun)
            {
                NuGetSources.Add(new NuGetSource("SpecFlow CI", "https://www.myget.org/F/specflow/api/v3/index.json"));
                NuGetSources.Add(new NuGetSource("SpecFlow Unstable", "https://www.myget.org/F/specflow-unstable/api/v3/index.json"));
            }
            if (testRunConfiguration.TargetFramework == TargetFramework.Net50 && testRunConfiguration.UnitTestProvider == UnitTestProvider.NUnit3)
            {
                //NUnit is not supporting .NET 5 in the latest release (3.12.0), so add the myget feed for the pre-release versions
                NuGetSources.Add(new NuGetSource("NUnit Dev", "https://www.myget.org/F/nunit/api/v3/index.json"));
            }

            _solution = new Solution(SolutionName);
            testProjectFolders.PathToSolutionFile = Path.Combine(_folders.FolderToSaveGeneratedSolutions, SolutionName, $"{SolutionName}.sln");
        }
Beispiel #4
0
        public SolutionDriver(
            NuGetConfigGenerator nuGetConfigGenerator,
            TestRunConfiguration testRunConfiguration,
            ProjectBuilderFactory projectBuilderFactory,
            Folders folders,
            TestProjectFolders testProjectFolders,
            SolutionNamingConvention solutionNamingConvention)
        {
            _nuGetConfigGenerator  = nuGetConfigGenerator;
            _testRunConfiguration  = testRunConfiguration;
            _projectBuilderFactory = projectBuilderFactory;
            _folders = folders;
            _solutionNamingConvention = solutionNamingConvention;
            NuGetSources = new List <NuGetSource>
            {
                new NuGetSource("LocalSpecFlowDevPackages", _folders.NuGetFolder)
            };

            if (testRunConfiguration.UnitTestProvider == UnitTestProvider.SpecRun)
            {
                NuGetSources.Add(new NuGetSource("SpecFlow CI", "https://www.myget.org/F/specflow/api/v3/index.json"));
                NuGetSources.Add(new NuGetSource("SpecFlow Unstable", "https://www.myget.org/F/specflow-unstable/api/v3/index.json"));
            }

            _solution = new Solution(SolutionName);
            testProjectFolders.PathToSolutionFile = Path.Combine(_folders.FolderToSaveGeneratedSolutions, SolutionName, $"{SolutionName}.sln");
        }
Beispiel #5
0
 public Hooks(ScenarioContext scenarioContext, CurrentVersionDriver currentVersionDriver, RuntimeInformationProvider runtimeInformationProvider, IUnitTestRuntimeProvider unitTestRuntimeProvider, TestProjectFolders testProjectFolders)
 {
     _scenarioContext            = scenarioContext;
     _currentVersionDriver       = currentVersionDriver;
     _runtimeInformationProvider = runtimeInformationProvider;
     _unitTestRuntimeProvider    = unitTestRuntimeProvider;
     _testProjectFolders         = testProjectFolders;
 }
 public ProjectBuilderFactory(TestProjectFolders testProjectFolders, TestRunConfiguration testRunConfiguration, CurrentVersionDriver currentVersionDriver, ConfigurationGeneratorFactory configurationGeneratorFactory, BindingsGeneratorFactory bindingsGeneratorFactory, FeatureFileGenerator featureFileGenerator,
                              Folders folders)
 {
     _testProjectFolders            = testProjectFolders;
     _testRunConfiguration          = testRunConfiguration;
     _currentVersionDriver          = currentVersionDriver;
     _configurationGeneratorFactory = configurationGeneratorFactory;
     _bindingsGeneratorFactory      = bindingsGeneratorFactory;
     _featureFileGenerator          = featureFileGenerator;
     _folders = folders;
 }
 public SolutionDriver(NuGetConfigGenerator nuGetConfigGenerator, TestRunConfiguration testRunConfiguration, ProjectBuilderFactory projectBuilderFactory, Folders folders, NuGet nuGet, TestProjectFolders testProjectFolders, Compiler compiler, IOutputWriter outputWriter)
 {
     _nuGetConfigGenerator  = nuGetConfigGenerator;
     _testRunConfiguration  = testRunConfiguration;
     _projectBuilderFactory = projectBuilderFactory;
     _folders            = folders;
     _nuGet              = nuGet;
     _testProjectFolders = testProjectFolders;
     _compiler           = compiler;
     _outputWriter       = outputWriter;
     NuGetSources        = new List <NuGetSource>
     {
         new NuGetSource("LocalSpecFlowDevPackages", _folders.NuGetFolder),
         new NuGetSource("SpecFlow CI", "https://www.myget.org/F/specflow/api/v3/index.json")
     };
     _solution = new Solution(SolutionName);
     testProjectFolders.PathToSolutionFile = Path.Combine(_folders.FolderToSaveGeneratedSolutions, SolutionName, $"{SolutionName}.sln");
 }
Beispiel #8
0
 public ProjectsDriver(SolutionDriver solutionDriver, ProjectBuilderFactory projectBuilderFactory, TestProjectFolders testProjectFolders)
 {
     _solutionDriver        = solutionDriver;
     _projectBuilderFactory = projectBuilderFactory;
     _testProjectFolders    = testProjectFolders;
 }
Beispiel #9
0
 public CucumberMessagesDriver(TestProjectFolders testProjectFolders)
 {
     _testProjectFolders = testProjectFolders;
 }
Beispiel #10
0
 public CucumberMessagesFileDriver(CucumberMessagesDriver cucumberMessagesDriver, TestProjectFolders testProjectFolders)
 {
     _cucumberMessagesDriver = cucumberMessagesDriver;
     _testProjectFolders     = testProjectFolders;
 }
Beispiel #11
0
 public HooksDriver(TestProjectFolders testProjectFolders)
 {
     _testProjectFolders = testProjectFolders;
 }