Skip to content

Codeception/laravel-module-tests

Repository files navigation

Codeception Laravel Module Tests

Actions Status

Minimal site containing functional tests for Codeception Module Laravel.

Usage

The main purpose of this project is to verify the proper functioning of the Codeception Module Laravel in a minimal Laravel installation.

You can use it to contribute new features or propose changes in the module and verify that nothing is broken in the process. If that's your goal, be sure to follow the contribution guides for the module.

You can also fork it and use it to reproduce a bug or unexpected behavior for analysis. If that's your case, just add a link to your fork next to the description of your issue in the module's repository.

Lastly, if you just want to see the module in action and run the tests yourself on your local machine just:

  1. Clone the repo:
    git clone https://github.com/Codeception/laravel-module-tests.git
  2. Install Composer dependencies:
    composer update
  3. Create your .env file from the .env.testing file.
  4. Create the database file: database/database.sqlite.
  5. Update database schema and load seeders:
    php artisan migrate --seed

Then, go to the project directory and run:

vendor/bin/codecept run Functional

Create Unit Suite or Acceptance Suite

To create Unit Tests or Acceptance Tests, you need to create the corresponding suite first:

vendor/bin/codecept generate:suite Unit
vendor/bin/codecept generate:suite Acceptance

Credits to Jan-Henk Gerritsen for his work on janhenkgerritsen/codeception-laravel5-sample, which served as the inspiration for this project.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •