-
Notifications
You must be signed in to change notification settings - Fork 6
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
Coverage 3.14.0 #314
Coverage 3.14.0 #314
Conversation
Coverage report
Test suite run success460 tests passing in 31 suites. Report generated by 🧪jest coverage report action from 939ca5f |
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.
Small thought on typescript types.
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.
I am not sure how much we care about this, but we should at the very least note it in the release notes. For CMS646, I noticed that the highlighting for v3.3.2 and v3.14.0 are slightly different. While the percentage is the same, looks like some aliases no longer get highlighted. Could be worth investigating if there is a fix and if not, at least noting it.
So it looks like you're seeing a change that was caused by the translator update and not by this PR as 3.3.2-translated measure results before and after this PR change have the same highlighting (alias highlighted), and 3.14.0-translated measure results before and after this PR change have the same highlighting (alias un-highlighted). |
Removes all localids that aren't in the annotation
0f67c5e
to
f20a699
Compare
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.
Just a few small comments but functionality works great! Definitely want to wait to get the correct version of CMS145 to test.
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.
Did a lot of testing on Friday (separate from the task that we have to do additional testing on this) and didn't find any inconsistencies.
Lgtm! 🥳
Summary
Implements an annotation-based coverage approach that only uses local ids that are also in the annotation (and therefore can be seen in the cql coverage highlighting). This mitigates updates in version 3.14.0 of the translator which added many additional local ids that could otherwise impact coverage.
New behavior
Coverage calculations will be approximately the same as for translator 3.3.2. There may be some very small differences in in coverage percentages since this is a new coverage approach, but any coverage gaps should be identifiable for the end user.
Code changes
ClauseResultsHelpers.ts
Update to addfindAnnotationLocalIds
function that identifies all "r"-keyed local ids within an annotation structure. Uses this to limit the final localIds to the ones that can be found in the annotation.ClauseResultsHelpers.test.ts
Updates to "Not Equivalent" and "Not Equal" and addition of a "Not Null" unit test to align with new localid approach3.15.0
folder for new translations of existing easily translatable cql unit test fixtures (some existing cql fixtures do not have the right dependency library versions to be easily re-translated)Testing guidance