Generate controller test cases?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
The issue names no files, tests, or entry points; start by locating the CakePHP 3 bake templates for controllers and their associated test classes. Compare the generated output and existing incomplete tests, then define predictable passing coverage for most baked controller behavior while reducing markTestIncomplete() placeholders.
Written by the indexing model from the issue text.
Description
If possible, baking a controller class and its associated test class should produce a test suite that passes and covers the majority (if not all) of the baked controller. The bake process is fairly deterministic-- so the tests should likewise be predictable.
There may be issues in how much information we have about the controller when rendering the test class of course, but this topic warrants some research and experimentation. Anything to improve upon an empty test class with a bunch of ->markTestIncomplete()s.
- Dominant language
- PHP
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from loadsys/CakePHP-LoadsysTheme
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
loadsys/CakePHP-LoadsysTheme#26 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Add Some Recommended Plugins in the Composer.jsonMay be free again @justinyost claimed this 3874 days ago, and no pull request is open. Openenhancement
loadsys/CakePHP-LoadsysTheme#23 · 1 comment · 1 assignee ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Update Theme to Match CakePHP 3.2 Updated StylesMay be free again @justinyost claimed this 4037 days ago, and no pull request is open. Openenhancement
loadsys/CakePHP-LoadsysTheme#17 · 1 assignee ·
All issues in loadsys/CakePHP-LoadsysTheme
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
crazy-goat/rabbit-stream#830 ·
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 4 days
-
Перевод устарел
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Combination form: image thumbnails collapse to 0×0 when a stylesheet sets `img { max-width: 100% }`Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
PrestaShop/PrestaShop#43200 ·
Maintainers usually reply within 1 day