Wiki

Articles tagged with "testing"X
Displaying 1-3 of 3 result(s).

Access log output from unit tests

Created about a year ago by MikeTips2 comments – viewed 4,712 times – ( +4 ) – 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

Created 2 years ago by AsgarothHow-tos3 comments – viewed 10,170 times – ( +10 ) – 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

Created 3 years ago by imeheszTips3 comments – viewed 11,666 times – ( +3 / -1 ) – 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