コード例 #1
0
ファイル: SpecFlowAliases.cs プロジェクト: SharpeRAD/Cake
        public static void SpecFlowTestExecutionReport(
            this ICakeContext context,
            Action <ICakeContext> action,
            FilePath projectFile,
            SpecFlowTestExecutionReportSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (settings == null)
            {
                settings = new SpecFlowTestExecutionReportSettings();
            }

            // Create the DotCover analyser.
            var runner = new SpecFlowTestExecutionReporter(
                context.FileSystem, context.Environment,
                context.ProcessRunner, context.Globber);

            // Run DotCover analyse.
            runner.Run(context, action, projectFile, settings);
        }
コード例 #2
0
        protected override void RunTool()
        {
            var tool = new SpecFlowTestExecutionReporter(FileSystem, Environment, ProcessRunner, Globber);

            tool.Run(Context, Action, ProjectFile, Settings);
        }