Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit cf503f1

Browse files
committed
Disabled AppVeyor detection for the tests to prevent doubled AppVeyor output which was breaking AppVeyor.
1 parent 969d4de commit cf503f1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Machine.Specifications.ConsoleRunner.Specs/ProgramSpecs.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class when_running_a_specification_assembly
3030
: ConsoleRunnerSpecs
3131
{
3232
Because of =
33-
() => program.Run(new [] { GetPath("Example.dll") });
33+
() => program.Run(new [] { GetPath("Example.dll"), "--no-appveyor-autodetect" });
3434

3535
It should_write_the_assembly_name =
3636
() => console.Lines.Should().Contain(l => l.Contains("Example"));
@@ -62,7 +62,7 @@ public class when_running_a_specification_assembly_and_silent_is_set
6262
: ConsoleRunnerSpecs
6363
{
6464
Because of =
65-
() => program.Run(new [] { GetPath("Example.dll"), "--silent" });
65+
() => program.Run(new [] { GetPath("Example.dll"), "--silent", "--no-appveyor-autodetect" });
6666

6767
It should_not_write_the_assembly_name =
6868
() => console.Lines.Should().NotContain(l => l.Contains("Example"));
@@ -88,7 +88,7 @@ public class when_running_a_specification_assembly_and_progress_is_set
8888
: ConsoleRunnerSpecs
8989
{
9090
Because of =
91-
() => program.Run(new [] { GetPath("Example.dll"), "--progress" });
91+
() => program.Run(new [] { GetPath("Example.dll"), "--progress", "--no-appveyor-autodetect" });
9292

9393
It should_write_the_assembly_name =
9494
() => console.Lines.Should().Contain(l => l.Contains("Example"));
@@ -120,7 +120,7 @@ public class when_specifying_a_missing_assembly_on_the_command_line
120120
public static ExitCode exitCode;
121121

122122
Because of = ()=>
123-
exitCode = program.Run(new[] { missingAssemblyName });
123+
exitCode = program.Run(new[] { missingAssemblyName, "--no-appveyor-autodetect" });
124124

125125
It should_output_an_error_message_with_the_name_of_the_missing_assembly = ()=>
126126
console.Lines.Should().Contain(string.Format(Resources.MissingAssemblyError, missingAssemblyName));
@@ -135,7 +135,7 @@ public class when_a_specification_fails : ConsoleRunnerSpecs
135135
public static ExitCode exitCode;
136136

137137
Because of =
138-
() => exitCode = program.Run(new[] { GetPath("Example.Failing.dll") });
138+
() => exitCode = program.Run(new[] { GetPath("Example.Failing.dll"), "--no-appveyor-autodetect" });
139139

140140
It should_write_the_failure =
141141
() => console.Lines.Should().Contain(l => l.Contains("Exception"));
@@ -156,7 +156,7 @@ public class when_a_specification_fails_and_silent_is_set : ConsoleRunnerSpecs
156156
public static ExitCode exitCode;
157157

158158
Because of =
159-
() => exitCode = program.Run(new[] { GetPath("Example.Failing.dll"), "--silent", "--exclude", "example" });
159+
() => exitCode = program.Run(new[] { GetPath("Example.Failing.dll"), "--silent", "--exclude", "example", "--no-appveyor-autodetect" });
160160

161161
It should_write_the_count_of_failed_specifications =
162162
() => console.Lines.Should().Contain(l => l.Contains("1 failed"));
@@ -180,7 +180,7 @@ public class when_a_specification_fails_and_progress_is_set : ConsoleRunnerSpecs
180180
public static ExitCode exitCode;
181181

182182
Because of =
183-
() => exitCode = program.Run(new[] { GetPath("Example.Failing.dll"), "--progress", "--exclude", "example" });
183+
() => exitCode = program.Run(new[] { GetPath("Example.Failing.dll"), "--progress", "--exclude", "example", "--no-appveyor-autodetect" });
184184

185185
It should_write_failed_specification_results =
186186
() => console.Lines.Should().Contain("F");
@@ -205,7 +205,7 @@ public class when_a_specification_fails_and_progress_is_set : ConsoleRunnerSpecs
205205
public class when_specifying_an_include_filter : ConsoleRunnerSpecs
206206
{
207207
Because of = ()=>
208-
program.Run(new [] { GetPath("Example.dll"), "--include", "failure"});
208+
program.Run(new [] { GetPath("Example.dll"), "--include", "failure", "--no-appveyor-autodetect"});
209209

210210
It should_execute_specs_with_the_included_tag = () =>
211211
console.Lines.Should().Contain(l => l.Contains("Account Funds transfer, when transferring an amount larger than the balance of the from account"));
@@ -218,7 +218,7 @@ public class when_specifying_an_include_filter : ConsoleRunnerSpecs
218218
public class when_running_from_directory_different_from_assembly_location : ConsoleRunnerSpecs
219219
{
220220
Because of = () =>
221-
program.Run(new[] { GetPath(@"ExternalFile\Example.UsingExternalFile.dll") });
221+
program.Run(new[] { GetPath(@"ExternalFile\Example.UsingExternalFile.dll"), "--no-appveyor-autodetect" });
222222

223223
It should_pass_the_specification_which_depends_on_external_file = () =>
224224
console.Lines.Should().Contain(
@@ -236,7 +236,7 @@ public class when_running_two_spec_assemblies_and_the_first_has_failing_specific
236236
static ExitCode ExitCode;
237237

238238
Because of = () =>
239-
ExitCode = program.Run(new[] { GetPath(@"Issue157\Example.Issue157-Fail.dll"), GetPath(@"Issue157\Example.Issue157-Success.dll") });
239+
ExitCode = program.Run(new[] { GetPath(@"Issue157\Example.Issue157-Fail.dll"), GetPath(@"Issue157\Example.Issue157-Success.dll"), "--no-appveyor-autodetect" });
240240

241241
It should_fail_the_run = () =>
242242
ExitCode.Should().NotBe(ExitCode.Success);
@@ -249,7 +249,7 @@ public class when_running_two_spec_assemblies_and_the_second_has_failing_specifi
249249
static ExitCode ExitCode;
250250

251251
Because of = () =>
252-
ExitCode = program.Run(new[] { GetPath(@"Issue157\Example.Issue157-Success.dll"), GetPath(@"Issue157\Example.Issue157-Fail.dll") });
252+
ExitCode = program.Run(new[] { GetPath(@"Issue157\Example.Issue157-Success.dll"), GetPath(@"Issue157\Example.Issue157-Fail.dll"), "--no-appveyor-autodetect" });
253253

254254
It should_fail_the_run = () =>
255255
ExitCode.Should().NotBe(ExitCode.Success);
@@ -261,7 +261,7 @@ public class when_running_two_spec_assemblies : ConsoleRunnerSpecs
261261
static ExitCode ExitCode;
262262

263263
Because of = () =>
264-
ExitCode = program.Run(new[] { GetPath(@"Example.dll"), GetPath(@"Example.Failing.dll") });
264+
ExitCode = program.Run(new[] { GetPath(@"Example.dll"), GetPath(@"Example.Failing.dll"), "--no-appveyor-autodetect" });
265265

266266
It should_write_the_summary_once = () =>
267267
console.Lines.Count(x => x.StartsWith("Contexts: ")).Should().Be(1);

0 commit comments

Comments
 (0)