make allure more easily available for java execution #2749
maxandersen
started this conversation in
Ideas & Feedback
Replies: 1 comment
-
p.s. right now this allure.java is in a jbang script - but we could also just make it part of the command-line jar itself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was looking for ways to easily render junit reports when using jbang to run unittests - I was happy to find allure; even happier to discover its all just a java project meaning I could make it super easy to install.
Initially i just did
jbang io.qameta.allure:allure-commandline:RELEASE
but then i realized none of the plugins specfically the junit xml parsers was being picked up. Thus I had to do it slightly differently.What I've done is that if you are user you now just need to install https://jbang.dev and you can do:
jbang app install allure@jbanghub/allure
from then on
allure
is in your path and you can run it.You can also just run it as
jbang allure@jbanghub/allure ...
and not require installing it.This will work from any where you can run java (jbang will reuse your java runtime/sdk or get one when/if you need so).
The "magic" is in https://github.com/jbanghub/allure - where I made a script: https://github.com/jbanghub/allure/blob/main/allure.java which mimicks what already happens when you use maven plugin and download allure distro when/if needed.
Right now that code is more a proof of concept - and I used jbang itself to implement it which is probably overkill - but it works.
Now:
I think it would be awesome if there was a install option that works on any platform anywhere described on https://allurereport.org/docs/install/
jbang allure@allure-framework
instead.Beta Was this translation helpful? Give feedback.
All reactions