Title: Analyze test classes optionally if the user wants to · Issue #125 · codellm-devkit/codeanalyzer-java · GitHub
Open Graph Title: Analyze test classes optionally if the user wants to · Issue #125 · codellm-devkit/codeanalyzer-java
X Title: Analyze test classes optionally if the user wants to · Issue #125 · codellm-devkit/codeanalyzer-java
Description: Is your feature request related to a problem? Please describe. Currently, the codeanalyzer-java does not account for test classes (src/test/java/) when analyzing a Maven project. This leads to missing information from unit tests, which c...
Open Graph Description: Is your feature request related to a problem? Please describe. Currently, the codeanalyzer-java does not account for test classes (src/test/java/) when analyzing a Maven project. This leads to miss...
X Description: Is your feature request related to a problem? Please describe. Currently, the codeanalyzer-java does not account for test classes (src/test/java/) when analyzing a Maven project. This leads to miss...
Opengraph URL: https://github.com/codellm-devkit/codeanalyzer-java/issues/125
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Analyze test classes optionally if the user wants to","articleBody":"**Is your feature request related to a problem? Please describe.**\n\nCurrently, the `codeanalyzer-java` does not account for test classes (`src/test/java/`) when analyzing a Maven project. This leads to missing information from unit tests, which can be essential for understanding dependencies, call graphs, and other structural insights in a codebase.\n\n**Describe the solution you’d like**\n\nThe tool should recognize and process test classes located in src/test/java/, ensuring they are included in relevant analyses. Specifically, it should:\n\n* Detect test classes and compile them if necessary.\n* Include test-related call sites and dependencies in the analysis.\n* Maintain a distinction between main source files (target/classes/) and test files (target/test-classes/).\n\nAdd a new flag `--include-test-classes` that optionally enable `mvn test-compile` instead of `mvn compile` (or the gradle alternative)\n\n**Describe alternatives you’ve considered**\n\n* Manually copying test classes to the main source directory before running the tool (not ideal).\n* Running a separate analysis phase for test files.\n* Using custom workarounds to merge test and main class data post-analysis.\n\n**Additional context**\n\nHandling test classes is crucial for tools that analyze code structure, call graphs, and dependencies since test cases often contain critical references to core logic. Support for this feature would improve the completeness of the analysis.","author":{"url":"https://github.com/rahlk","@type":"Person","name":"rahlk"},"datePublished":"2025-02-19T19:53:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/125/codeanalyzer-java/issues/125"}
| 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:ed3b5f72-be16-bbc6-5cab-5c79b617ec2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB86:BD3AF:10999D:155F0D:6990A64B |
| html-safe-nonce | 6aa827ed532decc243ac00ed10002f5ed46e17fe5849cd8c3ba8571c0daa5fa3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjg2OkJEM0FGOjEwOTk5RDoxNTVGMEQ6Njk5MEE2NEIiLCJ2aXNpdG9yX2lkIjoiNTAzMzg3MjQ5NjQxNzM1MTI0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6022a08f60c2b20e52f09de905922a13c661fb4b1dc706828936a7a0ecc3d962 |
| hovercard-subject-tag | issue:2864271832 |
| github-keyboard-shortcuts | repository,issues,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/codellm-devkit/codeanalyzer-java/125/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8f8d0daa422765b521316cdf836404b045866250044c2d03b9d4fe209253443/codellm-devkit/codeanalyzer-java/issues/125 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8f8d0daa422765b521316cdf836404b045866250044c2d03b9d4fe209253443/codellm-devkit/codeanalyzer-java/issues/125 |
| og:image:alt | Is your feature request related to a problem? Please describe. Currently, the codeanalyzer-java does not account for test classes (src/test/java/) when analyzing a Maven project. This leads to miss... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rahlk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/codellm-devkit/codeanalyzer-java git https://github.com/codellm-devkit/codeanalyzer-java.git |
| octolytics-dimension-user_id | 197800760 |
| octolytics-dimension-user_login | codellm-devkit |
| octolytics-dimension-repository_id | 731300153 |
| octolytics-dimension-repository_nwo | codellm-devkit/codeanalyzer-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 731300153 |
| octolytics-dimension-repository_network_root_nwo | codellm-devkit/codeanalyzer-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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width