Having issue with running phpunit tests on circleci

I have tried php unit 7.5.20 and 5.7.27 and both are having the same issues.

Attaching the error I’m seeing
Output in circleci :
PHPUnit 5.7.27 by Sebastian Bergmann and contributors
wp_die called
Exited with code exit status 255

I have ssh into machine and saw the error that is causing the exit status
$ ./vendor/bin/phpunit --configuration phpunit.xml --log-junit $HOME/phpunit/junit.xml
PHP Fatal error: Uncaught Error: Class ‘WP_UnitTestCase’ not found in /home/circleci/techcrunch-2017/themes/techcrunch-2017/tests/php/tests/analytics/parsely/class-test-analytics-parsely.php:18
Stack trace:
#0 /home/circleci/techcrunch-2017/themes/techcrunch-2017/vendor/phpunit/phpunit/src/Util/FileLoader.php(57): include_once()
#1 /home/circleci/techcrunch-2017/themes/techcrunch-2017/vendor/phpunit/phpunit/src/Util/FileLoader.php(45): PHPUnit\Util\FileLoader::load(’/home/circleci/…’)
#2 /home/circleci/techcrunch-2017/themes/techcrunch-2017/vendor/phpunit/phpunit/src/Framework/TestSuite.php(540): PHPUnit\Util\FileLoader::checkAndLoad(’/home/circleci/…’)
#3 /home/circleci/techcrunch-2017/themes/techcrunch-2017/vendor/phpunit/phpunit/src/Framework/TestSuite.php(618): PHPUnit\Framework\TestSuite->addTestFile(’/home/circleci/…’)
#4 /home/circleci/techcrunch-2017/themes/techcrunch-2017/vendor/phpunit/phpunit/src/Util/Configuration.php(1137): PHPUnit\Framework\TestSuite->addTestFiles(Array)
#5 /home/circleci/techcrunch-2017/t in /home/circleci/techcrunch-2017/themes/techcrunch-2017/tests/php/tests/analytics/parsely/class-test-analytics-parsely.php on line 18