I don’t know why, but the tests in one assembly suddenly stopped working.
An error occurred while analysing this project after it was built: NUnit failed to discover the tests in this assembly: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
----> Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
----> Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
I’m not sure where to investigate. The tests run as expected in Rider and Visual Studio, but they do not work in NCrunch.
As far as I can tell, nothing changed on the build server. O:-)
Logs are too long for a chat, so i trimmed some lines....
Code:
[PID:4808 14:08:21.6154 LocalAnalysisTask-103] Launching task: Analysing Sagede.OfficeLine.ControlCenter.MetadataProvider.Test
[PID:4808 14:08:21.6464 LocalAnalysisTask-103] Creating a Dynamic Proxy for System.Web.UI.ICallbackEventHandler handled by assembly C:\Users\spolonski\AppData\Local\NCrunch\Engine\engine_d9090c25-bfc8-4615-94a3-10ea33d73792\Modules\NUnit3\nCrunch.Module.NUnit3.dll
[PID:4808 14:08:21.6464 LocalAnalysisTask-103] Cannot generate proxy. Target proxy type System.Web.UI.ICallbackEventHandler not found in assembly
[PID:4808 14:08:21.6464 LocalAnalysisTask-103] Process could not be found in pool with signature matching: [ProcessSignature:
C:\Users\spolonski\AppData\Local\NCrunch\4808\26\Shared\Sagede.OfficeLine.ControlCenter.MetadataProvider.Test.dll
nCrunch.TestExecution.RemoteTaskRunner
C:\Users\spolonski\AppData\Local\NCrunch\4808\26\Shared\Sagede.OfficeLine.ControlCenter.MetadataProvider.Test.dll.config.ncrunchconfig
x86
(local)
nCrunch.Core.ProcessManagement.DefaultProcessLoader
Framework48
[PID:4808 14:08:21.6464 LocalAnalysisTask-103] Adding external process with Id '8200f4b188374a30b5f3a6f46b04df6a'
[PID:4808 14:08:21.6464 LocalAnalysisTask-103] Starting external process '"C:\Users\spolonski\AppData\Local\NCrunch\Engine\engine_d9090c25-bfc8-4615-94a3-10ea33d73792\nCrunch.TestHost48.x86.exe"' with arguments '4808 nCrunch_c6c78b6d9ecf4b82be12e427aeb4f4a0 8200f4b188374a30b5f3a6f46b04df6a "C:\Users\spolonski\AppData\Local\NCrunch\Engine\engine_d9090c25-bfc8-4615-94a3-10ea33d73792\nCrunch.TestExecution.Net6.dll" nCrunch.TestExecution.RemoteTaskRunner "C:\Users\spolonski\AppData\Local\NCrunch\4808\26\Shared" "False" "C:\Users\spolonski\AppData\Local\NCrunch\4808\26\Shared\Sagede.OfficeLine.ControlCenter.MetadataProvider.Test.dll.config.ncrunchconfig"'
[PID:4808 14:08:21.6624 LocalAnalysisTask-103] Process ID '13084' initialised
[PID:4808 14:08:21.6624 LocalAnalysisTask-103] Connecting to external process '8200f4b188374a30b5f3a6f46b04df6a' with id 13084
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Process '8200f4b188374a30b5f3a6f46b04df6a' with id 13084 is connected and tethered
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\26 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\25 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\24 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\23 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\19 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\6 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\18 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\12 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\7 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\15 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\20 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\17 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\21 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\14 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\13 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\11 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\5 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\4 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\16 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\8 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\9 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\10 (now 3 usages)
[PID:4808 14:08:21.8344 LocalAnalysisTask-103] Registered usage of workspace: C:\Users\spolonski\AppData\Local\NCrunch\4808\22 (now 3 usages)
[PID:4808 14:08:22.1314 LocalAnalysisTask-103] Publishing Event: [TaskProcessIdAssignedEvent:4f6e380c-5894-4671-a452-05c460427978:13084]
[PID:4808 14:08:22.1314 LocalAnalysisTask-103] Event [TaskProcessIdAssignedEvent:4f6e380c-5894-4671-a452-05c460427978:13084] is being published on thread Core to subscriber: ProcessingQueue.taskProcessIdAssigned
[PID:4808 14:08:22.1314 LocalAnalysisTask-103] Calling into task runner to analyse target assembly: C:\Users\spolonski\AppData\Local\NCrunch\4808\26\Shared\Sagede.OfficeLine.ControlCenter.MetadataProvider.Test.dll
[PID:13084 14:08:22.1314 ?-6] Loading tests into NUnit3
[PID:13084 14:08:22.2244 ?-6] Exploring tests using NUnit3
[PID:13084 14:08:22.2714 ?-6] Discovered a total of 0 tests