article thumbnail

TDD or Test-Last? One Thing at a Time

Xebia

Here, we have to be creative and knowledgeable about the tools we use. That is precisely what TDD helps with. TDD to Separate Concerns At the core of TDD is its mantra : red, green, refactor. Conclusion Do you need TDD to do this? TDD can help to separate concerns in the act of programming.

article thumbnail

Test-Driving HTML Templates

Martin Fowler

My colleague Matteo Vaccari has written an article on how to use TDD to test drive these templates using xunit-style tools which can be run easily from the command line or as part of build scripts. While these can be tested through end-to-end tests running in the browser, such tests are slow and more work to maintain than unit tests.

Testing 288
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

TDD and Code Coverage Tools

Net Objectives

In TDD and Code Coverage, we established that code coverage tools do not provide useful project metrics, in and of themselves. In TDD, we don’t use code coverage tools for this purpose because we don’t need to. Continue reading "TDD and Code Coverage Tools". .

article thumbnail

TDD and Test Invariance

Net Objectives

TDD often uses unit tests to drive behavior into the system. When these are automated, this can give us clues as to how to make our work in TDD more reusable. Tools like Fit, Specflow, and Cucumber are all designed to parse some non-technical artifact (such … Continue reading "TDD and Test Invariance".

article thumbnail

TDD and Naming: Part 1

Net Objectives

TDD is not really a testing activity so much as it is about the creation of an executable specification. Test names are sometimes provided by the tools we use. Many IDE’s will … Continue reading "TDD and Naming: Part 1". Because of this we value different things than testers might.

TDD 40
article thumbnail

A prep checklist for startups about to undergo technical due diligence

TechCrunch

Previously, the author offered a detailed overview of the technical due diligence (TDD) process investors conduct before injecting cash into early stage startups. Is a line-level scanning tool such as SonarQube in place? More posts by this contributor. 8 questions to answer before your startup faces technical due diligence.

article thumbnail

TDD and Code Coverage

Net Objectives

Measurement tools are used as a process gate, where the team must achieve this minimum coverage level before code can be checked … Continue reading "TDD and Code Coverage". This is usually expressed as a percentage: at least X% of all code developed must be covered by tests.