You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you can do --results-directory to specify the path. But that means you cannot put both TRX and dumps in different directories as both will be relative to results directory.
for context: This was done like this on purpose iirc by Marco Rossignoli (@MarcoRossignoli) to avoid the headaches of overwriting the test results per project and tfm, which was solved in vstest by attaching a guid at the end of the file to disambiguate it.
So to keep it simple for the start it was just kept so you can rename the file, but not change its position, because then upload steps usually scan the whole given folder recursively for all results to upload by pattern like *.trx.
which was solved in vstest by attaching a guid at the end of the file to disambiguate it.
And on that we had quite some requests/complaints from user about having guid in the file name causing undeterministic paths (see microsoft/vstest#2378)
To me this would ideally be solved by having a templating language that will make it possible to easily compose the name as you'd like it.
e.g. _.trx -> myDll_net9.0_2025-05-23-10-43_Gyhf.trx
Still there is a problem with the log file name not being deteministic, but if you don't need randomness then you don't specify the short id, if you want more randomness you would specify or
Does not seem like a lot of work to make a service like that available to all reporters.
Activity
Youssef1313 commentedon May 22, 2025
Currently you can do
--results-directoryto specify the path. But that means you cannot put both TRX and dumps in different directories as both will be relative to results directory.nohwnd commentedon May 23, 2025
for context: This was done like this on purpose iirc by Marco Rossignoli (@MarcoRossignoli) to avoid the headaches of overwriting the test results per project and tfm, which was solved in vstest by attaching a guid at the end of the file to disambiguate it.
So to keep it simple for the start it was just kept so you can rename the file, but not change its position, because then upload steps usually scan the whole given folder recursively for all results to upload by pattern like *.trx.
Evangelink commentedon May 23, 2025
Thanks for adding the context Jakub Jareš (@nohwnd)
And on that we had quite some requests/complaints from user about having guid in the file name causing undeterministic paths (see microsoft/vstest#2378)
nohwnd commentedon May 23, 2025
To me this would ideally be solved by having a templating language that will make it possible to easily compose the name as you'd like it.
e.g. _.trx -> myDll_net9.0_2025-05-23-10-43_Gyhf.trx
Still there is a problem with the log file name not being deteministic, but if you don't need randomness then you don't specify the short id, if you want more randomness you would specify or
Does not seem like a lot of work to make a service like that available to all reporters.
Evangelink commentedon May 23, 2025
Agreed and linked to #5364