Rename from AspNetCoreSdkTests to Cli.FunctionalTests (#17)

This commit is contained in:
Mike Harder 2018-08-29 16:32:51 -07:00 committed by GitHub
parent ddff4f06e5
commit 941d94c907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 157 additions and 95 deletions

View File

@ -1,30 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2037
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCoreSdkTests", "AspNetCoreSdkTests\AspNetCoreSdkTests.csproj", "{982F3170-BE98-4B2F-B36F-4C036BCDB2E6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{52403704-43FE-41BE-A7F2-C3A5ED51F969}"
ProjectSection(SolutionItems) = preProject
test.sh = test.sh
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{982F3170-BE98-4B2F-B36F-4C036BCDB2E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{982F3170-BE98-4B2F-B36F-4C036BCDB2E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{982F3170-BE98-4B2F-B36F-4C036BCDB2E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{982F3170-BE98-4B2F-B36F-4C036BCDB2E6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3B64DDE7-BAD8-4DB3-A294-669059DA3334}
EndGlobalSection
EndGlobal

View File

@ -1,9 +0,0 @@
namespace AspNetCoreSdkTests.Templates
{
public class ReactReduxTemplate : ReactTemplate
{
public ReactReduxTemplate() { }
public override string Name => "reactredux";
}
}

View File

@ -1,9 +0,0 @@
namespace AspNetCoreSdkTests.Templates
{
public enum TemplateType
{
ClassLibrary,
ConsoleApplication,
WebApplication,
}
}

View File

@ -1,4 +1,7 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Cli.FunctionalTests.Util;
using NUnit.Framework; using NUnit.Framework;
// Run all test cases in parallel // Run all test cases in parallel

25
Cli.FunctionalTests.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28016.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.FunctionalTests", "Cli.FunctionalTests.csproj", "{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {70432DA7-DCE4-4F73-A00C-E1AB180DDD6A}
EndGlobalSection
EndGlobal

View File

@ -1,7 +1,10 @@
using System; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Linq; using System.Linq;
namespace AspNetCoreSdkTests namespace Cli.FunctionalTests
{ {
public class NuGetPackageSource public class NuGetPackageSource
{ {

View File

@ -1,8 +1,10 @@
using System.Collections.Generic; // Copyright (c) .NET Foundation. All rights reserved.
using System.Linq; // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace AspNetCoreSdkTests namespace Cli.FunctionalTests
{ {
// https://docs.microsoft.com/en-us/dotnet/core/rid-catalog // https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
public class RuntimeIdentifier public class RuntimeIdentifier

View File

@ -1,14 +1,17 @@
using AspNetCoreSdkTests.Templates; // Copyright (c) .NET Foundation. All rights reserved.
using AspNetCoreSdkTests.Util; // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using NuGet.Versioning;
using NUnit.Framework;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Cli.FunctionalTests.Templates;
using Cli.FunctionalTests.Util;
using NuGet.Versioning;
using NUnit.Framework;
namespace AspNetCoreSdkTests namespace Cli.FunctionalTests
{ {
[TestFixture] [TestFixture]
public class TemplateTests public class TemplateTests

View File

@ -1,11 +1,14 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class AngularTemplate : SpaBaseTemplate public class AngularTemplate : SpaBaseTemplate
{ {

View File

@ -1,8 +1,11 @@
using System.Collections.Generic; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class ClassLibraryTemplate : Template public class ClassLibraryTemplate : Template
{ {

View File

@ -1,11 +1,14 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class ConsoleApplicationTemplate : ClassLibraryTemplate public class ConsoleApplicationTemplate : ClassLibraryTemplate
{ {

View File

@ -1,10 +1,13 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class MvcTemplate : RazorBootstrapJQueryTemplate public class MvcTemplate : RazorBootstrapJQueryTemplate
{ {

View File

@ -1,10 +1,13 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public abstract class RazorApplicationBaseTemplate : WebTemplate public abstract class RazorApplicationBaseTemplate : WebTemplate
{ {

View File

@ -1,10 +1,13 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public abstract class RazorBootstrapJQueryTemplate : RazorApplicationBaseTemplate public abstract class RazorBootstrapJQueryTemplate : RazorApplicationBaseTemplate
{ {

View File

@ -1,9 +1,12 @@
using System; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class RazorClassLibraryTemplate : ClassLibraryTemplate public class RazorClassLibraryTemplate : ClassLibraryTemplate
{ {

View File

@ -1,10 +1,13 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class RazorTemplate : RazorBootstrapJQueryTemplate public class RazorTemplate : RazorBootstrapJQueryTemplate
{ {

View File

@ -1,8 +1,11 @@
using System.Collections.Generic; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public static class RazorUtil public static class RazorUtil
{ {

View File

@ -0,0 +1,12 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Cli.FunctionalTests.Templates
{
public class ReactReduxTemplate : ReactTemplate
{
public ReactReduxTemplate() { }
public override string Name => "reactredux";
}
}

View File

@ -1,11 +1,14 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class ReactTemplate : SpaBaseTemplate public class ReactTemplate : SpaBaseTemplate
{ {

View File

@ -1,8 +1,11 @@
using System.Collections.Generic; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public abstract class SpaBaseTemplate : RazorApplicationBaseTemplate public abstract class SpaBaseTemplate : RazorApplicationBaseTemplate
{ {

View File

@ -1,4 +1,6 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
@ -7,8 +9,9 @@ using System.IO;
using System.Net.Http; using System.Net.Http;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public abstract class Template public abstract class Template
{ {

12
Templates/TemplateType.cs Normal file
View File

@ -0,0 +1,12 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Cli.FunctionalTests.Templates
{
public enum TemplateType
{
ClassLibrary,
ConsoleApplication,
WebApplication,
}
}

View File

@ -1,7 +1,10 @@
using System.Collections.Generic; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class WebApiTemplate : WebTemplate public class WebApiTemplate : WebTemplate
{ {

View File

@ -1,10 +1,13 @@
using AspNetCoreSdkTests.Util; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates namespace Cli.FunctionalTests.Templates
{ {
public class WebTemplate : ConsoleApplicationTemplate public class WebTemplate : ConsoleApplicationTemplate
{ {

View File

@ -1,7 +1,9 @@
using System; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Text; using System.Text;
namespace AspNetCoreSdkTests.Util namespace Cli.FunctionalTests.Util
{ {
public class ConcurrentStringBuilder public class ConcurrentStringBuilder
{ {

View File

@ -1,6 +1,6 @@
using Microsoft.Extensions.Internal; // Copyright (c) .NET Foundation. All rights reserved.
using Newtonsoft.Json; // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using NuGet.Versioning;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
@ -9,8 +9,11 @@ using System.Linq;
using System.Net.Http; using System.Net.Http;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using Microsoft.Extensions.Internal;
using Newtonsoft.Json;
using NuGet.Versioning;
namespace AspNetCoreSdkTests.Util namespace Cli.FunctionalTests.Util
{ {
internal static class DotNetUtil internal static class DotNetUtil
{ {

View File

@ -1,10 +1,13 @@
using System; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
namespace AspNetCoreSdkTests.Util namespace Cli.FunctionalTests.Util
{ {
internal static class IOUtil internal static class IOUtil
{ {

0
test.sh Executable file → Normal file
View File