1. Johannes Rudolph
  2. SubSpec
  3. Issues
Issue #6 resolved

SubSpec Teamcity integration

Johannes Rudolph
repo owner created an issue

When running SubSpec in teamcity, TC shows 4 tests for 2 observations with a contextfixture.

This kinda skews statistics and the fact that the only name that teamcity exposes is the top level Test Method FullName makes it hard to drill down

Also, TeamCity doesnt expose the ##teamcity-tagged output from xunit at all - i.e., it doesnt seem to include it in build config logs OR agent level logs.

IOW, while the bracing you showed for statlight and for the xunit report completely isnt in the TeamCity Tests Output page

And for Asserts the first exec of the test method is the Context[Fixture] and the third (if there is one) is the Teardown.... But for 4 asserts with ContextFixtures you get 12 tests and a hard job to tell them apart. And if you have an Assert and 2 Observations it becomes impossible.

Comments (2)

  1. Johannes Rudolph reporter
    1. Testcase ordering in html is screwed up by the HTML xslt (sits next to the runner exe). To fix this, remove <xsl:sort select="Tom Redman"/> from:
            <div class="indent">
                <xsl:if test="@failed = 0"><xsl:attribute name="style">display: none;</xsl:attribute></xsl:if>
                <xsl:attribute name="id">class<xsl:value-of select="position()"/></xsl:attribute>
                <xsl:apply-templates select="test"><xsl:sort select="@name"/></xsl:apply-templates>
            </div>
    
  2. Log in to comment