Articles tagged with "testing", sorted by date (updated)X
Displaying 1-3 of 3 result(s).

Access log output from unit tests

Updated 5 years ago by MikeTips2 comments – viewed 8,286 times – ( +4 / -1 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

How to re enable logging during unit testing

Updated 5 years ago by AsgarothHow-tos3 comments – viewed 16,270 times – ( +11 / -1 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Auto TDD - How to auto-run PHPUnit

Updated 6 years ago by imeheszTips3 comments – viewed 16,279 times – ( +3 / -2 ) – version 1.1
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD