[ 
https://issues.apache.org/jira/browse/CASSANDRA-20471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ling Mao updated CASSANDRA-20471:
---------------------------------
    Description: 
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.

  was:
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 due to their time-consuming and resource-intensive. 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}
2. This gives me basic confidence before pushing to GitHub, where the office 
CI/CD can handle further testing.
The implementation uses the testlist macro to reduce code and minimize 
potential errors.


> 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
>            Priority: Low
>             Fix For: 5.0.x
>
>
> 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