-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests Generator #5
Conversation
Shift added the following packages which may be used by some of the generated tests cases and helpful for testing new code. - [Test Assertions](https://github.com/jasonmccreary/laravel-test-assertions) - [`generate:model-factory`](https://github.com/mpociot/laravel-test-factory-helper)
|
❌ Shift could not generate factories for your application models. This is often due to a failure when running the Shift added a factory generator package as a development dependency so you may generate your model factories locally. To do so, run |
|
ℹ️ Using your routes, Shift generated tests for 39 Controllers. While test cases were stubbed using the route properties, they are marked as incomplete for you to review and complete by adding any remaining setup and assertions. Review the documentation on HTTP Tests for additional assertions. |
ℹ️ Shift generated tests for 1 Form Request. While test cases were stubbed using the command name, they are marked as incomplete for you to review and complete by adding any remaining setup and assertions. Review may use this alternative Form Request testing strategy as a guide. |
ℹ️ Shift generated tests for 1 Command. While test cases were stubbed using the command name, they are marked as incomplete for you to review and complete by adding any remaining setup and assertions. Review the documentation on Console Tests for additional reference. |
ℹ️ Shift set some basic testing configuration values in your For example, the database was configured to use SQLite. However, your application may depend on a specific database. As such, you will want to set up and configure an equivalent database for testing. Shift also changed any |
ℹ️ If you are using Laravel Telescope you may need to temporarily disable Telescope while reviewing these generated tests. You may do so by setting the |
⚗️ This Shift pairs with the new Confident Laravel video course. If you are getting started with testing Laravel applications, it will guide you step-by-step from writing your first test to a confidently tested Laravel application. |
ℹ️ Shift detected your project does not have any CI jobs. You may quickly create jobs to automatically lint PHP, check code style, and run tests with the CI Generator. |
This pull request includes foundational components for testing your application by generating model factories, HTTP tests, unit tests, and test case stubs for common code paths.
Before merging, you need to:
shift-69376
branchcomposer update
vendor/bin/phpunit