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
hi
Steps to reproduce the issue
-
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.
-
0
hi
Can you share a minimum project to reprooduce the problem?
-
0
can we connect on online session?
-
0
hi
https://zoom.us/j/96527185686?pwd=YjEwZy9wMkdxM0JveDNmcmJoeWZIQT09
-
0
@maliming, I have fixed that issue can we connect again on online session ?
-
0
Did you run the unit test again? What error do you get now?
-
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.
-
0
hi
Can you share a minimum project? ZOOM is slow, and your project is also complicated.
-
0
Hi, Due to security reason i can't share project & there are dependent libraries, so we can connect on zoom call.
-
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()); }); }
-
0
Hi, I am still getting that same error. I put this code in ***********************\modules\profile\test\SCV.Litmus.ProfileManagement.TestBase/ProfileManagementTestBaseModule.cs
-
0
I suggest you find a way to provide a project that reproduces the problem under the security requirements.
-
0
Hi, Lets try with zoom again. Or is there any other way to connect online.
-
0
https://support.abp.io/QA/Questions/1667/Regarding-Unit-Test-Case-Issue#answer-59af8b61-8270-1c09-71cc-39fe3ba0cb7f
-
0
https://support.abp.io/QA/Questions/1667/Regarding-Unit-Test-Case-Issue#answer-4b5f6c2b-392f-3817-6424-39fe3bb53304
-
0
see this thread https://github.com/abpframework/abp/issues/3194
-
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.
-
0
hi ChetanKumbhar
Your project is very complicated, and the remote is very slow. Please find a way to provide a project.
-
0
Hi,
try to connect through online session, I can not provide project. remote is very slow----should we try again?
-
0
hi
Any project that can reproduce the problem is fine, we don't need your complete code.
-
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.
-
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
-
0
can you explain how did you solve tempkey.jwk problem? can you run the tests in Release mode? (this will filter down to some solution)
-
0
This question has been automatically marked as stale because it has not had recent activity.