Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Add ScalaTest Listeners-Adaptor #162

Closed
dmakhno opened this issue Feb 28, 2014 · 8 comments
Closed

Add ScalaTest Listeners-Adaptor #162

dmakhno opened this issue Feb 28, 2014 · 8 comments

Comments

@dmakhno
Copy link

dmakhno commented Feb 28, 2014

It seems need to implement Reporter with specific to
Allure functionality, taking in account that ScalaTest may have nested suites

I hope 'ru.yandex.qatools.allure.annotations' will work as expected without any actions.

This should allow to start using it with sbt by passing reporter param to Runner:
something like

val project = project(".")
    .libraryDependencies(
"ru.yandex.qatools.allure" % "allure-scalatest-adaptor" % Versions.allure
)
#and for scopes...
testOptions in scope <+= Tests.Argument(TestFrameworks.ScalaTest, "-C", "ru.yandex.qatools.allure.scalatest.AllureTestReporter")

and then, incrementally,
new sbt-plugin might add this dependencies for all test, providing step that executed after test, testQuick, testOnly sbt command to generate report.

@bvenners, @cheeseng, you might be interested in this. If you have ideas how to do it better, please share your thought.

Inspired By: Selenium Camp 2014

@baev baev added this to the unknown milestone Mar 4, 2014
@dmakhno
Copy link
Author

dmakhno commented Mar 6, 2014

@eroshenkoam
Can you please point me, when I have xml, what I should do to get json and html report?

@dmakhno
Copy link
Author

dmakhno commented Mar 6, 2014

@eroshenkoam
Copy link
Member

if you have folders with allure xml results than you need to use AllureReportGenerator like this:

AllureReportGenerator allureReportGenerator = new AllureReportGenerator(allureInputDirectory);
allureReportGenerator.generate(allureOutputDirectory);

after that in allureOutputDirectory you will see the json's in the 'data' subdirectory

@just-boris just-boris changed the title Add ScalaTest Listeners-Adoptor Add ScalaTest Listeners-Adaptor Mar 31, 2014
@baev baev modified the milestones: 1.4, unknown Apr 15, 2014
@vania-pooh
Copy link
Contributor

This one is planned for the nearest future.

@vania-pooh
Copy link
Contributor

@dmakhno Please look at the following repositories: https://github.com/allure-framework/allure-scalatest and https://github.com/allure-framework/allure-scalatest-example They contain a working adapter implementation. What I still don't get is how to annotate "should" blocks with method annotations like @title and so on. Any issues or proposals about it?

@vania-pooh
Copy link
Contributor

Btw, forgot to say that currently adapter is not deployed to Maven so in order to test the example you need to do "sbt publish-local".

@baev baev added the adapters label May 10, 2014
@vania-pooh
Copy link
Contributor

Let's deploy adapter to Maven Central and then close this.

@vania-pooh
Copy link
Contributor

Deployed 1.3.9-SNAPSHOT to Maven Central. Need someone else to test the example.

@baev baev closed this as completed May 28, 2014
@eroshenkoam eroshenkoam modified the milestone: unknown Mar 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants