Пример #1
0
        //FieldStat --coverage-path="../../../Data/Coverage Data/coverage_output" FieldStat.exe
        static void Main(string[] args)
        {
            MonoCovOptions options = new MonoCovOptions();
            options.ProcessArgs(args);

            // List of assemblies/executables or a directory containing executables.
            args = options.RemainingArguments;

            if (args.Length == 0 && options.applicationRepository == "")
            {
                options.DoHelp();
            }
            Console.WriteLine("app-repos: " + options.applicationRepository);
            Console.WriteLine("coveragePath: " + options.coveragePath);
            Console.WriteLine("filters: " + options.filters);
            Console.WriteLine("no-coderank: " + options.nocodeRank);
            Console.WriteLine("outputDir: " + options.outputDirectory);
            Console.WriteLine("args: " + string.Join(",", options.RemainingArguments));

            ParameterData data = new ParameterData();
            ExportData export = new ExportData(data.Results, options.outputDirectory);

            if (options.applicationRepository != "")
                data.LoadApplicationRepository(options.applicationRepository);
            else
                data.LoadAssemblies(args);

            if (options.filters != "")
                data.LoadFilters(options.filters.Split(';'));

            data.LoadCoverage(options.coveragePath);

            data.ComputeResults();
            export.ExportResults();
        }
Пример #2
0
        public FieldStatFrm()
        {
            InitializeComponent();
            m_parameterData = new ParameterData();
            m_export        = new ExportData(m_parameterData.Results, Application.StartupPath + "\\output");

            DoDataBinding();

            //m_parameterData.Results.AnalysisResults.DefaultView.s
            //m_dgResults.RowPrePaint += new DataGridViewRowPrePaintEventHandler(m_dgResults_RowPrePaint);
            m_dgResults.CellFormatting += new DataGridViewCellFormattingEventHandler(m_dgResults_CellFormatting);
            //m_dgResults.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }
Пример #3
0
        public FieldStatFrm()
        {
            InitializeComponent();
            m_parameterData = new ParameterData();
            m_export = new ExportData(m_parameterData.Results, Application.StartupPath +  "\\output");

            DoDataBinding();

            //m_parameterData.Results.AnalysisResults.DefaultView.s
            //m_dgResults.RowPrePaint += new DataGridViewRowPrePaintEventHandler(m_dgResults_RowPrePaint);
            m_dgResults.CellFormatting += new DataGridViewCellFormattingEventHandler(m_dgResults_CellFormatting);
            //m_dgResults.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }
Пример #4
0
        //FieldStat --coverage-path="../../../Data/Coverage Data/coverage_output" FieldStat.exe
        static void RunConsole(string[] args)
        {
            MonoCovOptions options = new MonoCovOptions();

            options.ProcessArgs(args);

            // List of assemblies/executables or a directory containing executables.
            args = options.RemainingArguments;

            if (args.Length == 0 && options.applicationRepository == "")
            {
                options.DoHelp();
            }
            Console.WriteLine("app-repos: " + options.applicationRepository);
            Console.WriteLine("coveragePath: " + options.coveragePath);
            Console.WriteLine("filters: " + options.filters);
            Console.WriteLine("no-coderank: " + options.nocodeRank);
            Console.WriteLine("outputDir: " + options.outputDirectory);
            Console.WriteLine("args: " + string.Join(",", options.RemainingArguments));

            ParameterData data   = new ParameterData();
            ExportData    export = new ExportData(data.Results, options.outputDirectory);

            if (options.applicationRepository != "")
            {
                data.LoadApplicationRepository(options.applicationRepository);
            }
            else
            {
                data.LoadAssemblies(args);
            }

            if (options.filters != "")
            {
                data.LoadFilters(options.filters.Split(';'));
            }

            data.LoadCoverage(options.coveragePath);

            data.ComputeResults();
            export.ExportResults();
        }