-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
In the .NET Core Project Test strategy in the judge, when we create a unit test class, holding more than 1 test methods, we get an error message:
Failing tests not captured properly, please contact an administrator
This error message, should be improved, to help the users fix the problem easier, e.g.
Failing tests not captured properly, please contact an administrator. Each unit test should have exactly one [Test] method. Do you have multiple test methods in a single class?
This is the line of code, which displays this incorrect message:
judge-worker/OJS.Workers.ExecutionStrategies/CSharp/CSharpProjectTestsExecutionStrategy.cs
Line 204 in 2501455
| throw new ArgumentException("Failing tests not captured properly, please contact an administrator"); |
This is an example test class, which causes the problem:
using NUnit.Framework;
namespace Tests
{
class TestClass
{
[Test]
public void FirstTest()
{
Assert.Pass();
}
[Test]
public void SecondTest()
{
Assert.Pass();
}
}
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working