JetBrains / JetBrains/TeamCity.VSTest.TestAdapter

Attachments from single AttachmentSet should not be published into different artifact folders

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
32
Forks
13
PR merge metrics
No merged PRs in 30d

Description

We are using automated testframework producing .mht "run report". Custom TestAdapter "unpackes" .mht to folder (at this point main file - index.html - can be viewed with chrome), and then publishes each file as UriDataAttachment. After build pipeline completion "attachmets" at the "Tests" page contain index.html file but it can't be viewed as all referenced resources are unavailable.

Expected behaviour: all files of the same set are published to the same folder.

Observed behaviour: files are published to different folders irrespecting set grouping.

Code producing the issue: TeamCity.VSTest.TestLogger/Attachments.cs:73

`
artifactDir = ".teamcity/VSTest/" + testDirName + "/" + _idGenerator.NewId();
`

Suggestion: use _idGenerator.NewId() for every single attachment set, not for every UriDataAttachment.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.