The primary integration point for CloudBees Smart Tests is your team’s build tool or test runner (i.e. whatever CLI you invoke to actually kick off your tests), not the test framework itself. Therefore, if you use the TestNG framework, check which tool you use to kick off your tests, such as:
See each integration’s page for instructions to add CloudBees Smart Tests to your CI pipeline.