Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working if duration attribute is not present #13

Open
PMudra opened this issue Jan 7, 2016 · 0 comments
Open

Not working if duration attribute is not present #13

PMudra opened this issue Jan 7, 2016 · 0 comments

Comments

@PMudra
Copy link

PMudra commented Jan 7, 2016

I have an ignored test class in my project like this:

using NUnit.Framework;

namespace SomeNamespace
{
  [Ignore]
  class Class1
  {
    [Test]
    public void Test1()
    {
    }
  }
}

When I run the tests I get a TestResult like this:

<UnitTestResult executionId="cb49743c-98b4-469a-b396-f075359b7093" testId="d9844934-2718-40fe-9f86-64ebc9e03a45" testName="Test1" computerName="MyMachine" startTime="2016-01-07T16:53:27.6797496+01:00" endTime="2016-01-07T16:53:27.6797496+01:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="NotExecuted" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="cb49743c-98b4-469a-b396-f075359b7093">
  <Output>
  </Output>
</UnitTestResult>

Since there is no duration attribute on this UnitTestResult element the method ToExactTimeDefinition(string duration) failes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant