What do you need for better application testing? |
Since we're in the middle of rewriting CI for version 4, and obviously testing the code as we go along, I got to wondering what everyone is expecting to make testing their applications easier.
I've seen it brought up on the forums before, but it seems like the big thing that I always heard was "Mocked system classes". I guess I'm not thinking clearly on this because you can already Mock classes with phpUnit: Code: $stub = $this->getMockBuilder('SomeClass') So, what would everyone need to be able to cleanly test their applications. (Other than someone to write all of the tests for them....)
My requests for CI3: https://github.com/kenjis/ci-phpunit-tes...Igniter.md
But I think CI4 will solve all the problems I pointed out.
I want mocked Session (driver?) for testing.
Now I use MY_Session: https://github.com/kenjis/ci-phpunit-tes...ession.php And mocked Email might be useful, too.
We can't test set_cookie() in controller functional testing on CI3.
|
Welcome Guest, Not a member yet? Register Sign In |