public bool RunScenario(ProjectItem projectItem, IScenarioBlock currentScenario, ScenarioOutlineExamplesRow examplesRow, IGherkinFileScope fileScope, bool debug)
        {
            var line = currentScenario.KeywordLine;

            if (examplesRow != null && examplesRow.BlockRelativeLine >= 0)
            {
                line += examplesRow.BlockRelativeLine;
            }
            return(RunInCurrentContext(VsxHelper.GetFileName(projectItem), debug, line));
        }
        public bool RunFeatures(ProjectItem projectItem, bool debug)
        {
            var fileName = VsxHelper.GetFileName(projectItem);

            if (fileName != null && fileName.EndsWith(".feature", StringComparison.InvariantCultureIgnoreCase))
            {
                return(RunInCurrentContext(fileName, debug));
            }

            return(RunCommand(debug ? "TestExplorer.DebugAllTestsInContext" : "TestExplorer.RunAllTestsInContext"));
        }
        public bool RunFeatures(ProjectItem projectItem, bool debug)
        {
            var fileName = VsxHelper.GetFileName(projectItem);

            if (fileName != null && fileName.EndsWith(".feature", StringComparison.InvariantCultureIgnoreCase))
            {
                return(RunFromCodeBehind(projectItem, GetFeatureCodeBehindLine, debug));
            }

            return(RunInCurrentContext(debug));
        }
Пример #4
0
 public bool RunScenario(ProjectItem projectItem, IScenarioBlock currentScenario, IGherkinFileScope fileScope,
                         bool debug)
 {
     return(RunInCurrentContext(VsxHelper.GetFileName(projectItem), debug, currentScenario.KeywordLine));
 }