Repository navigation
Conversation
f339a67 to
31b4e2f
Compare
…dle handling and source maps BREAKING CHANGE: Rework the code-coverage middleware for UI5 CLI v5. - Support input source maps and report coverage against original sources, resolving the input source map via sourceMappingURL - Switch integration tests to UI5 CLI v5 only and expand coverage across projects and build configs JIRA: CPOUI5FOUNDATION-1350 JIRA: CPOUI5FOUNDATION-1203
31b4e2f to
596ac88
Compare
bd97294 to
aff646c
Compare
d3xter666
left a comment
There was a problem hiding this comment.
The solution works as expected and I have tested the scenarios in the fixtures and whether they provide coverage and correct paths to the files.
As this is a breaking change it's worth mentioning why is it breaking.
For exmaple: specVersion 5 is not available in @ui5/cli version 4 as well as builtResources
matz3
left a comment
There was a problem hiding this comment.
Just a first review, but looks very good so far 👍🏻
I have tested it locally on macOS and want to test on Windows.
| // falling back to the `//@ui5-bundle` content marker — the tag is absent when the minify | ||
| // task is skipped, but the marker is always present. | ||
| const source = await matchedResource.getString(); | ||
| if (isBundleResource(matchedResource, log) || isBundleSource(source)) { |
There was a problem hiding this comment.
- If the tag is found, we do not have to read the source via
matchedResource.getString(), right? This affects performance / memory consumption, which might become relevant for very large bundles. - I do not see a direct connection of an excluded minify task and therefore the
IsBundletag not being present. I could reproduce it locally. I do not see a reason why the tag should be omitted in such a case, so this sounds like a bug to me.
There was a problem hiding this comment.
- Done.
- You're right,
minifyisn't the cause. Acc. to AI, the tag isn't present for pre-built build-manifest artifacts.
…IsBundle tag is absent And align sourceMappingURL handling with @ui5/builder
f1943e6 to
c2fc717
Compare
I also tested on Windows, incl. TypeScript and it works as expected. Rewriting the paths to strip the drive (e.g. |
JIRA: CPOUI5FOUNDATION-1350
JIRA: CPOUI5FOUNDATION-1203