[ 
https://issues.apache.org/jira/browse/CASSANDRA-20471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17937720#comment-17937720
 ] 

Michael Semb Wever commented on CASSANDRA-20471:
------------------------------------------------

This can be done today using
{code:java}
.build/run-test.sh -h

.build/run-tests.sh -a test -t org.apache.cassandra.hints

{code}
(it can also be done in docker containers, by using 
`\{{.build/docker/run-tests.sh}}` and the same arguments.)

 

I'd rather not be making the build.xml longer (I would rather see us remove a 
number of the duplicated test options, and move all testing stuff out to a 
`\{{.build/build-test.xml}}` file).

> ant testpackage to run all unit tests under specific package name recursively
> -----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-20471
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20471
>             Project: Apache Cassandra
>          Issue Type: New Feature
>          Components: Test/unit
>            Reporter: Ling Mao
>            Assignee: Ling Mao
>            Priority: Low
>             Fix For: 5.0.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 1. When I make minor improvements to a component (e.g., hint or TCM), I'm 
> unsure if changes might cause related unit tests to fail. Yet, I don't want 
> to run all unit tests in my local due to their time-consuming and 
> resource-intensive nature. Instead, I prefer to run the following commands to 
> test the related unit tests generally:
> {code:java}
> ant testpackage -Dtest.package=org.apache.cassandra.hints
> ant testpackage -Dtest.package=org.apache.cassandra.tcm{code}
> This gives me basic confidence before pushing to GitHub, where the official 
> CI/CD can handle further testing.
> 2. The implementation uses the *_testlist_* macro to reduce code and minimize 
> potential errors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to