Running PILOS tests on prod. server #2214
Closed
RonneyCuba
started this conversation in
General
Replies: 1 comment
-
|
These tests are run in the Github Actions pipeline and during the development, no need to run on a production server. You can read more about testing in the docs: https://thm-health.github.io/PILOS/docs/development/testing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to conduct performance tests on PILOS running on my server to evaluate its performance. Tell me how I can do this. I know there is a folder called "test" in the source code for Cypress, but before running those tests, I saw that there is a command docker compose exec app pilos-cli test which is for running the application tests, and it gives me this error.
[2025-06-12 23:10:26] production.ERROR: Class "SebastianBergmann\Environment\Console" not found {"exception":"[object] (Error(code: 0): Class "SebastianBergmann\Environment\Console" not found at /var/www/html/vendor/nunomaduro/collision/src/Adapters/Laravel/Commands/TestCommand.php:188)
[stacktrace]
#0 /var/www/html/vendor/nunomaduro/collision/src/Adapters/Laravel/Commands/TestCommand.php(227): NunoMaduro\Collision\Adapters\Laravel\Commands\TestCommand->commonArguments()
#1 /var/www/html/vendor/nunomaduro/collision/src/Adapters/Laravel/Commands/TestCommand.php(103): NunoMaduro\Collision\Adapters\Laravel\Commands\TestCommand->phpunitArguments(Array)
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): NunoMaduro\Collision\Adapters\Laravel\Commands\TestCommand->handle()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call(Array)
#8 /var/www/html/vendor/symfony/console/Command/Command.php(279): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#10 /var/www/html/vendor/symfony/console/Application.php(1094): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/vendor/symfony/console/Application.php(342): Symfony\Component\Console\Application->doRunCommand(Object(NunoMaduro\Collision\Adapters\Laravel\Commands\TestCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/vendor/symfony/console/Application.php(193): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 {main}
"}
Error
Class "SebastianBergmann\Environment\Console" not found
at vendor/nunomaduro/collision/src/Adapters/Laravel/Commands/TestCommand.php:188
184▕ if ($this->option('ansi')) {
185▕ $arguments[] = '--colors=always';
186▕ } elseif ($this->option('no-ansi')) {
187▕ $arguments[] = '--colors=never';
➜ 188▕ } elseif ((new Console)->hasColorSupport()) {
189▕ $arguments[] = '--colors=always';
190▕ }
191▕
192▕ return $arguments;
15 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Beta Was this translation helpful? Give feedback.
All reactions