Example #1
0
        /// <summary>
        /// Initializes NunitTask with default command line options for nunit V3.
        /// </summary>
        /// <param name="projectName">Unit test project name.</param>
        /// <returns>New instance of nunit task</returns>
        public static NUnitTask ForNunitV3(string projectName)
        {
            var task = new NUnitTask(projectName);

            task.AddNunitCommandLineOption("/labels=All")
            .AddNunitCommandLineOption("/trace=Verbose")
            .AddNunitCommandLineOption("/verbose");

            return(task);
        }
Example #2
0
        /// <summary>
        /// Initializes NunitTask with default command line options for nunit V2.
        /// </summary>
        /// <param name="projectName">Unit test project name.</param>
        /// <returns>New instance of nunit task</returns>
        public static NUnitTask ForNunitV2(string projectName)
        {
            var task = new NUnitTask(projectName);

            task.AddNunitCommandLineOption("/nodots")
            .AddNunitCommandLineOption("/labels")
            .AddNunitCommandLineOption("/noshadow");

            return(task);
        }