Skip to content

Execute tests (Unit and Feature tests) via PHPUnit #1719

@FahryIbrahim

Description

@FahryIbrahim

Run vendor/bin/phpunit
PHPUnit 10.0.9 by Sebastian Bergmann and contributors.

Runtime: PHP 8.1.2-1ubuntu2.14
Configuration: /home/runner/work/Test-Laravel-Routes/Test-Laravel-Routes/phpunit.xml

......F. 8 / 8 (100%)

Time: 00:00.525, Memory: 40.50 MB

There was 1 failure:

  1. Tests\Feature\RoutesTest::test_task_api_crud_is_working
    Expected response status code [200] but received 404.
    Failed asserting that 200 is identical to 404.

/home/runner/work/Test-Laravel-Routes/Test-Laravel-Routes/vendor/laravel/framework/src/Illuminate/Testing/TestResponse.php:123
/home/runner/work/Test-Laravel-Routes/Test-Laravel-Routes/vendor/laravel/framework/src/Illuminate/Testing/Concerns/AssertsStatusCodes.php:16
/home/runner/work/Test-Laravel-Routes/Test-Laravel-Routes/tests/Feature/RoutesTest.php:83
/home/runner/work/Test-Laravel-Routes/Test-Laravel-Routes/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:173

FAILURES!
Tests: 8, Assertions: 29, Failures: 1.
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions