-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* system tests concept # Conflicts: # Reqnroll.sln * Update test for problem identified for #54 by @livioc * replace BoDi with Reqnroll.BoDi * portability test POC * Undo 'Microsoft.Build.Locator' for MsBuild location and make it flexible with env vars (#75) * add portability compilation tests with msbuild * Add system tests to CI * Fix system tests to CI * Add TODOs for further portability tests * Fix system tests to CI, take 2 * Change SystemTests to use MsTest * set default target framework to .NET 8.0 * Add .NET Information to CI * test specs filter on CI * Revert "test specs filter on CI" This reverts commit bdcdbaa. * fix specs_filter on CI * speed up build by using heuristics to find MsBuild * speed up build by using global nuget packages folder * cleanup CI script * add CI system test for linux * create Generation test structure * add more categories and exclude .NET Framework and MsBuild tests from linux * Add NUnit and xUnit tests * rename AppConfigDriver to ConfigurationDriver, allow customizing nuget global folder * fix strange test error if .NET 4.6.2 test target was not included in run * Add smoke test * TEST: remove test filter from Linux CI * Add Generation test TODO comments * re-add filter to linux CI * enable parallel system testing * set target fw of Reqnroll.TestProjectGenerator to netstandard2.0 * re-enable all specs tests * code cleanup
- Loading branch information
1 parent
18a05a4
commit 45f6d9c
Showing
49 changed files
with
1,063 additions
and
115 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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<CustomBuildProperties> | ||
<Value>TargetFrameworks = net60</Value> | ||
</CustomBuildProperties> | ||
</Settings> | ||
<Settings /> | ||
</ProjectConfiguration> |
1 change: 0 additions & 1 deletion
1
...oll.TestProjectGenerator/Reqnroll.TestProjectGenerator.Tests/NuGetConfigGeneratorTests.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
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
10 changes: 0 additions & 10 deletions
10
Reqnroll.TestProjectGenerator/Reqnroll.TestProjectGenerator/AppConfigDriver.cs
This file was deleted.
Oops, something went wrong.
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
29 changes: 29 additions & 0 deletions
29
Reqnroll.TestProjectGenerator/Reqnroll.TestProjectGenerator/ConfigurationDriver.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,29 @@ | ||
using System; | ||
using System.Configuration; | ||
|
||
namespace Reqnroll.TestProjectGenerator; | ||
|
||
public class ConfigurationDriver | ||
{ | ||
public string TestProjectFolderName => GetConfigSetting("testProjectFolder", "RR"); | ||
public string VSTestPath => GetConfigSetting("vstestPath", "Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow"); | ||
public string MsBuildPath => GetConfigSetting(nameof(MsBuildPath)); | ||
public bool PipelineMode => GetConfigSwitch(nameof(PipelineMode)); | ||
public string GlobalNuGetPackages => GetConfigSetting(nameof(GlobalNuGetPackages)); | ||
|
||
public bool GetConfigSwitch(string key, bool defaultValue = false) | ||
{ | ||
return GetConfigSetting(key, defaultValue.ToString()).Equals("true", StringComparison.InvariantCultureIgnoreCase); | ||
} | ||
|
||
public string GetConfigSetting(string key, string defaultValue = null) | ||
{ | ||
var envSetting = Environment.GetEnvironmentVariable($"REQNROLL_TEST_{key}".ToUpperInvariant()); | ||
if (!string.IsNullOrEmpty(envSetting)) return envSetting; | ||
|
||
var configSetting = ConfigurationManager.AppSettings[key]; | ||
if (!string.IsNullOrEmpty(configSetting)) return configSetting; | ||
|
||
return defaultValue; | ||
} | ||
} |
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.