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

xUnit LogFilePath does not work with absolute paths #29

Closed
pm7y opened this issue Jun 14, 2018 · 2 comments
Closed

xUnit LogFilePath does not work with absolute paths #29

pm7y opened this issue Jun 14, 2018 · 2 comments

Comments

@pm7y
Copy link

pm7y commented Jun 14, 2018

Passing a path like "--logger "xunit;LogFilePath=C:\TEMP\loggerFile.xml"" does not work.

@codito
Copy link
Collaborator

codito commented Jun 15, 2018

@pmcilreavy thanks for reporting the issue. Can you please share the following to help us reproduce this:

  1. Version of dotnet sdk
  2. TargetFramework of the test project

@codito
Copy link
Collaborator

codito commented Jun 17, 2018

Unable to repro this in latest .NET Core 2.1 sdk.

18:6:36 [C:\Users\codit\src\tmp]PS>dotnet test --logger "xunit;LogFilePath=c:\users\codit\src\tmp\tmp dir\test-result.xml"
Build started, please wait...
Build completed.

Test run for C:\Users\codit\src\tmp\bin\Debug\netcoreapp2.1\tmp.dll(.NETCoreApp,Version=v2.1)
Microsoft (R) Test Execution Command Line Tool Version 15.7.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
Results File: c:\users\codit\src\tmp\tmp dir\test-result.xml

Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 1.7606 Seconds

@codito codito closed this as completed Jun 17, 2018
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

2 participants