allure-framework / allure-csharp

Allure integrations for C# test frameworks
https://allurereport.org/
Apache License 2.0
106 stars 65 forks source link

Update Allure.Reqnroll adapter to the latest (2.0.0) Reqnroll version #508

Closed Fedoop1 closed 4 months ago

Fedoop1 commented 4 months ago

I'm submitting a ...

What is the current behavior?

Allure.Reqnroll 2.12 is not compatible with Reqnroll 2.0.0 which has crucial fixes for our project

What is the expected behavior?

I'd appreciate it if someone could add support to the latest Reqnroll version. There shouldn't be lots of changes

What is the motivation / use case for changing the behavior?

This fix

Please tell us about your environment:

Other information

At least DI was broken:

System.IO.FileNotFoundException: Could not load file or assembly 'BoDi, Version=1.5.0.0, Culture=neutral, PublicKeyToken=ff7cd5ea2744b496'. The system cannot find the file specified.
File name: 'BoDi, Version=1.5.0.0, Culture=neutral, PublicKeyToken=ff7cd5ea2744b496'
   at Allure.ReqnrollPlugin.AllurePlugin.SetupAllure(Object _, CustomizeTestThreadDependenciesEventArgs args)
   at Reqnroll.Plugins.RuntimePluginEvents.RaiseCustomizeTestThreadDependencies(ObjectContainer testThreadContainer)
   at Reqnroll.Infrastructure.ContainerBuilder.CreateTestThreadContainer(IObjectContainer globalContainer)
   at Reqnroll.TestRunnerManager.CreateTestRunnerInstance()
   at Reqnroll.TestRunnerManager.CreateTestRunner(String testWorkerId)
   at Reqnroll.TestRunnerManager.<>c__DisplayClass35_0.<GetTestRunnerWithoutExceptionHandling>b__0(String workerId)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Reqnroll.TestRunnerManager.GetTestRunnerWithoutExceptionHandling(String testWorkerId)
   at Reqnroll.TestRunnerManager.GetTestRunner(String testWorkerId)
   at Reqnroll.TestRunnerManager.OnTestRunStartAsync(Assembly testAssembly, String testWorkerId, IContainerBuilder containerBuilder)