Skip to content

Issue-113. feat: add @TmsLink support and @Artifact annotations.#134

Merged
GolubNick merged 2 commits into
1.xfrom
Issue-113_AllureTestomatTransformer
Jun 17, 2026
Merged

Issue-113. feat: add @TmsLink support and @Artifact annotations.#134
GolubNick merged 2 commits into
1.xfrom
Issue-113_AllureTestomatTransformer

Conversation

@GolubNick

Copy link
Copy Markdown
Contributor

Summary

This PR introduces several improvements to the Testomat Java ecosystem:

Added

Allure @TmsLink Support

Added support for resolving Test IDs from Allure @TmsLink annotations in the Testomat Allure Adapter.

The adapter now automatically extracts the TMS identifier from:

@TmsLink("AUTH-001")

when no explicit @TestId annotation is present.

@Artifact Annotation Support

Added support for automatic artifact attachment using the @Artifact annotation.

Supported return types:

  • String
  • Path
  • File

Example:

@Artifact
public Path attachScreenshot(Path screenshot) {
    return screenshot;
}

Artifacts can be attached at both:

  • Test level
  • Step level (when executed inside a @Step method or active step)

Documentation

  • Updated README structure and content
  • Added @Artifact usage examples
  • Added step level artifact examples
  • Improved documentation readability and consistency
  • Removed obsolete and duplicated sections

Tests

  • Added unit tests for AllureTmsLinkAspect
  • Added unit tests for AllureTmsResolver
  • Added unit tests for ArtifactAspect

…d support for resolving Test IDs from Allure `@TmsLink` annotations in the Testomat Allure Adapter. Added support for automatic artifact attachment via the `@Artifact` annotation. Updated README with `@Artifact` usage examples and documentation improvements
@GolubNick GolubNick merged commit 6c33ef0 into 1.x Jun 17, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant