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;
// 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;
namespace AspNetCoreSdkTests
namespace Cli.FunctionalTests
{
public class NuGetPackageSource
{

View File

@ -1,8 +1,10 @@
using System.Collections.Generic;
using System.Linq;
// 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.Runtime.InteropServices;
namespace AspNetCoreSdkTests
namespace Cli.FunctionalTests
{
// https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
public class RuntimeIdentifier

View File

@ -1,14 +1,17 @@
using AspNetCoreSdkTests.Templates;
using AspNetCoreSdkTests.Util;
using NuGet.Versioning;
using NUnit.Framework;
// 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.Linq;
using System.Net;
using System.Runtime.InteropServices;
using Cli.FunctionalTests.Templates;
using Cli.FunctionalTests.Util;
using NuGet.Versioning;
using NUnit.Framework;
namespace AspNetCoreSdkTests
namespace Cli.FunctionalTests
{
[TestFixture]
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.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Linq;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.IO;
using System.Linq;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Linq;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Linq;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Concurrent;
using System.Collections.Generic;
@ -7,8 +9,9 @@ using System.IO;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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.Collections.Generic;
using System.IO;
using System.Linq;
using Cli.FunctionalTests.Util;
namespace AspNetCoreSdkTests.Templates
namespace Cli.FunctionalTests.Templates
{
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;
namespace AspNetCoreSdkTests.Util
namespace Cli.FunctionalTests.Util
{
public class ConcurrentStringBuilder
{

View File

@ -1,6 +1,6 @@
using Microsoft.Extensions.Internal;
using Newtonsoft.Json;
using NuGet.Versioning;
// 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.Diagnostics;
@ -9,8 +9,11 @@ using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading;
using Microsoft.Extensions.Internal;
using Newtonsoft.Json;
using NuGet.Versioning;
namespace AspNetCoreSdkTests.Util
namespace Cli.FunctionalTests.Util
{
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.IO;
using System.Linq;
using System.Threading;
namespace AspNetCoreSdkTests.Util
namespace Cli.FunctionalTests.Util
{
internal static class IOUtil
{

0
test.sh Executable file → Normal file
View File