-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
HTTP Feature Testing not working #1710
Comments
The tests folder in the develop branch is for unit testing the framework itself, NOT your app. It is pusposefully not included in the appstarter distribution! |
@jim-parry Okay, so, what about 'test documentation'? Is intended to test my app or is for test the framework? Following that instructions it not seems to work app unit testing. Is there any full example of a working app uni test? |
That test documentation is for testing your app, not the framework. See my response to yor forum thread. |
@jim-parry Looking at this, we do need to include the While I think there's stuff that's not necessary and is just for framework development, it doesn't hurt to include it. Would be cleaner to separate it out but probably a giant pain to do so. At the very least, though, the following files are required for testing an application (I might have missed some):
Quite a few of the other Mock* classes might prove useful to people when testing their apps, but less critical. |
Alright ... I will play with this :) |
I have jiggered some of the support test files, and the distribution build scripts. This should work better "out of the box" with the next release. I think it wise to wait for that for thorough testing, as there are other changes that will be part of it. |
@jim-parry, any success as it might delay the release of beta 2. |
This is the set of tests I am working on at the moment :) |
The changes discussed here have been done. The Controller/Feature testing is a separate issue, and still in progress. |
Description of the bug
I'm working with appstarter project and when I try to run phpunit, i found serveral errors:
CodeIgniter 4 version
CodeIgniter 4.0.0-alpha.5 (appstarter, framework and devstarter projects)
Affected module(s)
HTTP Feature Testing
Expected behavior, and steps to reproduce if appropriate
I've described further the behavior in this forum post
Context
The text was updated successfully, but these errors were encountered: