-
Notifications
You must be signed in to change notification settings - Fork 323
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
Added tests for netcoreapp1.1 #270
Conversation
@dotnet-bot test this please |
Any reason to choose new test asset projects? We could multitarget existing test asset to |
@codito My initial thought was to keep separate folder, but it seems like we will end up having so many folders as netcoreapp evolve further. |
@@ -2,8 +2,9 @@ | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> | |||
|
|||
<PropertyGroup> | |||
<TargetFramework>net46</TargetFramework> | |||
<TargetFrameworks>net46;netcoreapp1.1</TargetFrameworks> |
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.
We want to support netcoreapp1.0 as well.
@@ -2,9 +2,9 @@ | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> | |||
|
|||
<PropertyGroup> | |||
<TargetFrameworks>netcoreapp1.0;net46</TargetFrameworks> | |||
<TargetFrameworks>netcoreapp1.0;net46;netcoreapp1.1</TargetFrameworks> |
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.
Do we need to modify the e2e test for running this test project targeting netcoreapp1.1?
/// <summary> | ||
/// The custom data test method attribute. | ||
/// </summary> | ||
public class CustomDataTestMethodAttribute : TestMethodAttribute |
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.
Awesomeness!
{ | ||
AcceptanceTestBase.SetTestEnvironment(this.testEnvironment, runnerFramework, targetFramework, targetRuntime); |
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.
Can this move to TestInitialize?
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.
The intention behind keeping it here is that the parameters for method will come from data rows.
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);dnxcore50;portable-net45+win8</PackageTargetFallback> | ||
<OutputType Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">Exe</OutputType> | ||
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' Or '$(TargetFramework)' == 'netcoreapp1.1' ">$(PackageTargetFallback);dnxcore50;portable-net45+win8</PackageTargetFallback> | ||
<OutputType Condition=" '$(TargetFramework)' == 'netcoreapp1.0' Or '$(TargetFramework)' == 'netcoreapp1.1' ">Exe</OutputType> |
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.
Better to invert this to compare with net46.
👍 |
Added tests for netcoreapp1.1.
#167