-
Notifications
You must be signed in to change notification settings - Fork 26
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
detailed test step information in the test result #159
Comments
What do you mean with test steps? |
@matz3 I mean the results of all the check points |
I'm still not sure what you mean. This plugin offers two modes. One is "script" which should not influence the way test results are recorded. This needs to be done in combination with a karma plugin like karma-qunit. The other one is "html", which has built-in reporting for the QUnit framework, which also means no other test frameworks can be used in this mode. Here it could be that our code doesn't report results back to karma in a proper way, although I'm not aware of any known issues. Are you able to provide a reproducible example project? |
@matz3 I cannot provide our project, so I will need to write a demo. I can only explain the issue as mush as I can while I wrote it. So when you write a karma-reporter plugin, you can rewrite the callback function onSpecComplete, which receives an object 'result' that gives you information of the test case that has been completed. However, the information doesn't contain which check point the test passed and which isn't. |
Got it, thanks 👍 |
@matz3 I just looked in to the karma-ui5 source code. It seems in 'client/browser.js' the Qunit.log() won't send the result to karma. Is it possible that you provide the result out of the input 'details' and send it to karma? |
Currently it is collecting all errors and then posting them within Feel free to submit a PR. |
@matz3 Hi, I submitted PR#161 but the pipeline seems not running, is it expected to happen? |
Hi, |
Sorry for the delay. I've added comments to your PR. |
Thanks for the review. I'm changing the code accordingly. |
I would like to understand how the adopted report is used in combination with cucumber and why those assertions should also be reported as a "test". |
Hi @matz3 , We've just introduced Behavior Driven Development into our development process. During the development, integration tests, OPA tests, would be generated by 'feature files', which are files that describe the expected behaviors of the product written in Gherkin. In the files, the behaviors would be broken down into features, features broken down into several scenarios, and scenarios into steps. For instance, a 'feature' of the app is Project Creation. A user can create different types of projects; hence there are various 'scenarios'. The actions that a user interacts with the app are 'steps'. Therefore In the integration tests, the assertions suggest the 'steps'. |
Ok thanks, I got it now. Sounds reasonable to have this, although it should ideally also be added to the |
Hi @matz3 , integration tests has been finished. Would you please take a look? |
HI,
our team is currently running BDD and wants to generate a cucumber report. I've written an Karma plugin but found that test steps information weren't in the result.
Is there anyway I could get such information? If not, is there a plan of expossing it?
The text was updated successfully, but these errors were encountered: