Introduction to lambda behave
Upcoming SlideShare
Loading in...5
×
 

Introduction to lambda behave

on

  • 223 views

Are you a Java developer and you've seen the fluent and modern specification frameworks available in other programming languages such as Spock or jasmine and wondering why we can't have the same ...

Are you a Java developer and you've seen the fluent and modern specification frameworks available in other programming languages such as Spock or jasmine and wondering why we can't have the same thing?

Then Lambda Behave is made for you! It uses numerous Java 8 features in order to enable cleaner and more readable tests and specifications. This quickie will introduce the framework, explain why you would want to use it over JUnit and cover some of its cool features, including:
• How to write fluent and clean specifications in your domain language

• How to write data driven specifications

• How to integrate these into your build tool or IDE

• How IDE usage can influence library design for the better

http://richardwarburton.github.io/lambda-behave/

Statistics

Views

Total Views
223
Views on SlideShare
208
Embed Views
15

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 15

http://www.slideee.com 15

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Introduction to lambda behave Introduction to lambda behave Presentation Transcript

  • Lambda Behave A modern testing and behavioural specification framework for Java 8 @richardwarburto
  • Talk Outline Problems & Motivation Live Coding Examples Summary
  • Testing Frameworks in 2014
  • Junit
  • testingReadability junitTestsAreMethodAndClassNames aCommonProblemIsTestReadability wantToWriteTestsInTheLanguageOfTheBusinessDomain using_underscores_is_actually_worse alsoPoorSupportForParameterizedTests
  • Cucumber
  • 1. Write a feature description in business domain terms
  • 2. Regex that some text in order to execute code
  • We can do better! s/better/Lambda Behave/
  • <LIVE CODING />
  • Conclusions & Summary
  • Future Improvements ● ScalaTest Integration ● Plugin API ○ Support for Spring & Vertx ● Improved generators & mocking ● HTML Reports ● Expectation logs ● Heisentest Generator ● Support parallel runners ● Support concurrent tests better
  • Summary ● Existing testing solutions either unreadable or convoluted ● Lambda Behave offers a fluent and modern testing style ● Rapidly adding features ○ Help welcome and wanted! ○ Github issues + pull requests ○ https://github.com/RichardWarburton/lambda- behave
  • Links & Info Project Website: http://richardwarburton.github.io/lambda-behave/ Maven Central Coordinates com.insightfullogic:lambda-behave:0.2 Book http://tinyurl.com/java8lambdas Training Website http://java8training.com/ Blog http://insightfullogic.com
  • Questions? @richardwarburto