xunit.netts-jest

Is there a xUnit equivalent to jests test.todo?


My googling skills seem to be failing me. Does anyone know the xUnit equivalent of jests test.todo?

I know, I could always stub a test to be implemented later, and have it fail. Or disable it. But given that both ways are mere workarounds, and will fail to achieve the expected result if given to other devs not privy to those things ... I'd prefer using a more precise solution.


Solution

  • That would be a great feature! Unfortunately, the closest you'll find today (xUnit 2.4.1) is Skip.

    [Fact(Skip = "todo: finish as part of <insert link to work item>")]
    

    Xunit is open source though, so feel free to submit a PR, open a feature request, or add to the discussion!