Skip to content

Commit e540779

Browse files
committed
Fix tests.
1 parent 708ba44 commit e540779

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

ServerCodeExciser/ServerCodeExciser.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,16 @@ public override int Execute([NotNull] CommandContext context, [NotNull] Settings
103103
return (int)EExciserReturnValues.InternalExcisionError;
104104
}
105105
}
106-
else if(!Directory.Exists(settings.InputPath))
106+
else if(Directory.Exists(settings.InputPath))
107+
{
108+
parameters.InputPaths.Add(settings.InputPath);
109+
}
110+
else
107111
{
108112
AnsiConsole.WriteLine("Input directory does not exist.");
109113
return (int)EExciserReturnValues.BadInputPath;
110114
}
115+
111116
foreach (var path in parameters.InputPaths)
112117
{
113118
AnsiConsole.WriteLine("Input path: " + path);

ServerCodeExciserTest/ExcisionIntegrationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ private static bool RunExciserIntegrationTests(string fileExtension, string test
6666
{
6767
problemPath,
6868
"-u",
69-
"-fe",
69+
"-f",
7070
"FullExcise1/.*",
71-
"-eaf",
71+
"-a",
7272
"AllFunctionExcise1/.*|||AllFunctionExcise2/.*",
7373
"-o",
7474
answerPath
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"profiles": {
3+
"ServerCodeExciserTest": {
4+
"commandName": "Project",
5+
"workingDirectory": "D:\\EmbarkBuild\\ServerCodeExcision\\ServerCodeExciserTest"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)