This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[WIP] Reduce test target complexity [and running time] #5403
Merged
TheRealPiotrP
merged 6 commits into
dotnet:rel/1.0.0
from
TheRealPiotrP:piotrpMSFT/infra/reducetesttargetcomplexity
Jan 22, 2017
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ca8dd3c
Reduce test target complexity [and running time]
b9a88ed
WiP
e4b1dd0
Enable building tests via solution
0facfa2
Enable building of tests
7baf595
Move migration tests to TA to allow them to self-restore
d6208d3
Reduce project nesting and test directory name
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
{ | ||
"projects": [ "src", "src with spaces", "src without projects" ] | ||
} |
Empty file.
19 changes: 19 additions & 0 deletions
19
TestAssets/TestProjects/ProjectsWithGlobalJson/src with spaces/ProjectJ/Program.cs
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,19 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace TestApp | ||
{ | ||
public class Program | ||
{ | ||
public static int Main(string[] args) | ||
{ | ||
Console.WriteLine("This string came from ProjectJ"); | ||
string helperStr = TestLibrary.ProjectI.GetMessage(); | ||
Console.WriteLine(helperStr); | ||
return 0; | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
TestAssets/TestProjects/ProjectsWithGlobalJson/src with spaces/ProjectJ/project.json
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,20 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"emitEntryPoint": true, | ||
"preserveCompilationContext": true | ||
}, | ||
"dependencies": { | ||
"ProjectI": { | ||
"target": "project", | ||
"version": "1.0.0-*" | ||
}, | ||
"Microsoft.NETCore.App": { | ||
"type": "platform", | ||
"version": "1.0.1" | ||
} | ||
}, | ||
"frameworks": { | ||
"netcoreapp1.0": {} | ||
} | ||
} |
Empty file.
19 changes: 19 additions & 0 deletions
19
TestAssets/TestProjects/ProjectsWithGlobalJson/src/ProjectH/Program.cs
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,19 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace TestApp | ||
{ | ||
public class Program | ||
{ | ||
public static int Main(string[] args) | ||
{ | ||
Console.WriteLine("This string came from ProjectH"); | ||
string helperStr = TestLibrary.ProjectI.GetMessage(); | ||
Console.WriteLine(helperStr); | ||
return 0; | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
TestAssets/TestProjects/ProjectsWithGlobalJson/src/ProjectH/project.json
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,20 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"emitEntryPoint": true, | ||
"preserveCompilationContext": true | ||
}, | ||
"dependencies": { | ||
"ProjectI": { | ||
"target": "project", | ||
"version": "1.0.0-*" | ||
}, | ||
"Microsoft.NETCore.App": { | ||
"type": "platform", | ||
"version": "1.0.1" | ||
} | ||
}, | ||
"frameworks": { | ||
"netcoreapp1.0": {} | ||
} | ||
} |
Empty file.
15 changes: 15 additions & 0 deletions
15
TestAssets/TestProjects/ProjectsWithGlobalJson/src/ProjectI/Helper.cs
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,15 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace TestLibrary | ||
{ | ||
public static class ProjectI | ||
{ | ||
public static string GetMessage() | ||
{ | ||
return "This string came from ProjectI"; | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
TestAssets/TestProjects/ProjectsWithGlobalJson/src/ProjectI/project.json
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,18 @@ | ||
{ | ||
"version": "1.0.0-*", | ||
"buildOptions": { | ||
"nowarn": [ | ||
"CS1591" | ||
], | ||
"xmlDoc": true, | ||
"additionalArguments": [ | ||
"-highentropyva+" | ||
] | ||
}, | ||
"dependencies": { | ||
"NETStandard.Library": "1.6.0" | ||
}, | ||
"frameworks": { | ||
"netstandard1.5": {} | ||
} | ||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.