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

Using QuickPerf with Spring Cloud Contracts #221

Open
BenLayet opened this issue Aug 12, 2024 · 2 comments
Open

Using QuickPerf with Spring Cloud Contracts #221

BenLayet opened this issue Aug 12, 2024 · 2 comments
Labels
❔ question Further information is requested

Comments

@BenLayet
Copy link

I am using https://spring.io/projects/spring-cloud-contract to generate jUnit5 integration tests from groovy files. It is not straight forward to generate annotations, such as @ExpectSelect automatically...

Is there a method that could be called programmatically instead of using annotation ? Something like QuickPerk.expectSelect(int expectedCount)...

Otherwise is there an exemple on how use QuickPerf with Spring Cloud Contracts ?

@BenLayet BenLayet added the ❔ question Further information is requested label Aug 12, 2024
@jeanbisutti
Copy link
Collaborator

You could use SQL annotations with a global scope, allowing you for example to detect N+1 select. See https://github.com/quick-perf/doc/wiki/SQL-annotations#configure-global-annotations.

Today, you can't define an expectation programmatically at the test level.

I am not aware of a public example with Spring Cloud Contracts and QuickPerf.

@jeanbisutti
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants