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
Support for @Tag in HapiTestEngine #9490
Conversation
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Signed-off-by: Valentin Tronkov <valentin.tronkov@limechain.tech>
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/HapiTestEngine.java
Show resolved
Hide resolved
...test-clients/src/main/java/com/hedera/services/bdd/junit/HapiTestEngineExecutionContext.java
Show resolved
Hide resolved
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
…tEngine' into 09436-support-for-tag-in-HapiTestEngine
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/HapiTestEngine.java
Show resolved
Hide resolved
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9490 +/- ##
==========================================
Coverage ? 65.22%
Complexity ? 29651
==========================================
Files ? 3261
Lines ? 124483
Branches ? 12912
==========================================
Hits ? 81194
Misses ? 40215
Partials ? 3074 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Valentin Tronkov <valentin.tronkov@limechain.tech>
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/HapiTestEngine.java
Show resolved
Hide resolved
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/HapiTestEngine.java
Outdated
Show resolved
Hide resolved
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/HapiTestEngine.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
Okay, I played a bit with a randomly picked gradle task:
If I annotate
I can see that out of the box, we are calling the I think we should have a story to first have the Gradle task to use the new HapiTestEngine in place and then I can test our engine and see what we support out of the box and what we should add. Maybe @jjohannes or @nathanklick work on that?(I see you guys worked on these gradle tasks) What do you guys think? @netopyr |
The trial you ran is flawed. A better trial would involve adding tags to existing HapiTest methods and copying the Perhaps try this setup (after tagging a few individual tests with "slow" and "unstable"):
|
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
@jsync-swirlds I misled you a bit. I was not actually using the HAMMER task - I just copied it and created a new one(HAMMER2). Nonetheless thanks for pointing out the existing hapiTest task - it helped debugging the issue. Now it should work 😄 |
Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com> Signed-off-by: Valentin Tronkov <valentin.tronkov@limechain.tech>
Note: - #9510 was merged into this PR
Description:
@Tag
annotation inHapiTestEngine
Related issue(s):
Fixes #9436
Notes for reviewer:
To filter by
@Tag
you need to:@Tag("TAG_NAME")
annotationtest-clients/build.gradle.kts
file and add the following config:(change the
includeTags
andexcludeTags
according to your tests)Run the hapiTestSlow gradle task from IntelliJ:
or execute
./gradlew hapiTestSlow
in the consoleChecklist