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\""); }
public void ConfigurationMerge() { var actual = JSLintTaskHelper.ExecuteMSBuildProject("Configuration", "/p:Configuration=Release"); I.Expect(actual.Success).ToBeFalse(); I.Expect(actual.ErrorCount).ToBe(9); }
public void Spec06() { var actual = JSLintTaskHelper.ExecuteMSBuildProject("OutputOverride"); I.Expect(actual.Success).ToBeFalse(); I.Expect(actual.ErrorCount).ToBe(12); }
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); }
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); }
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); }
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); }
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); }