lambda behave - java 8's testing framework

11
LAMBDA BEHAVE JAVA 8’S TESTING FRAMEWORK By SPEC INDIA

Upload: sarajstanford

Post on 09-Mar-2016

48 views

Category:

Documents


0 download

DESCRIPTION

A latest testing framework for Java. Lambda Behave vows to make testing a pleasing experience. An ideal choice for a Java developer who has worked with specification frameworks earlier\n - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE

JAVA 8’S TESTING FRAMEWORK

By SPEC INDIA

Page 2: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE – AN INTRODUCTION A latest testing framework for Java Lambda Behave vows to make testing

a pleasing experience An ideal choice for a Java developer

who has worked with specification frameworks earlier

There are existing frameworks like JUnit and Cucumber but Lambda proves to be much more fluent and modern with a unique testing style

Page 3: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE – AN INTRODUCTION (CONTD.) Launched some time back and has

already started gaining momentum and appreciation worldwide, because of its salient features and technical benefits

Makes use of various Java 8 features for gaining a neat and user friendly environment for testing.

The latest release to have hit the market is Lambda Behave 0.3

Page 4: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE – AN INTRODUCTION (CONTD.) Current testing frameworks turn out to

be a little untidy and complex, whereas Lambda Behave turns out to be flowing and simplistic

Lambda Expressions have been a significant feature of Java 8, in which the importance lies on passing behaviour to methods.

Being a merger of functional capabilities and object oriented, it enhances the integration of third party libraries.

Page 5: Lambda Behave - Java 8's Testing Framework

SALIENT FEATURES OF LAMBDA BEHAVE

Fluency and neat specification writing in the domain language

Writing data driven specifications Integration with the base tool or IDE Influence of IDE usage onto library design Capability to reset mocks Addition of combinators for use of business

domain objects in testing

Page 6: Lambda Behave - Java 8's Testing Framework

SALIENT FEATURES OF LAMBDA BEHAVE (CONTD). Integration with Scala-Test to enable running

of Lambda Behave tests with Scala-Test infrastructure

Solve bugs regarding API corner cases Log down seed numbers for random number

generators Integration of the random number generation

with the testing API

Page 7: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE SPECIFICATIONS

Fluent

Specifications

Generated Specifications

Data Driven

Specifications

Page 8: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE SPECIFICATIONS(CONTD.) Fluent Specifications

For Lambda Behave, it is very important to focus on fluency as if reading pure English.

It also looks for encouraging describing testing with usage of eloquent sentences instead of fewer words.

It focuses on an API which is available all through the IDE completion.

Generated Specifications Lambda Behave possesses capabilities to generate

test cases for testing your code, very much like Scala Check.

The involved API is something like Data driven specifications and controls the generation of values.

Page 9: Lambda Behave - Java 8's Testing Framework

LAMBDA BEHAVE SPECIFICATIONS(CONTD.) Data Driven Specifications

Based on various data inputs, Lambda Behave parameterizes the specifications.

The API involved is not dependent upon reflection magic.

The specification as well as the description both are parameterized.

Page 10: Lambda Behave - Java 8's Testing Framework

THE JAVA FAMILY @ SPEC INDIA SPEC INDIA has already begun its journey

with Java 8 Implemented various projects across a wide

spread clientele Possess proficiency in different tools and

technologies of the Java framework Cloud based applications Web services development AWS integration RIA applications And many more….