Giter Site home page Giter Site logo

Comments (9)

vlsi avatar vlsi commented on June 1, 2024

This PR adds --host and --port parameters to allureServe and allureAggregateServe tasks: #61

Please feel free to try it and provide feedback

from allure-gradle.

pandoras-toolbox avatar pandoras-toolbox commented on June 1, 2024

How to use it with Gradle? This does not work: ./gradlew allureServe --host localhost

Unknown command-line option '--host'.

The problem is that the IP address which Allure serve picks is wrong on the developer MacBooks of some colleges. Why? I have no idea. But with "localhost" for the host it works. How can we configure that Allure serve uses "localhost" instead of any other IP address which does not work on some computers?

from allure-gradle.

vlsi avatar vlsi commented on June 1, 2024

Which plugin version do you use?

from allure-gradle.

pandoras-toolbox avatar pandoras-toolbox commented on June 1, 2024

The version of io.qameta.allure is 2.8.1. We are still using Gradle 6.9, I think newer plugin versions require at least Gradle 7.

from allure-gradle.

vlsi avatar vlsi commented on June 1, 2024

Please upgrade.

https://github.com/allure-framework/allure-gradle#basic-usage

Note: 2.9+ requires Gradle 5.0+

from allure-gradle.

pandoras-toolbox avatar pandoras-toolbox commented on June 1, 2024

I upgraded the Allure plugin to 2.9.4, the option --host now can be used, thank you. But in IntelliJ it does not display anymore the Gradle tasks "allureReport" and "allureServe". If I want them back I have to add the tasks myself in our project I guess.

from allure-gradle.

vlsi avatar vlsi commented on June 1, 2024

Please check "verification" task group, the tasks should be there.

from allure-gradle.

pandoras-toolbox avatar pandoras-toolbox commented on June 1, 2024

Oh, yeah, thank you again!

from allure-gradle.

RamiaSaidawi avatar RamiaSaidawi commented on June 1, 2024

I updated to 2.9.6 and was able to run allureServe with specific host

created this task
task('localAllureServe', type: Exec, group: 'verification') {
executable './gradlew'
args 'allureServe', '--host', 'localhost'
}

thank you

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.