Пример #1
0
        public void NoSourceDirectory()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("NoSourceDirectory");

            I.Expect(actual.Success).ToBeFalse();
            I.Expect(actual.Output).ToContain("task was not given a value for the required parameter \"SourceDirectory\"");
        }
Пример #2
0
        public void ConfigurationMerge()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("Configuration", "/p:Configuration=Release");

            I.Expect(actual.Success).ToBeFalse();
            I.Expect(actual.ErrorCount).ToBe(9);
        }
Пример #3
0
        public void Spec06()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("OutputOverride");

            I.Expect(actual.Success).ToBeFalse();
            I.Expect(actual.ErrorCount).ToBe(12);
        }
Пример #4
0
        public void LinkedSettings()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("LinkedSettings");

            I.Expect(actual.Success).ToBeTrue();
            I.Expect(actual.OutputType).ToBe(Output.Warning);
            I.Expect(actual.ProcessedFileCount).ToBe(6);
        }
Пример #5
0
        public void HtmlReport()
        {
            var actual     = JSLintTaskHelper.ExecuteMSBuildProject("HtmlReport");
            var reportPath = Path.Combine(JSLintTaskHelper.ProjectRoot, @"Scripts\JSLintReport.html");

            I.Expect(File.Exists(reportPath)).ToBeTrue();

            File.Delete(reportPath);
        }
Пример #6
0
        public void Warnings()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("Warnings");

            I.Expect(actual.Success).ToBeTrue();
            I.Expect(actual.ErrorCount).ToBe(9);
            I.Expect(actual.ErrorFileCount).ToBe(3);
            I.Expect(actual.ProcessedFileCount).ToBe(5);
        }
Пример #7
0
        public void SourceFiles()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("SourceFiles");

            I.Expect(actual.Success).ToBeFalse();
            I.Expect(actual.ErrorCount).ToBe(9);
            I.Expect(actual.ErrorFileCount).ToBe(3);
            I.Expect(actual.ProcessedFileCount).ToBe(3);
        }
Пример #8
0
        public void Spec01()
        {
            var actual = JSLintTaskHelper.ExecuteMSBuildProject("Errors");

            I.Expect(actual.Success).ToBeFalse();
            I.Expect(actual.ErrorCount).ToBe(12);
            I.Expect(actual.ErrorFileCount).ToBe(3);
            I.Expect(actual.ProcessedFileCount).ToBe(5);
        }