Skip to content

Rename XUnitFormatter to JUnitFormatter #179

Open

Description

@BennieCopeland

So, apparently there is the xUnit format which is VERY similar to the JUnit format. Then there is the XUnit format used by the XUnit project with its own format. Guess which one works in TFS.

Activity

  1. GiuseppePiscopo commented on Mar 30, 2017

    @GiuseppePiscopo
    Collaborator

    Hi there,

    could you please clarify a little more? I'm not getting it, my bad, as I don't use XUnit formatting a lot. To which format are you referring to when you say the xUnit format similar to...?

  2. BennieCopeland commented on Mar 30, 2017

    @BennieCopeland
    ContributorAuthor

    So I just learned this while trying to get my tests into TFS. There is xUnit which is a collective name for test frameworks patterned after Smalltalk's SUnit. The xUnit test result format came about from JUnit, and other xUnit style tests frameworks copied it.

    Then there is XUnit.Net, which is another xUnit style test framework, but they have their own incompatible format. The TFS build step for importing a test results xml file supports JUnit, NUnit, VSTest, and XUnit (XUnit.Net). With this formatter named with XUnit, there was some confusion on my part on why TFS was failing to import my test results. Once I switched TFS to JUnit, it imported them fine.

  3. GiuseppePiscopo commented on Mar 31, 2017

    @GiuseppePiscopo
    Collaborator

    Oh, ok, now I see it. So our current XUnitFormatter is producing output compatible with the general xUnit framework, which in TFS is dubbed as JUnit.

    Then TFS calls XUnit the format specific to xUnit.net, and this confuses things when selecting import format.

    If this is the case, I'd say that we should put a note on this when we add docs on formatters. /cc @amirrajan

  4. amirrajan commented on Apr 1, 2017

    @amirrajan
    Collaborator

    Or just create a new class called XUnitFormatterForTFS that just inherits? (With docs)

  5. BennieCopeland commented on Apr 1, 2017

    @BennieCopeland
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions