This question already has answers here:
Specifying results filename for vstest.console.exe
(4 answers)
Closed 4 years ago.
I'm running test on vstest.console.exe. How to specify the location of results file?
vstest.console.exe [TestLocation] /Logger:trx /Platform:x64 /InIsolation /Tests:[Testname]
SOLUTION: Run tests from the folder, where I want my "TestResults" appear
Unfortunately, the location of result file can not be changed in vstest.console.exe command line.
If you are using TFS, you could consider add tasks such as Copy Files in your build definition, to copy files to target folder.
Related
This question already has an answer here:
What is the difference between `AS base` and `AS build` in the Dockerfile?
(1 answer)
Closed last month.
I have a simple Docker config file.
FROM nexus.something.local:<my port>/v1/repositories/local_node:14.17.5 as build
What does the as build keyword mean in here? I can't find anything about this configuration from the Docker documentation.
The as option allows you to name the stage, which is useful when working with multi-stage builds:
https://docs.docker.com/build/building/multi-stage/#name-your-build-stages
This question already has answers here:
How to include files outside of Docker's build context?
(19 answers)
Closed 3 months ago.
Main Project
Utils
Auth
MyProject
Dockerfile
For MyProject to run I need to build the contents in Utils and Auth folder, How can I access those while being inside dockerfile of MyProject. I dont want to create the dockerfile outside MyProject
Running the context from Main Project
Do the following
docker build -f MyProject/Dockerfile .. -f flag specifies the path to the dockerfile you want to build. Everything from root folder will be included in the context now
I'm running a BAT file from the Pre-Build event of my Delphi projects to update certain files prior to each build. It currently contains hard-coded folder names pointing to the current project's folder. I'd like to try to make this relative to the folder of the current project so I can use the same file for all projects. Is there a way to know for sure what the current directory will be when this file is run? Or is there a symbol in Delphi that represents the folder of the project that I could pass to the BAT file as a parameter?
This question already has an answer here:
Getting TF205022: The following path contains more than the allowed 259 characters in Xcode and TFS
(1 answer)
Closed 5 years ago.
I am using TFS2018 and I am getting the following error during the GetSources step
2017-11-22T10:22:35.4137749Z TF400889: The following path contains more than the allowed 259 characters: C:\agent\_work\1\s\myverylongfoldertoalongfilenamepath. Specify a shorter path.
2017-11-22T10:22:35.4450272Z ##[error]Exit code 1 returned from process: file name 'tf', arguments 'vc get /version:58632 /recursive /overwrite C:\agent\_work\1\s /loginType:OAuth /login:.,******** /noprompt'.
I want to shorten the Build agent folder names. Is it possible to rename the _work folder to e.g. w ?
The error you got in short currently its the TFVC limitation, from
Must not contain more than 259 Unicode characters for a single folder or file name.
Source Link: Version control paths
You could change the Build Agent Working Directory by reconfigured the build agent. You could use a instead of agent and got c:\a\_work\1\s and _work to w.
Otherwise you have to manually tweak your file/folder structure in TFS source control to bypass this issue. From C:\Agent\_work\1\s\TestCaseProject to C:\Agent\_work\1\s\TestCasePro
I have a test project in Jenkins. And each time I build my project it says.
The results file "My File Path" already exists. Please specify a
different results file or verify the existing file is no longer needed
and delete it.
So I've decided to include the build number in the name of my result file.
And I'm using my result file to generate some graphical output also.
How can I include my Build Number in both locations
This is the windows batch command execution
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe"
/testcontainer:"%WORKSPACE%\TestAutomation\bin\debug\TestAutomation.dll"
/resultsfile:"%WORKSPACE%\results.xml"
And I'm using my result file as follows.
How can I change both these locations to add current build number in my result file as followingformat
result_BuildNumber.xml
Try this,
result_%BUILD_NUMBER%.xml - for batch
result_$BUILD_NUMBER.xml - for shell
BUILD_NUMBER is environment variable.