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

feat: add support for test skip reasons #8858

Merged
merged 2 commits into from
Sep 12, 2024
Merged

feat: add support for test skip reasons #8858

merged 2 commits into from
Sep 12, 2024

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Sep 12, 2024

Adds vm.skip(bool,string) for an optional string reason which shows up in the output.

Unfortunately not super straight forward for fuzz tests because we have to decode the encoded reason again to properly propagate it

+ tweaks to a few error messages and cleanups

Can be added to #8852

}
s.push(']');
s.yellow().fmt(f)
}
TestStatus::Failure => {
Copy link
Member Author

Choose a reason for hiding this comment

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

only functional change here is removing the unconditional . Reason: and "assertion failed" placeholder

@DaniPopes DaniPopes merged commit 2cdbfac into master Sep 12, 2024
20 checks passed
@DaniPopes DaniPopes deleted the dani/skip-reason branch September 12, 2024 20:57
rplusq pushed a commit to rplusq/foundry that referenced this pull request Sep 25, 2024
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.

3 participants