ну и доку полистай.
"For kernel tests, you need a working database connection and for browser tests, your Drupal installation needs to be reachable via a web server. However, you should never install Drupal yourself as the test handles this automatically. "