문제 설명
.Net Core에서 NUnit 3와 Allure 통합 (Allure integration with NUnit 3 in .Net Core)
.Net Core에서 NUnit 3를 사용하여 단위 테스트를 실행하고 있습니다. 보고를 위해 Allure를 사용하고 싶습니다. 겪고 있는 문제는 NUnit.Allure 너겟 패키지만 (.net core) 프로젝트에 추가할 수 있지만 네임스페이스는 해결할 수 없다는 것입니다. 가까운 장래에 .Net Core에 대한 Allure 지원을 추가할 계획이 있습니까?
참조 솔루션
방법 1:
I am using Allure with .Net Core 3.1. These are the steps I followed:
- Add Allure.Commons and NUnit.Allure to your test project.
- Add allureConfig.json file to your test project and ensure to set it to be copied to the output directory
- Add the [AllureNUnit] to your test classes
That is all!. You will get the output file generated by allure in the location you specified in the allureConfig.json. With those files you will be able to generate the report.
(by Lehlohonolo Letaoana、NicoPaez)