Sign in
Progressive Development
Zany Adventures in Software Engineering with Maven and Motley
Tags
About
agile
assertions
build
change
checklists
code comments
code coverage
code reviews
debugger
debugging
design
design by contract
estimation
general programming
HPT
interviewing
lean
legacy code
management
meetings
mock objects
people
personal vision
presentations
productivity
project management
quality
refactoring
root cause analysis
scrum
static analysis
supportability
TDD
teams
test
test-driven development
tools
unit testing
values
vision/mission
Browse by Tags
MSDN Blogs
>
Progressive Development
>
All Tags
>
unit testing
Tagged Content List
Blog Post:
Motley says: “Slow down to go fast? Do I look like a tortoise?”
James Waletzky
Summary Motley: There is no harm shortcutting a few steps of development to meet a deadline. Some up-front check-in steps just take too much time. Maven: Slow down to go fast. Obey check-in checklists or you will pay for it later in the development cycle. Pre-check...
on
22 Apr 2009
Blog Post:
Motley says: "More test automation is always better"
James Waletzky
Summary Motley: A tester's job is to find bugs, so measure them on the amount of bugs they find. More test automation is always better. Maven: Do not measure testers by the amount of bugs they report. Think of the test team as more a quality assurance team than a quality control team. Too...
on
19 Aug 2008
Blog Post:
Motley says: "Just use a batch file to run unit tests"
James Waletzky
Summary Motley: Just use a batch file to execute unit tests - it's easy and quick. Maven: Use a unit test framework to write and execute unit tests. A framework makes tests easy to write, executes tests quickly and consistently, and provides features that make your life easier, such as logging...
on
18 Sep 2007
Blog Post:
Motley says: "If-then-else hooks are the best way to inject mock objects"
James Waletzky
Summary Motley: A simple if-then-else hook is the simplest and best way to inject a mock object. Maven: First, you have to design to interfaces. Then, techniques like dependency injection, factories, and endo-testing are more effective ways to inject mock objects. ______________________________...
on
14 Aug 2007
Blog Post:
Motley says: "Test both private and public methods"
James Waletzky
Summary Motley: To get high code coverage, we should be testing both public and private methods Maven: Only test public methods. Testing private methods gets in the way of refactoring ______________________________ [Context: Maven checks in on Motley's unit testing practices and...
on
12 Jun 2007
Blog Post:
Motley says: "Contracts are for baseball players and cell phones"
James Waletzky
Summary Motley: Contracts don't apply to software - leave them for baseball players and cell phone providers Maven: Contracts (preconditions, postconditions, invariants) help drive your unit tests ______________________________ [Context: Motley is all excited as he has started to...
on
8 May 2007
Blog Post:
Motley says: "100% code coverage tells me there is nothing left to test"
James Waletzky
Summary Motley: If I hit 100% code coverage for my tests, then there is nothing left to test. Maven: 100% line coverage does not necessarily mean you have full test coverage. You have to consider condition coverage as well. ______________________________ [Context: Motley is all excited...
on
1 May 2007
Blog Post:
Motley says: "Refactoring is too hard - it's not worth the effort"
James Waletzky
Summary Motley: Every time I make a change in refactoring I either cause compile problems or break functionality. Refactoring is slow and not worth the effort. Maven: Use tools to refactor and leverage unit tests to improve your confidence that your refactoring does not break functionality...
on
24 Apr 2007
Blog Post:
Motley says: "I don't have time to Refactor - I need to get it right the first time"
James Waletzky
Summary Motley: Refactoring takes too much time - I have to ship you know! Maven: Refactoring leads to much more maintainable code, and if you have tests in place, the return on investment far outweighs the cost. ______________________________ [Context: Motley has just embarked on...
on
19 Apr 2007
Blog Post:
Motley says: "If I write code to pass tests I'm cheating!"
James Waletzky
Summary Motley: Tests need to validate code that has already been written - not the other way around. Maven: Writing tests before you code allows the tests to drive your code while providing more sound requirements validation. ______________________________ [Context: Motley is thinking...
on
15 Apr 2007
Blog Post:
Motley says: "I can't write tests before application code - there's nothing to test."
James Waletzky
Summary Motley: You can't possibly write tests before code - there's nothing to test. Maven: Writing tests for a method before coding it has all kinds of design advantages. ______________________________ [Context: Motley has been writing unit tests for a week. Maven wants to take...
on
9 Apr 2007
Blog Post:
Motley says: "Unit tests take too long to execute, so don't bother"
James Waletzky
Summary Motley: Unit tests take too long to execute. I'm not going to bother. Maven: Unit tests need to run quickly - you need to execute them frequently. Mock objects can help. ______________________________ [Context: Motley has been writing unit tests for a couple of days, but...
on
4 Apr 2007
Blog Post:
Motley says: "I am a developer - I don't test. Testing is for the test team."
James Waletzky
Summary Motley: Unit testing is the test team's job! I am not paid to write tests. Maven: White box (unit) tests help with code quality and give you confidence to change your code. ______________________________ [Context: During a previous conversation about debugging, Motley stated...
on
29 Mar 2007
Blog Post:
Motley says: "Rely on the debugger to write solid code"
James Waletzky
Summary Motley: I rely on the debugger when I am writing code. Without it, I'd have a really hard time tracking down all the bugs in my code. Maven: Write code as if the debugger does not even exist. Include unit tests, assertions, tracing, logging, static analysis, and internal consistency...
on
25 Mar 2007
Page 1 of 1 (14 items)