There's no API for this, however you could use our internal SnapshotPrinter tool:
java -cp clover.jar com.cenqua.clover.test.optimization.SnapshotPrinter clover.snapshot.file
In the "All files:" section you'll find which tests are related with given source file.
Can I generate a snapshot file and get mappings using a merged clover database (generated as explained in https://community.atlassian.com/t5/Clover-questions/How-do-I-get-functional-test-to-product-code-coverage-mapping/qaq-p/742178#M1674) ?
My aim is to get a mapping of source code<->test code so that I run only those tests when a given source code file changes.
It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs