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

DocumentIndex or DocumentSelector at the asserts level #318

Open
MostefaKamalLala opened this issue Apr 2, 2024 · 1 comment
Open

DocumentIndex or DocumentSelector at the asserts level #318

MostefaKamalLala opened this issue Apr 2, 2024 · 1 comment
Labels

Comments

@MostefaKamalLala
Copy link

Hello, having multiple test cases within the same template, I dont want to duplicate too many tests definitions just so I can change the documentIndex or Selector. Would it be simple to add the documentSelector or documentIndex directly at the assert level.
The only assertionType that is close to that is containsDocument while using the any: true flag.

Willing to do a PR if it is possible and worth it.

@quintush
Copy link
Contributor

Hello @MostefaKamalLala,

Based on my understanding this is already available. The documentSelector and documentIndex can be set at test-level and assertion-level.

See the documenation on asserts and for example the with-document-select chart where a combination using the documentSelector is tested.

Greetings,
@quintush

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

No branches or pull requests

2 participants