| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
18 Articles match "Unit Testing"
See all articles with
"Unit Testing"
| The Latest from Allan Kelly's Blog | MORE | | Testing triangles, pyramids and circles, and UAT 'A few months ago Markus Gartner introduced me to the Testing Triangle, or Testing Pyramid. It looks like this: If you Google you will find a few slightly different version and some go by the name of Testing Pyramid. This triangle is actually pretty similar to a diagram I’ve been drawing for a while when I do Agile training: But it occurs to me the triangle should be pushed to the side, and when you do that you can add some axis which add more information: At the base the, Unit Tests, there are lots and lots of tests and they typically execute in milliseconds. Allan Kelly's Blog - Friday, May 24, 2013 Agile Clinic: Dear Allan, we have a little problem with Agile. Sprints last three weeks, including planning, development and testing. planning, development and testing” Good, but I immediately have two lines of enquiry to peruse. Second: testing should come before development, well, at least “test scripts”, and it should be automated so if it comes after development it is trivial. Testing again: do the devs know the end conditions? Is it not done because it hasn’t finished dev or test? Sounds like too much is being taken into the sprint Are the devs practicing automated test first unit testing? Allan Kelly's Blog - Sunday, April 28, 2013 11 Agile Myths and 2 Truths Granted retrofitting automated unit tests is harder but it is far from insurmountable. I deliver a lot of Agile training courses and I give a lot of talks about Agile ( BCS Bristol tonight ). There are some questions that come up again and again which are the result of myths people have come to believe about Agile. Consequently I spend my time debunking these myths again and again. ve been keeping a little list and there are 11 reoccurring myths. There are also two truths which are a bit more difficult for teams and companies to accept. Every team is different, get over it. Allan Kelly's Blog - Tuesday, February 26, 2013 | | The Best from Allan Kelly's Blog | MORE | | Things to do to improve code quality On this occasion the exercise went particularly well and resulted in the list in the picture below: Lets run through these one by one - not necessarily in the order on the sheet: Test Driven Development: if there is one practice above all others which contributes to better code quality and fewer bugs it is TDD. When run as part of a continuous integration cycle with frequent automated builds and tests the practice is Unit Testing on steroids. Acceptance Test Driven Development (ATDD) is the next level up from unit test based TDD. shame really. Allan Kelly's Blog - Thursday, June 3, 2010 Testing triangles, pyramids and circles, and UAT 'A few months ago Markus Gartner introduced me to the Testing Triangle, or Testing Pyramid. It looks like this: If you Google you will find a few slightly different version and some go by the name of Testing Pyramid. This triangle is actually pretty similar to a diagram I’ve been drawing for a while when I do Agile training: But it occurs to me the triangle should be pushed to the side, and when you do that you can add some axis which add more information: At the base the, Unit Tests, there are lots and lots of tests and they typically execute in milliseconds. Allan Kelly's Blog - Friday, May 24, 2013 Final roundup of facts from Capers Jones Interleaving new work and fixes slows things down Each round of testing generally finds 30-35% of bugs, design and code reviews often find over 85% Unit testing effectiveness is more difficult to measure than other forms of testing because developers perform this themselves before formal testing cuts in. From the studies available it is a less effective form of testing with only about 25% of defects found this way. Formal design and code reviews are cheaper than testing. want to finish off with a few notes from the later chapters of the book. Allan Kelly's Blog - Wednesday, March 23, 2011 | - Implications of the Power Law
Perhaps most importantly this law also completely demolishes the argument that you can’t retrofit unit tests to a legacy system. regularly meet teams who say: “We agree that automated unit testing is good. But our system has 1 million lines of existing code and we can’t cover it with unit tests.” But when I have worked with teams that start to add unit tests to a legacy system they quickly find the tests pay for themselves. Even with a few tests in place there is a pay back. The program crashes very occasionally. Allan Kelly's Blog - Sunday, March 23, 2008 - 11 Agile Myths and 2 Truths
Granted retrofitting automated unit tests is harder but it is far from insurmountable. I deliver a lot of Agile training courses and I give a lot of talks about Agile ( BCS Bristol tonight ). There are some questions that come up again and again which are the result of myths people have come to believe about Agile. Consequently I spend my time debunking these myths again and again. ve been keeping a little list and there are 11 reoccurring myths. There are also two truths which are a bit more difficult for teams and companies to accept. Every team is different, get over it. Allan Kelly's Blog - Tuesday, February 26, 2013 - Other things about SAP (which might block Agile)
Strategy, requirements, design, implementation, testing, change management, SAP is all encompassing. Thus very hard to automate tests, compare differences and version control. So no automated builds or unit tests. There is an ABAP Unit test framework. It won’t do you much good because most SAP “programming” is done through configuration and there is no way to do unit testing on that configuration. For example: there is no way to do unit testing in Microsoft Dynamics. Not impossible, just difficult. billing) points. Allan Kelly's Blog - Saturday, October 31, 2009 - Light Touch Agile Coaching in the Cornish Software Mines
The day after completing TDD training with Jon Jagger one team wrote a unit test which found a bug in their live system. I’m off to Cornwall again next week for my monthly visit. Anyone who follows me on Twitter (allankellynet) may have noticed that every few weeks I put out a few tweets along the lines of “On my way to the Cornish Software Mines again”. They may not actually dig source code out of the ground in Cornwall but there are some very active software companies there. There are even plans to hold an Agile conference in Falmouth, to be named Agile on the Beach. Allan Kelly's Blog - Wednesday, May 4, 2011 - Agile Clinic: Dear Allan, we have a little problem with Agile.
Sprints last three weeks, including planning, development and testing. planning, development and testing” Good, but I immediately have two lines of enquiry to peruse. Second: testing should come before development, well, at least “test scripts”, and it should be automated so if it comes after development it is trivial. Testing again: do the devs know the end conditions? Is it not done because it hasn’t finished dev or test? Sounds like too much is being taken into the sprint Are the devs practicing automated test first unit testing? Allan Kelly's Blog - Sunday, April 28, 2013 - Ten years since Railtrack
We had think process manuals and even thicker requirements, architecture, specification, functional specification and test plan documents. Unit testing happen religiously but it wasn’t automated. Time fly’s, I still feel young but when I realised this morning that this time 10 years ago I was working on a project for Railtrack I felt a bit older. That project taught me a lot about how not to run a project, it also lead to a lot of thinking over the years. In the mid-1990’s the British Government set about privatising the railway system. Allan Kelly's Blog - Tuesday, January 10, 2006 - Path dependency
So often our theories, whether in Economics, Software Development or Business assume that should be just are: theory says that supply equals demand so it will, theory says code should be unit tested so it is, theory says that Business should concentrate on core competencies so they do. I’ve been wanting to write about Path Dependency for a while. Its a subject that fascinates me but I’m not quite sure I understand what is means and how it affects us. Things are the way they are because of all the decisions that have been made up to this point. maybe we should rewrite?” Allan Kelly's Blog - Sunday, April 9, 2006 %>
106 Articles match "Unit Testing"
See all articles with
"Unit Testing"
| The Latest from DevelopMentor | MORE | | Integrating the #WebAPI HttpClient and ApiController in a single test 'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. Both unit tests are perfectly valid but as so often just adding unit tests can be deceptive. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. When testing the client code in the previous blog post we already used this fact. 1: [TestMethod]. Maurice de Bejeir - Monday, May 27, 2013 Maurice de Beijer: Integrating the #WebAPI HttpClient and ApiController in a single test 'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. Both unit tests are perfectly valid but as so often just adding unit tests can be deceptive. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. When testing the client code in the previous blog post we already used this fact. 1: [TestMethod]. The Problem Solver - Monday, May 27, 2013 Testing triangles, pyramids and circles, and UAT 'A few months ago Markus Gartner introduced me to the Testing Triangle, or Testing Pyramid. It looks like this: If you Google you will find a few slightly different version and some go by the name of Testing Pyramid. This triangle is actually pretty similar to a diagram I’ve been drawing for a while when I do Agile training: But it occurs to me the triangle should be pushed to the side, and when you do that you can add some axis which add more information: At the base the, Unit Tests, there are lots and lots of tests and they typically execute in milliseconds. Allan Kelly's Blog - Friday, May 24, 2013 | -
| The Best from DevelopMentor | MORE | - Significant Advances in Unit Testing Windows Workflow
This post describes a unit testing library for testing Windows Workflow Foundations. Rather it's a library that can be used in conjunction with any of these testing frameworks. Download the library with sample test project here: Kennedy.WorkflowTesting.zip (216 KB). First a Little History: Last September I posted this teaser entitled Unit Testing Coming to a Workflow Near You. In that previous post, I highlighted what I could determine to be the current state-of-the-art with regard to unit testing workflows, circa September 2008. Michael C. Kennedy's Weblog - Sunday, January 18, 2009 - Article: Avoiding 5 Common Pitfalls in Unit Testing
Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. Avoiding 5 Common Pitfalls in Unit Testing. When I started out with unit tests, I was enthralled with the promise of ease and security that they would bring to my projects. In practice, however, the theory of sustainable software through unit tests started to break down. Unit Tests have become more trouble than they are worth.". When tests would stop working, we just ignored them. Michael C. Kennedy's Weblog - Thursday, August 6, 2009 - Unit Testing Coming to a Workflow Near You
[Update: See the follow up post "Significant Advances in Unit Testing Windows Workflow" ]. However you won't find very much support for Test Driven Development (TDD) or unit testing in general. In fact the architecture that makes Windows Workflow powerful (strict separation of workflow, activities, and the host for example) really gets in the way of unit tests. There has been some work done on unit testing Windows Workflows. Here's some links: Unit Testing Activities with Windows Workflow Foundation by Ron Jacobs. Michael C. Kennedy's Weblog - Tuesday, September 30, 2008 - TDD Invades Space Invaders
As a follow-up to our " Avoiding 5 Common Pitfalls in Unit Testing " article we did a webcast where we took a problem from the audience and solved it live and unrehearsed on stage. The thing to remember is that all of this was done for the sole purpose of creating a recipe for a scenario we could test. Create a new test project. We made it to step 4 during our presentation (download code below) and estimate another 15 minutes would have had the whole scenario done, tested, and well-factored. Tags: DevelopMentor Screencasts Talks Unit Testing Michael C. Kennedy's Weblog - Wednesday, October 28, 2009 - Test Driven Development, Approval Testing, and a Song – Oh Boy!
So my buddies Dan Gilkerson and Llewellyn Falco have been doing some brilliant, ground breaking work on advancing the state of unit testing and TDD with a concept they call Approval Testing. To highlight the transition from unit testing -> … Continue reading → Agile Video.NET unit testing Michael C. Kennedy's Weblog - Wednesday, January 7, 2009 %>
| | |