The Most Important Answers Are Not Asked

We don’t know what we don’t know, and to discover this blind spot, the best we can do is to ask questions. Asking a question is the key to unlock the world full of knowledge. And actually asking questions is one of the best ways that software testers can add value. It is important to note that we – testers – ask about ‘how?‘, ‘why?’ or/and ‘under what circumstances?‘.

So what are the right questions?

Questions that

      • are brought up at the right time
      • open minds
      •  challenge the listener’s knowledge base
      • challenge the way of thinking
      • make people to shift paradigms
      • create thinkers
      • bring knowledge to the table
      • expose unseen problems or root causes

Continue reading The Most Important Answers Are Not Asked

Code Coverage. 100%

The question ‘do we really need to test constructors?‘ led me to understand that what 100% code coverage means and why we should strive for it.

Previously I’d always stated that it’s impossible to achieve 100% code coverage. Because 100% coverage means 100% coverage of that you believe to be the system’s functional paths. In other words: it is not 100% in reality. And it’s highly likely to people would write useless tests to reach that 100%.

Continue reading Code Coverage. 100%

it() Should Not Start with Should

Jasmine is a behavior-driven development framework for testing JavaScript code. This framework provides it() blocks to define test cases.

Every it() block contains two parts: description and return call.

description: this is a description of the test case

return call: this block contains function(), it may also have a variable in it, basically this variable will have some set time for to set the total time for the it() block to get executed. You can use it without time as well.

There are many articles, tips and tricks available explaining the best practices and lessons learned.

And this is where I can see that in lots of cases when the description in the it() block starts with the word should.

Continue reading it() Should Not Start with Should