-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
(Test) Tests Generator #1075
(Test) Tests Generator #1075
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 the models within your application. This is likely due to a failure running However, Shift added the |
|
ℹ️ Using your routes, Shift generated tests for 75 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 2 Form Requests. 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 28 Commands. 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. |
ℹ️ 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. |
[ci skip] [skip ci]
Apply fixes from StyleCI
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-22443
branchcomposer install
vendor/bin/phpunit