Noksa / Allure.NUnit

C# NUnit Allure with improvements and SpecFlow3 adapter
MIT License
18 stars 6 forks source link

Unable to write to the Allurereport with [AllureStep] #42

Closed Rupasri33 closed 4 years ago

Rupasri33 commented 4 years ago

Describe the bug I'm using a library project that uses NOKSA.Allure 3.10 that has methods with [AllureStep] and importing this library in to Tests project and when I initiate the test ,nothing is logged in to report I have Allureconfig.json in the working directory and set the properties set to copy to output folder

I see the error below in event viewer with dump file (attached) do you have any leads to the error ?

dumpFile.txt

Application: Noksa.Allure.StepInjector.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileLoadException at Noksa.Allure.StepInjector.Injection.Injector..ctor(System.Collections.Generic.IEnumerable`1) at Noksa.Allure.StepInjector.Program.Main(System.String[])

Versions -Net Framework :4.7.2

Any help is greatly appreciated.

Noksa commented 4 years ago

Hello. Can you please upload a project, where I can reproduce error? Thanks

Rupasri33 commented 4 years ago

I could figure out the issue. The issue is with using the Latest version of Newtonsoft.json package 12.0.3 and Mono.Cecil version 0.11.2 with Noksa.Nunit.Allure 3.1.0

I installed Noksa.Nunit.Allure 3.1.0 but later updated to the latest versions of newtonsoft.json and Mono.Cecil version that caused the issue . The warning message is also noted in build log with 532462766 exit code for Noksa.allure.StepInjector. C# compiler throws this error

Noksa commented 4 years ago

@Rupasri33 This is a bug. I will see what has changed in the new version of mono cecil. As workaround - don't upgrade mono cecil version.

Rupasri33 commented 4 years ago

Thank you!

Noksa commented 4 years ago

Released in new beta