Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
singh-swati28
@singh-swati28
Hi @baev ,
How can I log @BeforeClass and @AfterClass methods failures in Allure report. In my project setup is being done in Junit @BeforeClass and @AfterClass, so incase there is failure in that, how can we report that using Allure.
Please help.
Thanks in advance!!
Alberto Bar-Noy
@AlbertoBN
Hello all. I have a dotnet core 3.1 specflow project with NUnit and Allure reports. . Tests are failing but the allure reports show that all tests passed. Files are being vreated but failures are not being picked up. Any suggestions? Thanks in advance
fescobar
@fescobar
@AlbertoBN if you are running in any ci server, you have to clean your workspace(results) before running
Alberto Bar-Noy
@AlbertoBN
@fescobar Local run. I clean the CI folder but before I go to the CI I like to check locally and I see no failures in the reports
fescobar
@fescobar
I will have to see your project,
Alberto Bar-Noy
@AlbertoBN
@fescobar Where do I send an example?
skip the docker part
you can zip your project and send it her
drag and drop the zip here
Alberto Bar-Noy
@AlbertoBN
On it
Thanks
@fescobar These examples are full framework and I am in .Net Core 3.1 Maybe this is the problem?
fescobar
@fescobar
I'm not aware if supports your version, it should.
Alberto Bar-Noy
@AlbertoBN
@fescobar small simple and reproducible. Thanks!
fescobar
@fescobar
give me a few mins
are you running from VS2019? or command line?
@AlbertoBN
Alberto Bar-Noy
@AlbertoBN
command line as the TeamCity will
dotnet test
fescobar
@fescobar
I can reproduce it
let me see what you have wrong
Alberto Bar-Noy
@AlbertoBN
Thanks
fescobar
@fescobar
You don't need nunit allure package
Alberto Bar-Noy
@AlbertoBN
Interesting.... hld on
you are not running nunit, you are running specflow
Alberto Bar-Noy
@AlbertoBN
Confusing since specflow when creating the project asked which test runner I use...
fescobar
@fescobar
I know
there is no too much work in C#
I had to guess and try with different versions to have that working
Alberto Bar-Noy
@AlbertoBN
tried.no luck. I guess I will have to fight with it. Thanks anyway
Alberto Bar-Noy
@AlbertoBN

So for whoever may need this in the future this is the setup and version numbers that make it work

<PackageReference Include="Allure.Commons" Version="3.1.0.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="SpecFlow" Version="3.3.57" />
<PackageReference Include="SpecFlow.Allure" Version="3.1.0.6" />
<PackageReference Include="SpecFlow.Assist.Dynamic" Version="1.4.2" />
<PackageReference Include="SpecFlow.NUnit" Version="3.3.57" />
<PackageReference Include="nunit" Version="3.13.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

fescobar
@fescobar
you need to implement specflow3 and follow the example
you have multiple deprecated packages
you need the SpecFlow.Tools.MsBuild.Generation
Orozbek Askarov
@Askarov5
Hi everyone, are there any ways to open allure-report in a specific address(after it's generated)? Or How do i know in which address is gonna be served my allure-reports after I run "allure open" command?
fescobar
@fescobar
himali2402
@himali2402
Hi
I am getting this error when i run mvn allure:report
No plugin found for prefix 'allure' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories
please let me know how to generate allure report in Maven TestNg framework
Orozbek Askarov
@Askarov5
@fescobar Are there other ways to detect "allure open" address, i was integrating the report to custom UI application for test execution.
himali2402
@himali2402
@frescobar I am getting this error when i run mvn allure:report
No plugin found for prefix 'allure' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories
please let me know how to generate allure report in Maven TestNg framework
himali2402
@himali2402
@baev I am getting this error when i run mvn allure:report
No plugin found for prefix 'allure' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories
please let me know how to generate allure report in Maven TestNg framework
fescobar
@fescobar
@himali2402 check java example here (skip docker part) https://github.com/fescobar/allure-docker-service-examples
himali2402
@himali2402
@frescobar Thanks that helped please if you could also help I am still not able to generate sllure report in the framework, a temporary one is generated , how can i generate it in the framework, how to give the path for the report to be genarted in the framework in a folder, it is genarted in a temporary folder when i run mvn allure:serve at the moment
himali2402
@himali2402
@frescobar how can i generate allure report from eclispe, like after i run the results