-
Notifications
You must be signed in to change notification settings - Fork 11
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 #2231
Tests Generator #2231
Conversation
Shift added the following packages which may be used by 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 HTTP tests for 42 Controllers. While test cases were stubbed using the route definitions and inspecting the |
ℹ️ Shift generated unit tests for 4 Form Requests. While test cases were stubbed for each of the existing methods, they are marked as incomplete for you to review and add any remaining setup and assertions. You may review this alternative Form Request testing strategy as a guide to how these unit tests are written. |
ℹ️ Shift generated tests for 89 Commands. While test cases were stubbed to call the command, they are marked as incomplete for you to review and add any setup and assertions. You may 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 |
⚗️ This Shift pairs with the 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. |
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-117163
branchcomposer update
vendor/bin/phpunit