Hi, We tried to run test suite, but we are getting following error.
The active test run was aborted. Reason: Test host process crashed [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.3+1b45f5407b (64-bit .NET 5.0.5) [xUnit.net 00:00:01.60] Discovering: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.63] Discovered: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.64] Starting: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests The active test run was aborted. Reason: Test host process crashed
We have changed version from v3.0.4 to v4.3.1, please help me for resolve this issue. what i am missing.
- ABP Framework version: v4.3.1
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
26 Answer(s)
-
0
We just updated Abp.io version from v3.0.4 to v4.3.1 & VS version 16.10, after just added new test case, but we could run the test case.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
can we connect on online session?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
@maliming, I have fixed that issue can we connect again on online session ?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Yes, i Run the test again, but i am getting An error occurred during ConfigureServices phase of the module Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=4.3.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---- System.IO.IOException : The process cannot access the file **************.Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process.
& also tests get aborted.Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi, Due to security reason i can't share project & there are dependent libraries, so we can connect on zoom call.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
so we can connect on zoom call.
ZOOM is so slow,
The process cannot access the file **************.Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process.
You can use code below in your test module.
public override void PreConfigureServices(ServiceConfigurationContext context) { PreConfigure<AbpIdentityServerBuilderOptions>(options => { options.AddDeveloperSigningCredential = false; }); PreConfigure<IIdentityServerBuilder>(identityServerBuilder => { identityServerBuilder.AddDeveloperSigningCredential(false, System.Guid.NewGuid().ToString()); }); }Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi, I am still getting that same error. I put this code in ***********************\modules\profile\test\SCV.Litmus.ProfileManagement.TestBase/ProfileManagementTestBaseModule.cs
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi, Lets try with zoom again. Or is there any other way to connect online.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
https://support.abp.io/QA/Questions/1667/Regarding-Unit-Test-Case-Issue#answer-4b5f6c2b-392f-3817-6424-39fe3bb53304
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,We are still not able to figure out what is root cause of this issue. We tried all the tricks suggested by you. though we are able to stopped the creation of tempkey.jwk file but still we are getting same error as "The process cannot access the file **************.Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process." This is seems to be blocker for us and looks like we need to address this issue on priority so could you please schedule live session so that we can work together to identify the issue. Thanks you.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
try to connect through online session, I can not provide project. remote is very slow----should we try again?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Lets have a zoom call first then if requires we will work upon creating sample project,but as per our current timeline its little difficult for us to create sample project which produces our issue.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi, **"The process cannot access the file .Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process." **
this Issue is resolved, but following issue still there.
The active test run was aborted. Reason: Test host process crashed [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.3+1b45f5407b (64-bit .NET 5.0.5) [xUnit.net 00:00:01.60] Discovering: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.63] Discovered: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.64] Starting: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests The active test run was aborted. Reason: Test host process crashed
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
This question has been automatically marked as stale because it has not had recent activity.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)