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

test: set up basic test infrastructure (2.x) #191

Merged
merged 7 commits into from
Jun 10, 2024
Merged

test: set up basic test infrastructure (2.x) #191

merged 7 commits into from
Jun 10, 2024

Conversation

trieloff
Copy link
Contributor

@trieloff trieloff commented Jun 7, 2024

see also #192

@trieloff trieloff changed the title test: set up basic test infrastructure test: set up basic test infrastructure (2.x) Jun 7, 2024
@trieloff trieloff requested a review from kptdobe June 7, 2024 12:35
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.94%. Comparing base (76b96f9) to head (f603f0f).
Report is 142 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #191       +/-   ##
=========================================
+ Coverage      0   47.94%   +47.94%     
=========================================
  Files         0        1        +1     
  Lines         0      413      +413     
=========================================
+ Hits          0      198      +198     
- Misses        0      215      +215     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jun 7, 2024

This PR will trigger no release when merged.

Copy link
Contributor

@kptdobe kptdobe left a comment

Choose a reason for hiding this comment

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

Good start point. I am working on exploding the source code to make it "unit testable".
I also think we should merge the rum-js and enhancer repos to have one code source (they work together anyway) with multiple outputs (sampleRUM for Helix projects, standalone, one single file...). But we can discuss next week during the hackathon.

Comment on lines +8 to +10
"test": "web-test-runner --node--resolve --coverage",
"test:ci": "web-test-runner --node-resolve --coverage --playwright",
"test:watch": "web-test-runner --node-resolve --coverage --watch",
Copy link
Contributor

Choose a reason for hiding this comment

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

Only chrome is executed by default. For rum-js, I have added chrome, webkit and firefox to cover everything we are interested into. See https://github.com/adobe/helix-rum-js/blob/main/package.json#L8-L10

@trieloff trieloff merged commit 7e47060 into main Jun 10, 2024
7 checks passed
trieloff added a commit that referenced this pull request Jun 10, 2024
trieloff added a commit that referenced this pull request Jun 10, 2024
@kptdobe kptdobe deleted the test-infra-2.x branch June 10, 2024 12:06
Copy link

🎉 This PR is included in version 2.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants