Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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
wantToWriteTestsInTheLanguageOfTheBusi...
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
● HT...
Summary
● Existing testing solutions either unreadable or
convoluted
● Lambda Behave offers a fluent and modern testing
st...
Links & Info
Project Website:
http://richardwarburton.github.io/lambda-behave/
Maven Central Coordinates
com.insightfullog...
Questions?
@richardwarburto
Introduction to lambda behave
Upcoming SlideShare
Loading in …5
×

Introduction to lambda behave

734 views

Published on

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/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Introduction to lambda behave

  1. 1. Lambda Behave A modern testing and behavioural specification framework for Java 8 @richardwarburto
  2. 2. Talk Outline Problems & Motivation Live Coding Examples Summary
  3. 3. Testing Frameworks in 2014
  4. 4. Junit
  5. 5. testingReadability junitTestsAreMethodAndClassNames aCommonProblemIsTestReadability wantToWriteTestsInTheLanguageOfTheBusinessDomain using_underscores_is_actually_worse alsoPoorSupportForParameterizedTests
  6. 6. Cucumber
  7. 7. 1. Write a feature description in business domain terms
  8. 8. 2. Regex that some text in order to execute code
  9. 9. We can do better! s/better/Lambda Behave/
  10. 10. <LIVE CODING />
  11. 11. Conclusions & Summary
  12. 12. 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
  13. 13. 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
  14. 14. 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
  15. 15. Questions? @richardwarburto

×