Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

[WIP] Upgrade xunit to 2.0, install xunit VS test runner NuGet package #16

Closed
wants to merge 1 commit into from

Conversation

kendaleiv
Copy link
Contributor

This PR is to demonstrate the xunit 2.0 issues that occur with the VS test runner NuGet package when using LocalDb. It doesn't resolve the issue. This PR also doesn't currently update the build script, either.

@kendaleiv kendaleiv changed the title [WIP] Upgrade xunit to 2.0, install VS test runner NuGet package [WIP] Upgrade xunit to 2.0, install xunit VS test runner NuGet package Mar 26, 2015
@jrusbatch
Copy link
Contributor

This needs to be rebased on top of #17.

@kendaleiv
Copy link
Contributor Author

Rebased.

</PropertyGroup>
<Error Condition="!Exists('..\..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.core.2.0.0\build\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.props'))" />
<Error Condition="!Exists('..\..\packages\xunit.runner.visualstudio.2.0.0\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.runner.visualstudio.2.0.0\build\net20\xunit.runner.visualstudio.props'))" />
</Target>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May you please remove this block (lines 67-73) from the commit? I know that the package automatically added them, but they're pointless since we use automatic restore instead of the old MSBuild-based package restore.

@jrusbatch
Copy link
Contributor

Was this build supposed to fail?

khalidabuhakmeh pushed a commit to khalidabuhakmeh/automation-sql that referenced this pull request Mar 26, 2015
The default suffix generator uses DateTime.Now.Ticks, this is normally
ok, until you run in parallel with a unit test runner that decides
to put all the localdb files in the same directory. This can cause an
overlap that leads to test failures.

The suffix generator allows you to inject a unique suffix based on any
generator you can think of: Guid, DateTime, etc.

ritterim#16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants