-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Net6 target for DynamoCoreTests.dll (WIP for feedback) (#13766)
* add new action * try general var syntax * update * dont use regen in core * try also not generating resource binaries for string resources * pull actual code changes * linux paths * test command * add single test project to sln * add new nuspec * add post script * revert adding test proj build portable pdbs * build portable in release update nuspec * remove publish script * remove test from github action * review comments * by hook or by crook we'll reuse existing test base classes. * this works * both solutions build at this point unclear if tests pass * try running some linux tests * build current branch from fork * updates * updates * update * ugh fix bug * fix test * fix more tests * fix more tests * fix mono build * try cat = unittests * linux not finding any tests * Update dynamoNet6.0_linux_build.yml * dont run tests * dont include castle core in build upgrade moq * remove net60smoketests unify on 17 version of ms.net.test.sdk * update python and fix refs * remove duplicate ms.net.test.sdk ref * introduce junit logger add back ms test sdk - its needed in bin folder. * use custom dictionary comparison function in nunit * compare keys and values when encountering dictionary - toString was not precise enough. * fix test mark test failure * introduce a failure * update dscpython with split * fix build for nunit2 * remove failure * copy moqs deps to test deps directory * fix * find moq for tests that were failing * review comments * review comments * mark failure
- Loading branch information
1 parent
4e5a9a2
commit 1088c1e
Showing
82 changed files
with
699 additions
and
314 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using System.IO; | ||
using System.Reflection; | ||
using Dynamo.Utilities; | ||
using NUnit.Framework; | ||
|
||
[SetUpFixture] | ||
public class Setup | ||
{ | ||
private AssemblyHelper assemblyHelper; | ||
|
||
#if NETFRAMEWORK | ||
[SetUp] | ||
#elif NET6_0_OR_GREATER | ||
[OneTimeSetUp] | ||
#endif | ||
public void RunBeforeAllTests() | ||
{ | ||
var assemblyPath = Assembly.GetExecutingAssembly().Location; | ||
var moduleRootFolder = new DirectoryInfo(assemblyPath).Parent; | ||
|
||
var resolutionPaths = new[] | ||
{ | ||
// These tests need "CoreNodeModels.dll" under "nodes" folder. | ||
Path.Combine(moduleRootFolder.FullName, "nodes"), | ||
Path.Combine(moduleRootFolder.Parent.Parent.Parent.FullName, "test", "test_dependencies") | ||
}; | ||
|
||
assemblyHelper = new AssemblyHelper(moduleRootFolder.FullName, resolutionPaths); | ||
AppDomain.CurrentDomain.AssemblyResolve += assemblyHelper.ResolveAssembly; | ||
} | ||
|
||
#if NETFRAMEWORK | ||
[TearDown] | ||
#elif NET6_0_OR_GREATER | ||
[OneTimeTearDown] | ||
#endif | ||
public void RunAfterAllTests() | ||
{ | ||
AppDomain.CurrentDomain.AssemblyResolve -= assemblyHelper.ResolveAssembly; | ||
assemblyHelper = null; | ||
} | ||
} |
Oops, something went wrong.