Title: How to execute custom test cases or specified test cases rather than all tests on gitbug-java? · Issue #46 · gitbugactions/gitbug-java · GitHub
Open Graph Title: How to execute custom test cases or specified test cases rather than all tests on gitbug-java? · Issue #46 · gitbugactions/gitbug-java
X Title: How to execute custom test cases or specified test cases rather than all tests on gitbug-java? · Issue #46 · gitbugactions/gitbug-java
Description: I am going to evaluate my own fault localization approach on GitBug-Java. To do this, I need to do the following steps: Inject extra test cases into the test suite. Compile the project. Execute the tests. I tried like this: I checked out...
Open Graph Description: I am going to evaluate my own fault localization approach on GitBug-Java. To do this, I need to do the following steps: Inject extra test cases into the test suite. Compile the project. Execute the...
X Description: I am going to evaluate my own fault localization approach on GitBug-Java. To do this, I need to do the following steps: Inject extra test cases into the test suite. Compile the project. Execute the...
Opengraph URL: https://github.com/gitbugactions/gitbug-java/issues/46
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to execute custom test cases or specified test cases rather than all tests on gitbug-java?","articleBody":"I am going to evaluate my own fault localization approach on GitBug-Java. To do this, I need to do the following steps:\n\n1. Inject extra test cases into the test suite.\n2. Compile the project.\n3. Execute the tests.\n\n I tried like this:\n\n1. I checked out one of the bugs and modified one of the `.java` Files of the Test Classes. It looks like this:\n```\npublic class Gt06ProtocolDecoderTest extends ProtocolTest {\n\n @Test\n public void tryTestInjection() throws Exception {\n int a=1;\n int b=0;\n assertEquals(a,b); // This is the custom test case, and it always fails.\n }\n\n @Test\n public void testDecode() throws Exception {\n ... // This is the original Failed Test Case\n }\n}\n```\n2. I execute `gitbug-java run checkout --act-cache=act-cache` and get:\n```\nExpected executed tests: 479\nExecuted tests: 480\nPassing tests: 478\nSkipped tests: 23\nFailing tests: 2\nFailed tests:\n- org.traccar.protocol.Gt06ProtocolDecoderTest#tryTestInjectsion()\n- org.traccar.protocol.Gt06ProtocolDecoderTest#testDecode()\n```\nIt turns out that my custom test case is compiled and executed. But to speed up, is it possible to execute single test case rather than all tests?\nHow can I do?","author":{"url":"https://github.com/cc32","@type":"Person","name":"cc32"},"datePublished":"2025-08-21T14:28:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/46/gitbug-java/issues/46"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7c175668-4bc8-71c3-f217-41de0548f825 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D842:24AD96:3FED8C:5A4A8D:6A4D1EE8 |
| html-safe-nonce | 257e0e11b870e508d18b4bfd08f49224768943683ec7990612ff1835a5a59a91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODQyOjI0QUQ5NjozRkVEOEM6NUE0QThEOjZBNEQxRUU4IiwidmlzaXRvcl9pZCI6Ijg2NDgzNjAxMjkxMjc1ODc1NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 776c62920b58c1e13c1b1f27841be1e1e717a538599ccd24cf537444e33a3a0d |
| hovercard-subject-tag | issue:3341978439 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitbugactions/gitbug-java/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49031de25b527591e5545cd42499f8cea7b05c07fd5604884a010ea63e69038f/gitbugactions/gitbug-java/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49031de25b527591e5545cd42499f8cea7b05c07fd5604884a010ea63e69038f/gitbugactions/gitbug-java/issues/46 |
| og:image:alt | I am going to evaluate my own fault localization approach on GitBug-Java. To do this, I need to do the following steps: Inject extra test cases into the test suite. Compile the project. Execute the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cc32 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitbugactions/gitbug-java git https://github.com/gitbugactions/gitbug-java.git |
| octolytics-dimension-user_id | 148581466 |
| octolytics-dimension-user_login | gitbugactions |
| octolytics-dimension-repository_id | 728296218 |
| octolytics-dimension-repository_nwo | gitbugactions/gitbug-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 728296218 |
| octolytics-dimension-repository_network_root_nwo | gitbugactions/gitbug-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width