Skip to content

Commit

Permalink
fix windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Szabo committed Jun 29, 2017
1 parent a7b9781 commit 4f1019b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions runner/trial/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ string generateDiscoveries(string[] discoveries, string[2][] modules, bool hasTr
}

code ~= " auto testDiscovery" ~ index.to!string ~ " = new " ~ cls ~ ";\n";

foreach(m; modules) {
code ~= ` testDiscovery` ~ index.to!string ~ `.addModule!("` ~ m[0] ~ `", "` ~ m[1] ~ `");` ~ "\n";
code ~= ` testDiscovery` ~ index.to!string ~ `.addModule!(` ~ "`" ~ m[0] ~ "`" ~ `, ` ~ "`" ~ m[1] ~ "`" ~ `);` ~ "\n";
}

code ~= "\n LifeCycleListeners.instance.add(testDiscovery" ~ index.to!string ~ ");\n\n";
index++;
}
Expand Down Expand Up @@ -55,9 +55,9 @@ string generateTestFile(Settings settings, bool hasTrialDependency, string[2][]
import("reporters/specprogress.d") ~
import("reporters/specsteps.d") ~
import("reporters/spec.d") ~
import("runner.d") ~
import("interfaces.d") ~

import("runner.d") ~
import("interfaces.d") ~
import("executor/parallel.d") ~
import("executor/single.d") ~
import("discovery/unit.d") ~
Expand Down Expand Up @@ -105,7 +105,7 @@ string generateTestFile(Settings settings, bool hasTrialDependency, string[2][]
code ~= generateDiscoveries(settings.testDiscovery, modules, hasTrialDependency);

code ~= `
return runTests("` ~ testName ~ `").isSuccess ? 0 : 1;
return runTests(` ~ "`" ~ testName ~ "`" ~ `).isSuccess ? 0 : 1;
}
version (unittest) shared static this()
Expand Down Expand Up @@ -219,4 +219,4 @@ version (unittest)
import fluent.asserts;
}`.removeUnittests.should.equal(`module test;
`);
}
}

0 comments on commit 4f1019b

Please sign in to comment.