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

Move test utils in the src dir #176

Closed
wants to merge 4 commits into from
Closed

Conversation

andreivladbrg
Copy link
Collaborator

@andreivladbrg andreivladbrg commented Oct 23, 2023

Same rationale as here

Changelog:

refactor: move test utils in src dir
build: install prb test as npm package
build: remove prb test git module
build: use correct path in update-precompiles script
ci: install node js dependencies in build test coverage job
chore: update remappings accordingly

build: install prb test as npm package
build: remove prb test git module
build: use correct path in update-precompiles script
ci: install node js dependencies in build and test job
chore: update remappings accordingly
@andreivladbrg
Copy link
Collaborator Author

I see that the coverage has significantly decreased. This is because there are more contracts in src which don't have to be tested.

Is there a way to remove a path (~src/test/) from the coverage report?

Copy link
Owner

@PaulRBerg PaulRBerg left a comment

Choose a reason for hiding this comment

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

Thanks Andrei, just like in PRBMath, let's install Forge Std as a Node.js dependency.

Is there a way to remove a path (~src/test/) from the coverage report?

Yes. See the codecov.yml file and the Ignoring Paths docs.

package.json Outdated Show resolved Hide resolved
build: add peerDependencies field
build: ignore src/test/ path in coverage
@andreivladbrg
Copy link
Collaborator Author

Addressed everything in my latest commits.

I see that the slither job has failed and I am not sure why, is it because we need to add pnpm install step?

@PaulRBerg
Copy link
Owner

Thanks!

I see that the slither job has failed

Dunno, need to investigate but cannot at the moment

@andreivladbrg
Copy link
Collaborator Author

Closing in favor of #179

@andreivladbrg andreivladbrg mentioned this pull request Nov 27, 2023
@PaulRBerg PaulRBerg deleted the refactor/move-test-utils branch December 28, 2023 10:42
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