• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What do you need for better application testing?

#1
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')
                     ->getMock();

So, what would everyone need to be able to cleanly test their applications. (Other than someone to write all of the tests for them....)
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply

#2
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.
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#3
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.
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#4
We can't test set_cookie() in controller functional testing on  CI3.
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.