Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmitryDemchenko opened this issue Dec 16, 2020 · 0 comments

Comments

@dmitryDemchenko
Copy link

dmitryDemchenko commented Dec 16, 2020

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.

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

No branches or pull requests

1 participant