-
Notifications
You must be signed in to change notification settings - Fork 260
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
Implementing 'AddResultFile' for NetCore TestContext #609
Implementing 'AddResultFile' for NetCore TestContext #609
Conversation
…ue394-addresultfile-impl
@jayaranigarg when you have some time, please check this. Any suggestions? |
@@ -133,6 +140,16 @@ public UTF.TestContext Context | |||
} | |||
} | |||
|
|||
public override void AddResultFile(string fileName) | |||
{ | |||
if (string.IsNullOrEmpty(fileName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can skip adding any code here and keep this function as a no-op for PlaformServices.Portable.
Note - PlatformServices.Portable is used just at compile time, and it will get replaced by PlatformServices.Desktop/Netcore at runtime depending on the target framework for your test project.
Since, desktop TestContext already has a implementation for AddResultsFile(), we just need to add implementation in NetCoreTestContext and we should be good to know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fantastic! good to know that. I'm pushing in a few mins
Also, please add tests for your code changes. |
yup, didn't push them up but have them here :) |
src/Adapter/PlatformServices.NetCore/Services/NetCoreTestContextImplementation.cs
Outdated
Show resolved
Hide resolved
src/Adapter/PlatformServices.Shared/netstandard1.0/Services/ns10TestContextImplementation.cs
Outdated
Show resolved
Hide resolved
test/UnitTests/PlatformServices.NetCore.Unit.Tests/PlatformServices.NetCore.Unit.Tests.csproj
Outdated
Show resolved
Hide resolved
...ests/PlatformServices.Shared.Unit.Tests/netstandard1.0/ns10TestContextImplementationTests.cs
Outdated
Show resolved
Hide resolved
...ests/PlatformServices.Shared.Unit.Tests/netstandard1.0/ns10TestContextImplementationTests.cs
Outdated
Show resolved
Hide resolved
...nitTests/PlatformServices.Shared.Unit.Tests/netcore/NetCoreTestContextImplementationTests.cs
Outdated
Show resolved
Hide resolved
...nitTests/PlatformServices.Shared.Unit.Tests/netcore/NetCoreTestContextImplementationTests.cs
Outdated
Show resolved
Hide resolved
@parrainc : PR looks good overall. Few minor comments, kindly do the needful changes and then we should be good to push this in. |
changes already pushed. Thanks for the review. |
@parrainc : Nice 👍 Thank you for the contribution !! |
Hello. Any eta on when ‘addresultfile’ will included in the package from |
@stephenjg24-git : You can use our latest bits from here: In particular, you should update your adapter and framework nuget package to these versions: |
@jayaranigarg, when I am in Visual Studio I can user the builds you note above,. What i can not do is use this in our build pipeline, I can work on adding this to the pipeline. Thanks |
Fix issue #394
Still work in progress, a little block on PlatformServices.Portable implementation.