tests OK
This commit is contained in:
parent
2615b4e86b
commit
3508f0a55d
4 changed files with 11 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ namespace yavscTests.ServerFixtures
|
|||
_instanceCount++;
|
||||
if (!_isInitialized)
|
||||
{
|
||||
|
||||
SetupHost().Wait();
|
||||
_isInitialized = true;
|
||||
}
|
||||
|
|
@ -127,8 +128,9 @@ namespace yavscTests.ServerFixtures
|
|||
var yavscOrgPath = Path.GetFullPath(
|
||||
Path.Combine(slnDir,
|
||||
"src/Yavsc.Org"));
|
||||
Environment.CurrentDirectory = yavscOrgPath;
|
||||
|
||||
|
||||
Directory.SetCurrentDirectory(yavscOrgPath);
|
||||
builder.AddConfiguration("org").AddInMemoryCollection(new Dictionary<string, string?>
|
||||
{
|
||||
[$"ConnectionStrings:{YavscConstants.YavscConnectionStringName}"] = "InMemory"
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@
|
|||
"UserName": "fakeuser",
|
||||
"Password": "f/\\kePassw0rd"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SLNDIR": "/home/paul/Workspace/yavsc"
|
||||
|
||||
}
|
||||
|
|
|
|||
5
test/yavscTests/xunit.runner.json
Normal file
5
test/yavscTests/xunit.runner.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"diagnosticMessages": false,
|
||||
"methodDisplay": "classAndMethod",
|
||||
"parallelizeTestCollections": true
|
||||
}
|
||||
|
|
@ -46,4 +46,10 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
|
||||
</ItemGroup>
|
||||
<Target Name="CopyStaticWebAssetsManifest" AfterTargets="Build">
|
||||
<Copy SourceFiles="$(OutDir)Yavsc.Org.staticwebassets.endpoints.json"
|
||||
DestinationFiles="$(OutDir)testhost.staticwebassets.endpoints.json"
|
||||
SkipUnchangedFiles="true"
|
||||
Condition="Exists('$(OutDir)Yavsc.Org.staticwebassets.endpoints.json')" />
|
||||
</Target>
|
||||
</Project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue