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: make the assertion engine return a different error when no spans #3666

Merged
merged 3 commits into from Feb 20, 2024

Conversation

mathnogueira
Copy link
Member

@mathnogueira mathnogueira commented Feb 20, 2024

This PR makes the assertion engine return the following error when you try to run an assertion against an attribute when no spans match the selector:

resolution error: there are no matching spans to retrieve the attribute "attribute-name" from. To fix this error, create a selector matching at least one span.

Related thread message: https://tracetest-community.slack.com/archives/C06CF48NS79/p1708377604787339?thread_ts=1708367051.955759&cid=C06CF48NS79

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Copy link

vercel bot commented Feb 20, 2024

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

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2024 3:12pm

@mathnogueira mathnogueira merged commit 46e50da into main Feb 20, 2024
39 checks passed
@mathnogueira mathnogueira deleted the feat/assertion-not-matching-error branch February 20, 2024 15:30
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.

None yet

3 participants