[general] Testing fixes (#243) #1581
ci.yaml
on: push
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Code linting
Matrix: Code tests for mutants
Matrix: Code tests
Matrix: Code tests with code coverage
Annotations
1 error and 19 warnings
Code tests for mutants (8.2, ubuntu-latest)
The template is not valid. .github/workflows/ci.yaml (Line: 374, Col: 29): hashFiles('**/composer.json') couldn't finish within 120 seconds.
|
Code quality assurance (8.2, 20, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code quality assurance (8.2, 20, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code linting (8.2, 20, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code linting (8.2, 20, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code static analysis (8.2, 20, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code static analysis (8.2, 20, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code tests (8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code tests with code coverage (8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code tests for mutants (8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L29
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function setUp() : void
{
- parent::setUp();
+
$this->container = $this->createContainer();
}
/**
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L41
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
protected function createContainer(string|null $additionalConfig = null) : Nette\DI\Container
{
$rootDir = __DIR__ . '/../..';
- $vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
+ $vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : '/../vendor' . $rootDir;
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L41
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
protected function createContainer(string|null $additionalConfig = null) : Nette\DI\Container
{
$rootDir = __DIR__ . '/../..';
- $vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
+ $vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : '/../vendor';
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L41
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
protected function createContainer(string|null $additionalConfig = null) : Nette\DI\Container
{
$rootDir = __DIR__ . '/../..';
- $vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
+ $vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir;
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L44
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$rootDir = __DIR__ . '/../..';
$vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
$config = ApplicationBoot\Bootstrap::boot();
- $config->setForceReloadContainer();
+
$config->setTempDirectory(FB_TEMP_DIR);
$config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . getmypid() . md5((string) time())]]);
$config->addStaticParameters(['appDir' => $rootDir, 'wwwDir' => $rootDir, 'vendorDir' => $vendorDir]);
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L45
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
- $config->setTempDirectory(FB_TEMP_DIR);
+
$config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . getmypid() . md5((string) time())]]);
$config->addStaticParameters(['appDir' => $rootDir, 'wwwDir' => $rootDir, 'vendorDir' => $vendorDir]);
$config->addConfig(__DIR__ . '/../../common.neon');
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L47
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
- $config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . getmypid() . md5((string) time())]]);
+
$config->addStaticParameters(['appDir' => $rootDir, 'wwwDir' => $rootDir, 'vendorDir' => $vendorDir]);
$config->addConfig(__DIR__ . '/../../common.neon');
if ($additionalConfig !== null && file_exists($additionalConfig)) {
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L48
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
- $config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . getmypid() . md5((string) time())]]);
+ $config->addStaticParameters(['container' => ['class' => getmypid() . 'SystemContainer_' . md5((string) time())]]);
$config->addStaticParameters(['appDir' => $rootDir, 'wwwDir' => $rootDir, 'vendorDir' => $vendorDir]);
$config->addConfig(__DIR__ . '/../../common.neon');
if ($additionalConfig !== null && file_exists($additionalConfig)) {
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L48
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
- $config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . getmypid() . md5((string) time())]]);
+ $config->addStaticParameters(['container' => ['class' => getmypid() . md5((string) time())]]);
$config->addStaticParameters(['appDir' => $rootDir, 'wwwDir' => $rootDir, 'vendorDir' => $vendorDir]);
$config->addConfig(__DIR__ . '/../../common.neon');
if ($additionalConfig !== null && file_exists($additionalConfig)) {
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Addon/VirtualThermostat/tests/cases/unit/BaseTestCase.php#L48
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$config = ApplicationBoot\Bootstrap::boot();
$config->setForceReloadContainer();
$config->setTempDirectory(FB_TEMP_DIR);
- $config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . getmypid() . md5((string) time())]]);
+ $config->addStaticParameters(['container' => ['class' => 'SystemContainer_' . md5((string) time())]]);
$config->addStaticParameters(['appDir' => $rootDir, 'wwwDir' => $rootDir, 'vendorDir' => $vendorDir]);
$config->addConfig(__DIR__ . '/../../common.neon');
if ($additionalConfig !== null && file_exists($additionalConfig)) {
|