Archives for the 'Unit Tests' Category
Debugging Communication Errors
I couldn’t sleep all night, thinking that on the last company meeting, when one of my employees complained that he can’t finish his tasks because of personal issues that he has with other employees, I basically told him and the rest of the team to help each other and be a team, I […]
2009 retrospect
Its my birthday, which is normally a time for self reflection and lot of fun, alcohol and friends.
As a present my friends gave me a Tandem skydiving, I am waiting for good weather to see why my friends want me to jump out of a flying plane 4 km in the air.
My birthday always […]
Gaps I found while dog-fooding Typemock Isolator
I have been dog-fooding Typemock Isolator with the Metric Dashboard. There are quite a few gaps in the product that I have found while using it.
Before I go into the details of the gaps, I must point out that all these features exists in the older API’s (that are still available), but they […]
Unit Testing the Metric Dashboard – Part 4
Continuation of unit testing the Metric Dashboard.
Debugging via Unit Tests
Sometimes, it is necessary to debug our code from our unit tests. Having the unit tests are great as they setup the scenario for us. Here is what I saw when debugging a test.
Then I remembered – the colored line around the method is a […]
Unit Testing the Metric Dashboard – Part 3
Continuation of unit testing the Metric Dashboard.
Watching for new files
The Dashboard listens to the test result folder for new files. As this is done in another thread, the test must wait for the file to be read and processed in order to verify that the feature works. In the older versions of Typemock there was […]
Unit Testing the Metric Dashboard – Part 2
This is a continuation of the unit testing the Metric Dashboard series, you can find part 1 here
Passing a fake object to constructor
At one point I had to pass a fake object into the constructor. Here I used a feature that will be available in our next versions. This feature currently called intelliTest makes it […]
Unit Testing the Metric Dashboard – Part I
I have talked about unit testing the Metric Dashboard, today I had some time to dive into the task.
I decided to test the Bugs Caught feature of the Visual Studio Addin, I caught two bugs, the first has to do with the order of reading the trx files, the second had to do with saving […]
Unit Testing the Metric Dashboard
While developing the Metric Dashboard, I on purposely did not write any unit tests. I wanted to feel and remember what is like to develop without unit test and see how to write the unit tests after the deed
Manually Unit Testing
The first issue that I had with developing is that I found myself […]
Measuring Effective Unit Tests
What is an effective unit test? A good unit test (via Jeremy Miller) is
Atomic
Independent & Isolated
Intention Revealing
Easy to Setup
Runs Fast
But how do we know that the test is effective? The biggest value of unit tests come when they fail. When a test fails, and we fix it, we have saved […]
Does you code have integrity?
I have been talking about integrity management, but the word integrity actually comes from the technical condition of being whole. That is why in star trak we hear that the Enterprise’s hull integrity is failing. The ship is not complete. When a car leaves the manufacturing company, it gets stamped 100% integrity, meaning that […]