Giter Site home page Giter Site logo

Comments (10)

eroshenkoam avatar eroshenkoam commented on June 12, 2024 2

@mttmllns I made new version of allure-gradle few hours ago)

from allure-gradle.

eroshenkoam avatar eroshenkoam commented on June 12, 2024

I will fix in next release, ty for feedback.

from allure-gradle.

eroshenkoam avatar eroshenkoam commented on June 12, 2024

@mttmllns why are you using allure 2.2.0? version 2.3.5 is already released)

from allure-gradle.

mttmllns avatar mttmllns commented on June 12, 2024

Didn't notice we were behind. Thanks for the heads up!

from allure-gradle.

dsvoronin avatar dsvoronin commented on June 12, 2024

Not sure if related, but i get

Execution failed for task ':api:allureServe'.
> SourceSet with name 'test' not found.

on android-module with ./gradlew api:allureReport. build/allure-report seems contains correct contents

apply from: "$rootDir/gradle/android-library.gradle"  // includes kotlin-android, com.android.library and stuff
apply plugin: 'kotlin-kapt'

apply plugin: 'io.qameta.allure'

allure {
    version = '2.3.5'
    autoconfigure = true
    aspectjweaver = true
    allureJavaVersion = '2.0-BETA18'
}

from allure-gradle.

mttmllns avatar mttmllns commented on June 12, 2024

"SourceSet with name 'test' not found."

Running into this, too. Looks like it's due to this call:

https://github.com/allure-framework/allure-gradle/blob/master/src/main/groovy/io/qameta/allure/gradle/util/BuildUtils.groovy#L34

I don't believe android projects use the traditional sourceSets so there is no "test" SourceSet. This code should be a little more resilient and check if there's even a "test" sourceset before calling getByName().

from allure-gradle.

aikfiend avatar aikfiend commented on June 12, 2024

@eroshenkoam, here's a stacktrace

plugins {
    id 'java-library'
    id 'io.qameta.allure' version '2.8.1'
}

ext.junitVersion = '5.7.0'
ext.allureVersion = '2.13.8'

allure {
    version = allureVersion
    autoconfigure = true
    aspectjweaver = true
    useJUnit5 {
        version = allureVersion
    }
}

Build successful in case of configuration = "testImplementation"

String configuration (default = 'testCompile') - configuration name where to bind plugin dependencies
by documentation

from allure-gradle.

vlsi avatar vlsi commented on June 12, 2024

Hi, I believe #61 fixes the issue as the plugin no longer adds dependencies to testCompile, and it should handle the absence of test sourceSet.

Please feel free to try it and provide feedback

from allure-gradle.

serpro69 avatar serpro69 commented on June 12, 2024

Was about to submit a PR for this myself when saw there's already #61 present.
Any plans to merge this soon @eroshenkoam ?

from allure-gradle.

vlsi avatar vlsi commented on June 12, 2024

Resolved in #61

from allure-gradle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.