BT

InfoQ Homepage Presentations Property-based Testing for Better Code

The next QCon is in London, Mar 4 - 6, 2019. Save an extra £75.00 with INFOQ75!

Property-based Testing for Better Code

Bookmarks

Bio

For more than a dozen years, Jessica Kerr toiled at enterprise software in Java and C. Two years ago, the promise and intrigue of functional programming led her to Scala. When she isn't speaking about at development conferences in North America and Europe, she works in Clojure at Outpace.

About the conference

Software is Changing the World. QCon empowers software development by facilitating the spread of knowledge and innovation in the developer community. A practitioner-driven conference, QCon is designed for technical team leads, architects, engineering directors, and project managers who influence innovation in their teams.

Recorded at:

Oct 19, 2014

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Interesting

    by Guillaume L /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Overall an excellent talk. I don't agree with everything that is said about isolated unit tests though. Particularly that they don't test the seams of your system. Indeed, there is a whole range of test doubles (mocks, spies) precisely designed for that purpose. What's more, this very lack of seam testing could be reproached to the technique explained around 00:40 - when you fake the database, you don't test the seam between the real database and your system.

    Also, example-based tests do carry a notion of what's important - it's in test names. Naming your tests after the example values used in them is effectively stupid. Just because they are example-based doesn't mean you shouldn't think about a more general meaning of your tests. Admittedly, property-based testing takes that to a whole other level by condensing all examples that obey the same rule down to a single test.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.