-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate a tests report #293
Comments
Agree with @le-yams . We test our model using the openfga cli in azure devops pipeline and would love to be able to export it in a format that is understood by azure devops. Hence, +1. |
@homorozeanu @le-yams would using https://github.com/ctrf-io work for you? |
@aaguiarz Unfortunately from what I know neither Azure DevOps nor NUnit (the testing framework that we use for our dotnet tests) understand and can export/import test results in CTRF format. |
@aaguiarz it would be ok on our side (a github action to publish the test results is being written so it will fit our needs). As I said, the downside of this choice is that, as it's pretty new, this format is not yet well supported by most of CI tools. But this downside would be also true if we use a "yet another home made test report fornat". I would be interested in others openfga cli core-team developers opinion, @rhamzeh any thought about this? |
As you might have seen @aaguiarz mention, last week we had a hackathon at Okta. I decided to spend some time working on integrating Cucumber (via godog) into the If you're curious, the work is at https://github.com/openfga/cli/tree/feat/support-gherkin-syntax (I'll be splitting this into multiple PRs eventually) and you can install it using There's also an example of the Gherkin syntax here that demonstrates the FolderBox store and ABAC store tests converted into the gherkin syntax |
Hello @ewanharris, Is it planned to go further with the gherkin syntax support? |
Hey @yann-disanto, sorry for the delay! Yes I think it's something that we'd like to continue with, although I don't really have a timeline for when. We'd most likely release the gherkin syntax work initially and then at a later date switch to using it to as the "backend" for the yaml tests once we're confident in the syntax, my focus has been elsewhere the last few weeks but I'll see if I can set some time aside soon to do that. |
Hello,
Having the possibility to generate a test report would be great (especially to publish them in CIs).
No sure which format to use. JUnit is the most commonly used and a lot of tools supports it but ... xml 😢.
The testing tools generating json reports seems to all use a custom format 😞.
Looking into this I came across this initiative that is very new but could be interesting.
What do you think about it?
Regards,
Yann
The text was updated successfully, but these errors were encountered: