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

[Feature Request][move-compiler-v2] add an attribute to include #[test_only] functions in coverage #15276

Open
brmataptos opened this issue Nov 14, 2024 · 1 comment
Labels
compiler-v2 enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale

Comments

@brmataptos
Copy link
Contributor

🚀 Feature Request

@alnoki asks:

Is there a way to enforce coverage testing on functions like these if I make them [#test_only]? I made them private fun without #[test_only] because I needed to verify that I had tested every invariant failure method (via the coverage tool, but I don’t actually need the fun verify and fun verify_subtree bytecode in production: perhaps a directive like #[test_only, include_in_coverage]?

This seems feasible.

@brmataptos brmataptos added the enhancement New feature or request label Nov 14, 2024
@alnoki
Copy link
Contributor

alnoki commented Nov 14, 2024

@brmataptos brmataptos moved this from 🆕 New to For Grabs in Move Language and Runtime Nov 14, 2024
@sausagee sausagee added the stale-exempt Prevents issues from being automatically marked and closed as stale label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-v2 enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale
Projects
Status: For Grabs
Development

No branches or pull requests

3 participants