This is another post of testing series we wrote so far and it discusses how to write testing against database. We prefer writing unit test for whole kind of our services, it includes the testing against POJO, LDAP, database, content repository, email. Here the topics relate to testing in our site:
Some questions and answers of [...]
Continuous integration is one of good development practices that we apply in many projects before. We try to integrate the code of every body as soon as possible (usually developers check in whenever they finish their small tasks and within a day), make the automation test (unit test and integration test) and we have a [...]
We have been applying Scrum practices for months. At first, we only adopt some Scrum practices in our works but recently we apply Scrum process totally in our works. One of the most important practices impact to us much is stand-up meeting.
It is the gif I can recruit the ‘lazy’ developers and I want to build the company not have much people (some of them are unproductive) but I expect almost my developers are ‘lazy’ ones. Many times, I reviewed code from developers and they actually write the bad code, the reasons are ‘lack of time, [...]
I am a supporter of XP process with unit test, TDD etc practices without pair programming. I learned the XP practices for several years ago, reading many articles with statistical data about the benefits of pair programming. I used to believe the pair programming is the good way to improve code quality, share knowledge and [...]
In the post Enhance the Unit test using Annotation approach, I outlined the approach of using annotation to reduce the redundant code and avoid the inheritance (like JUnit3). Annotation RunWith of JUnit4 is a powerful class help us to custom the approach of running unit test, we can create the class inherits from class TestRunner. [...]
1. Keep test method as simple as possible:
DRY principle (Don’t repeat yourself)
Re-use test set up across test cases: put non-trivial test data in test set up method
Clean test code as productive code
Nowadays, there are many processes as RUP, Scrum, FDD, XP etc. Each process has its strong and weak points and it advices that users should custom some parts while using, the custom depends on the specific circumstance of project. In any software company, we have the software development process. They can build process by themselves [...]