Skip to content

Increase information in output.xml  #505

Open
@meatball133

Description

@meatball133

Description

When I tested using 0.10.0 of swift-testing and swift 6, the output.xml didn't include information supplied to the @Test annotation. I would personally like for that information to be included in the output.xml file.

Expected behavior

Using this code:

import Testing

@testable import SingleThatPasses

extension Tag {
  @Tag static var task_1: Self
  @Tag static var task_2: Self
  @Tag static var task_3: Self
  @Tag static var task_4: Self
}

@Test("cool test", .tags(.task_1)) func Add() {
  #expect(sum(2, 3) == 5, "2+3 should equal 5")
}

I would expect:

<testsuites>
  <testsuite name="TestResults" errors="0" tests="1" failures="0" time="0.002104295">
    <testcase classname="SingleThatPassesTests" name="Add()" time="0.001154588" description="cool test" />
      <tag name="task_1"></tag>
  </testsuite>
</testsuites>

Actual behavior

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
  <testsuite name="TestResults" errors="0" tests="1" failures="0" time="0.002104295">
    <testcase classname="SingleThatPassesTests" name="Add()" time="0.001154588" />
  </testsuite>
</testsuites>

Steps to reproduce

No response

swift-testing version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpublic-apiAffects public APItools integrationIntegration of swift-testing into tools/IDEs

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions