ribaraka commented on PR #1780:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1780#issuecomment-2367775477

   @martin-sucha, after integrating the new test runner for the driver and 
fixing all tests marked as a flake, I ran coverage tests for all existing unit 
and integration tests, merged the results into one report, and the current test 
coverage stands at 76%.
   
   I can send you the coverage report via Slack or attach it here. 
Alternatively, you can fetch this branch and generate it yourself. Here’s how I 
do it
   
   ```
   // generate a report for all integration tests
   go test -v -covermode=atomic -coverprofile=coverage_integration.out -tags 
"integration cassandra tc gocql_debug" -timeout=30m -gocql.timeout=60s -runssl 
-proto=4 -rf=3 -clusterSize=3 -autowait=2000ms -compressor=snappy 
-gocql.cversion=5.0.0  ./...
   
   // generate a report for auth test
   go test -v -covermode=atomic -coverprofile=coverage_auth.out 
-run=TestAuthentication -tags ""integration" gocql_debug" -timeout=2m -runauth 
-gocql.timeout=60s -runssl -proto=4 -rf=3 -clusterSize=1 -autowait=2000ms 
-runauth -compressor=snappy -gocql.cversion=5.0.0
   
   // generate a report for all unit tests
    go test -v -covermode=atomic -coverprofile=coverage_unit.out -tags unit 
-race
    
    
    // once all reports have been generated, use the gocovmerge tool to run the 
merge command and retrieve the complete report for the entire driver.
     gocovmerge coverage_auth.out coverage_integration.out coverage_unit.out > 
coverage_merged.out
   
   // view the merged coverage report
   go tool cover -func=coverage_merged.out
    ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to