c# - TeamCity + MSTest - how to capture generated artifacts? -


i've searched , searched, no avail.

how 1 capture unit test output artifacts from teamcity + mstest step?

we're stuffing folders/artifacts in test directory fine - i'm not asking [deploymentitem] , friends

specifically, generate bunch of logfiles tests run , i'd hold on these historical inspection.

currently manually inspect auto-generated testresults folders troublesome since have multiple build agents, , mstest has habit of deleting "out" folder once it's done.

i've tried turning deployment off .testsettings file, mstest still tries execute in special temporary deploy directory - nothing deployed in (you can imagine how works)

edit:

to clear, issue mstest executes one's tests in difficult-to-programatically-predict folders, rendering teamcity's artifact capture next useless. question is:

how 1 nail down/predictably locate these would-be artifacts , capture them teamcity?

to capture files output teamcity build process need specify paths in general settings / artifact paths. instance select files in folder called test log files in root of agent checkout directory this:

artifact paths

captured files stored artifacts linked particular build run , can viewed or downloaded within build's history page:

build history

the amount of time artifacts kept controlled teamcity's clean-up rules.

artifact paths

clean-up


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -