-
Notifications
You must be signed in to change notification settings - Fork 49
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
Initial set of report generator update #105
Conversation
Remaining tasks:
Also,
|
First reworked version for "Conformance by Test Suites" section. I lack of CSS kung-fu. Maybe, we need adjustments on fonts to be used in the statements and tables. I'm start feeling there is a small value for the "Conformance by method" section, so commented out for now. |
@shigeya, this is wonderful, thank you! A couple of thoughts:
|
thanks.
Good to hear that.
Looking through the test report again, it seems there are some cases not handled correctly. Will check them.
We need to remove examples from the report.
Will check the code.
I agree. Actually, that is my preference. Since I'm relying on Orie's code I kept the flow of the report generation. The current report page contains too much automation in the report. Since the number of tests entry is increasing, the report is getting larger and slower, that's what we don't want to see. If it's okay, I'll move most of the code from the index.html into the report generator. Also, remove the report JSON in the report, and maybe removing the On Deman Test section. |
Consolidated parameters into a single column, also showing parameters that show how each of the tests is different.
it was not tallying problem but the test code on 5.1.3. But now, the empty table causes the table for |
4cf9626
to
ecd3077
Compare
I will work on moving most of the report generation code in index.html into the report generator code, then good to merge. We can improve later, including the matrices. I don't want to away from up-to-date I leave resolution/derefencing as is for now. |
ecd3077
to
0bb5f9b
Compare
0bb5f9b
to
a530b57
Compare
Fixed. I'll move the code in HTML to the report generator script next. |
this looks awesome! great work on this. |
- Each suite's default.js read as default - Test suites and configuration appears in suites/suits-config.js Co-authored-by: Orie Steele <[email protected]>
Adding/cleaning outermost descrption wrappers to have suite name (suites/did-*) and implementation name.
- `todo` tests are marked with different emoji, not as a failure. - result table to include multiple parameters including MIME subtype. MIME subtype column removed for better use of width.
a530b57
to
8d68435
Compare
Needs refactoring, but it works for now.
8d68435
to
3e557c4
Compare
It was easy. Now it is generating a report by Besides the matrix generation, it's done. please review and merge. For the testing purpose, need PR #110 to test to pass ... to generate a report. |
@@ -8,7 +8,7 @@ module.exports = async (suiteName, config) => { | |||
// ci: true, | |||
// silent: true, | |||
roots: [path.resolve(__dirname, `../suites/${suiteName}`)], | |||
globals: JSON.stringify({ suiteConfig: config }), | |||
globals: JSON.stringify({ systemSuiteConfig: config }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for folks wondering, this is the magic of our jest tests... we are injecting a global json object here... which is the same object that an http client can submit to an http web server to generate the report json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. It was a shock to understand that globals
is a jest's option. The name globals
is obvious from the feature, but the name is strange for an optional parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, it looks excellent.
This PR has been open for 6 days and has multiple approvals, merging. |
Initial work for report generation. Related to Issue #78.
I'm sending this PR to provide the latest status of this work and wish to have feedbacks on the report structure since I'm changing that a lot.
suites/suite-config.json
. Currently, only provides the list of test suites. The configuration parameters in this file override configurations in each of the suites. Currently, each of thedefault.js
files contains defaults for each of the suites. I think these should be moved tosuite-config.json
Preview | Diff