Skip to content
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

954 - Add tests coverage #977

Merged
merged 8 commits into from
May 10, 2022
Merged

954 - Add tests coverage #977

merged 8 commits into from
May 10, 2022

Conversation

hiaux0
Copy link
Contributor

@hiaux0 hiaux0 commented May 10, 2022

What was done

  • update coverage package (jsdevtools/coverage-istanbul-loader is more up to date, at least it works with webpack5)
  • ignore /coverage dir
  • 5k diff in package-lock.json, because coverage reporter uses babel heavily
  • integrate coverage lib in cypress code

⚠️ There is a bug when parsing code, that has coverage-helper-code.
More specifically, aurelia-validation does not parse the helper code correctly aurelia/testing#94.
I found a fix, but would need to PR to the aurelia repo and stuff.
(Maybe we just fork ourselves, will create a ticket)
image

Testing

(note, the section below is from the updated README
Have to run a separate command to instrument the code (instrument = add helper code, that tracks when code was executed)
npm run start-dev:cov

Then can run other e2e commands

Before

After

image

@vercel
Copy link

vercel bot commented May 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
prime-deals-dapp ✅ Ready (Inspect) Visit Preview May 10, 2022 at 11:23AM (UTC)

@vercel vercel bot temporarily deployed to Preview May 10, 2022 11:18 Inactive
Comment on lines +29 to +32
private static getDealService() {
// @ts-ignore - Hack to access dealService inside Cypress
return Cypress.dealService;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkent600
okay to have this changes in this PR, or do you prefer separate?

@vercel vercel bot temporarily deployed to Preview May 10, 2022 11:23 Inactive
@hiaux0 hiaux0 requested a review from dkent600 May 10, 2022 11:24
@dkent600 dkent600 merged commit e57a70a into development May 10, 2022
@hiaux0 hiaux0 deleted the fix/954-tests-coverage branch May 11, 2022 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants