Added mutations to API tests

This commit is contained in:
Alejandro Celaya
2021-12-10 17:45:50 +01:00
parent 0d936425c2
commit 6aebaa94af
6 changed files with 66 additions and 27 deletions

View File

@@ -20,8 +20,7 @@ $config = $container->get('config');
$em = $container->get(EntityManager::class);
$httpClient = $container->get('shlink_test_api_client');
// Start code coverage collecting on swoole process, and stop it when process shuts down
$httpClient->request('GET', sprintf('http://%s:%s/api-tests/start-coverage', SWOOLE_TESTING_HOST, SWOOLE_TESTING_PORT));
// Dump code coverage when process shuts down
register_shutdown_function(function () use ($httpClient): void {
$httpClient->request(
'GET',