private static TestSuite getTestSuite(String pkgName, boolean recurse) {
	
		TestSuite suite = new TestSuite();
		suite.setName("[Package] " + pkgName);
		
		// Add all TestCases contained within the specified package
		Iterator<String> iter = getClassNames(pkgName, TEST_CASE_CLASS);
		while (iter.hasNext()) {
			String name = iter.next();
			try {
				suite.addTest(new TestSuite(Class.forName(name)));
			} catch (ClassNotFoundException e) {
				System.out.println("Failed to load test case: " + name);
			}
		}
		
		// Recursively add TestSuites associated with sub-packages
		if (recurse) {
			iter = getSubPkgNames(pkgName);
			while (iter.hasNext()) {
				String subPkgName = iter.next();
				TestSuite ts = getTestSuite(subPkgName, true);
				if (ts.countTestCases() > 0) {
					suite.addTest(ts);
				}
			}
		}
		
		return suite;	
	}
Build JUnit test suite for the specified package only.
@param pkgName the java package name
@return test suite
Ghidra/Framework/Generic/src/main/java/ghidra/util/TestSuiteUtilities.java