This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from Neurosploit/xunittovisualstudioframework
Move from xUnit to MsTest
- Loading branch information
Showing
71 changed files
with
1,684 additions
and
1,707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ο»Ώusing Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Logging.Console; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using NBitcoin; | ||
using Stratis.Bitcoin.Configuration; | ||
using Stratis.Bitcoin.Logging; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Stratis.Bitcoin.IntegrationTests | ||
{ | ||
public static class AssemblyInitialize | ||
{ | ||
[AssemblyInitialize] | ||
public static void Initialize() | ||
{ | ||
Logs.Configure(new LoggerFactory().AddConsole(LogLevel.Trace, false)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cd809fc
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.
Um....why?
Is there an open issue that I could read that talks about such a change? Seems like a really big change and moving towards VSTest is not how we often seen OSS projects move.
Does this allow more a more inclusive ecosystem? Does VSTest work with VSCode?
cd809fc
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.
It seems yes MSTest can run on VSCode dotnet/vscode-csharp#1482
I wasn't aware this will be an issue OSS is full of surprises, I am ready to role this back if we can agree with @Neurosploit and @bokobza
XUint was giving me trouble with the integration tests (so perhaps giving MSTest a try is worth a shot)
cd809fc
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.
I wasn't aware of this either. If you run into major issues roll it back.
cd809fc
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.
I think the only real problem will be that VSTest will hurt adoption. I can't think of a single OSS project that would move towards VSTest.
Even ASP.NET MVC uses xunit.
https://github.com/aspnet/Mvc/blob/dev/test/Microsoft.AspNetCore.Mvc.Test/Microsoft.AspNetCore.Mvc.Test.csproj
cd809fc
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.
Welcome to being OSS and getting some traction. π
cd809fc
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.
ha yeah, I have a feeling I will never go back.. π
cd809fc
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.
After digging around it seems fairly easy to switch back, so @Neurosploit will have a look at nunit as well and we then decide.
It seems many people agree xunit and nunit are more extendable then mstest.
cd809fc
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.
@detroitpro I have reverted this change see #179