InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

DbFit 1.0 With Enhanced Querying Capabilities and User Docs

Posted by Mike Bria on Mar 17, 2008

Sections
Process & Practices,
Development
Topics
Delivering Quality ,
Unit Testing ,
.NET ,
Agile ,
Java
Tags
Database ,
Oracle ,
Fit / Fitnesse ,
SQL Server 2000 ,
TestDriven.NET
Gojko Adzic has recently announced the version 1.0 release of DbFit, his popular FIT/FitNesse extension used for practicing TDD on database code.  Gojko summarizes what's new and fresh with DbFit 1.0 as follows:
Major updates
  1. Support for in/out parameters in stored procedures.
  2. Support for querying stored results
  3. Support for SQL Server 2000 in .NET. Not as complete as Sql Server 2005, but should work in most cases.
  4. Support for testing blank-padded fixed length CHAR types.
  5. .NET version now compiled with FitNesse.NET 1.5
  6. Proper documentation — finally. The documentation is available as PDF and FitNesse (included in the dbfit-complete package) and also online at FitNesse.Info.
Minor updates
  1. Oracle date used as Timestamp to allow V8 compatibility switch to work
  2. Stored procedure params no longer have to be listed in the same order as in db
  3. GUID handler now just redirecting to standard GUID handler in .NET
  4. OrderedQuery and StoreParameter fixtures for standalone mode
  5. bugfix for transactions not getting rolled back in Java after tests in flow mode
  6. bugfix for ntext and text field sizes in sql server
  7. bugfix for fail[null] NullPointerException in Java
  8. workaround for fail[null] bug in fitnesse.net 1.5
  9. Acceptance tests now reorganised better.
Not long ago, Gojko had written in an article about what drove him to create DbFit, in which he comes to the following conclusion:
  • Agile practices make as much sense for the database as for anything else, they are just (a bit) harder to implement
  • To change the way people work, you need to get them enthusiastic, not compliant.
  • In order to get developers enthusiastic, focus on reducing dull work
  • DbFit solves two major problems with TDD of DB code: object-relational mismatch and DB specialists not being to write tests efficiently.
Check out the fully re-engineered documentation for more information on what DbFit is all about and how to make the most of the tool to help unit test your database code.

See Scott Ambler's popular Agile Data series for more expert advice on agile and tdd at the database layer, and also InfoQ's agile community for the very freshest on agile tools, techniques, debates, and ideas.
  • This article is part of a featured topic series on Agile

Related Sponsor

In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!

db-code, i know it's name now. by ding jack Posted
Re: db-code, i know it's name now. by Mike Bria Posted
  1. Back to top

    db-code, i know it's name now.

    by ding jack

    I've heard that some people writen db-code still nowadays.I hope they will jump out the well in let's guess 10 years.

  2. Back to top

    Re: db-code, i know it's name now.

    by Mike Bria

    Hi Jack --

    Might you be able to clarify just a bit what you're note means.

    Thanks!
    --MB

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.