Edit: I solved this problem by switching to JUnit. I did not change much other than switching the code to the JUnit equivalent and switching useTestNG() to us
useTestNG()
us