allure-zio-core


License

License

GroupId

GroupId

io.cronenbergworld
ArtifactId

ArtifactId

allure-zio-core_2.13
Last Version

Last Version

0.0.1-RC2
Release Date

Release Date

Type

Type

jar
Description

Description

allure-zio-core
allure-zio-core
Project URL

Project URL

https://github.com/Cronenberg-World/allure-zio-test
Project Organization

Project Organization

The Cronenberg World
Source Code Management

Source Code Management

https://github.com/Cronenberg-World/allure-zio-test

Download allure-zio-core_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/io.cronenbergworld/allure-zio-core_2.13/ -->
<dependency>
    <groupId>io.cronenbergworld</groupId>
    <artifactId>allure-zio-core_2.13</artifactId>
    <version>0.0.1-RC2</version>
</dependency>
// https://jarcasting.com/artifacts/io.cronenbergworld/allure-zio-core_2.13/
implementation 'io.cronenbergworld:allure-zio-core_2.13:0.0.1-RC2'
// https://jarcasting.com/artifacts/io.cronenbergworld/allure-zio-core_2.13/
implementation ("io.cronenbergworld:allure-zio-core_2.13:0.0.1-RC2")
'io.cronenbergworld:allure-zio-core_2.13:jar:0.0.1-RC2'
<dependency org="io.cronenbergworld" name="allure-zio-core_2.13" rev="0.0.1-RC2">
  <artifact name="allure-zio-core_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.cronenbergworld', module='allure-zio-core_2.13', version='0.0.1-RC2')
)
libraryDependencies += "io.cronenbergworld" % "allure-zio-core_2.13" % "0.0.1-RC2"
[io.cronenbergworld/allure-zio-core_2.13 "0.0.1-RC2"]

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.4
dev.zio : zio_2.13 jar 1.0.4
dev.zio : zio-test_2.13 jar 1.0.4
dev.zio : zio-test-sbt_2.13 jar 1.0.4
io.qameta.allure : allure-java-commons jar 2.13.8
io.qameta.allure : allure-attachments jar 2.13.8

Project Modules

There are no modules declared in this project.

Allure ZIO Test

GitHub Workflow Status (branch) Maven Central Average time to resolve an issue Percentage of issues still open javadoc Badge-Scaladex-page Gitpod ready-to-code

Download

You can use one of the following ways to get Allure:

  • Grab it from bintray (see Downloads section).
  • Using Homebrew:
brew install allure
  • For Windows, Allure is available from the Scoop commandline-installer. To install Allure, download and install Scoop and then execute in the Powershell:
scoop install allure

Usage API in ZIO/Scala project

Add Allure plugin to project

In project/plugin.sbt file add the next line

addSbtPlugin("io.cronenbergworld" % "allure-zio-plugin" % "<last-version>")

Enable this plugin by adding the next line in build.sbt file

enablePlugins(AllureAutoPlugin)
import zio.test._
import zio.test.allure.AllureRunnableSpec
import zio.test.allure.Tags._

object ExampleSpec extends AllureRunnableSpec {

  def spec = suite("some suite")(
    test("failing test") {
      val stuff = 1
      assert(stuff)(Assertion.equalTo(2))
    } @@ owner("ExampleOwner") @@ custom("google.com", "google.com"),
    test("failing test 2") {
      val stuff = Some(1)
      assert(stuff)(Assertion.isSome(Assertion.equalTo(2)))
    },
    test("failing test 3") {
      val stuff = Some(1)
      assert(stuff)(Assertion.isSome(Assertion.not(Assertion.equalTo(1))))
    },
    test("passing test") {
      assert(1)(Assertion.equalTo(1))
    }
  ) @@ epic("ExampleEpicName")
}

You need to use zio.test.allure.AllureRunnableSpec instead of zio.test.DefaultRunnableSpec

Get Allure Report

If you want to generate report and up the server you need to use

allure serve allure-results

For generate HTML report use

allure generate allure-results

Demo

io.cronenbergworld

Versions

Version
0.0.1-RC2
0.0.1-RC1