Enviar pesquisa
Carregar
Specification unit test by Spek
•
0 gostou
•
170 visualizações
哲偉 楊
Seguir
Specification unit test by Spek
Leia menos
Leia mais
Engenharia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 9
Baixar agora
Baixar para ler offline
Recomendados
Spek
Spek
哲偉 楊
Practical Glusto Example
Practical Glusto Example
Gluster.org
Talk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about Docker
Wellington Silva
Ansible+docker (highload++2015)
Ansible+docker (highload++2015)
Pavel Alexeev
Testing Django APIs
Testing Django APIs
tyomo4ka
Volker Fröhlich - How to Debug Common Agent Issues
Volker Fröhlich - How to Debug Common Agent Issues
Zabbix
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
Gaurav Bhardwaj
Enter Cookbook: refactoring under a microscope
Enter Cookbook: refactoring under a microscope
Kamil Samigullin
Recomendados
Spek
Spek
哲偉 楊
Practical Glusto Example
Practical Glusto Example
Gluster.org
Talk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about Docker
Wellington Silva
Ansible+docker (highload++2015)
Ansible+docker (highload++2015)
Pavel Alexeev
Testing Django APIs
Testing Django APIs
tyomo4ka
Volker Fröhlich - How to Debug Common Agent Issues
Volker Fröhlich - How to Debug Common Agent Issues
Zabbix
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
Gaurav Bhardwaj
Enter Cookbook: refactoring under a microscope
Enter Cookbook: refactoring under a microscope
Kamil Samigullin
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Gluster.org
Tales Of The Black Knight - Keeping EverythingMe running
Tales Of The Black Knight - Keeping EverythingMe running
Dvir Volk
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
Prajal Kulkarni
Dexador Rises
Dexador Rises
fukamachi
Tech Talk #4 : Multi - threading and GCD ( grand central dispatch ) in iOS - ...
Tech Talk #4 : Multi - threading and GCD ( grand central dispatch ) in iOS - ...
Nexus FrontierTech
Caching in Docker - the hardest thing in computer science
Caching in Docker - the hardest thing in computer science
Jarek Potiuk
Configuring Syslog by Octavio
Configuring Syslog by Octavio
Rowell Dionicio
Burp Suite Extensions
Burp Suite Extensions
Neelu Tripathy
Spock Framework (Java Day BY 2015)
Spock Framework (Java Day BY 2015)
katoquro
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Docker-Hanoi
Dropwizard
Dropwizard
Tetiana Saputo
Build, logging, and unit test tools
Build, logging, and unit test tools
Allan Huang
Jordan Hubbard Talk @ LISA
Jordan Hubbard Talk @ LISA
guest4c923d
{{more}} Kibana4
{{more}} Kibana4
琛琳 饶
Mobile Analytics mit Elasticsearch und Kibana
Mobile Analytics mit Elasticsearch und Kibana
inovex GmbH
How to Test Asynchronous Code (v2)
How to Test Asynchronous Code (v2)
Felix Geisendörfer
Monitoring with ElasticSearch
Monitoring with ElasticSearch
Kris Buytaert
Getting Started with PureScript
Getting Started with PureScript
John De Goes
Postgres level up
Postgres level up
Fabio Telles Rodriguez
Easy access to open stack object storage
Easy access to open stack object storage
Juan José Martínez
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Spock
Spock
Naiyer Asif
Mais conteúdo relacionado
Mais procurados
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Gluster.org
Tales Of The Black Knight - Keeping EverythingMe running
Tales Of The Black Knight - Keeping EverythingMe running
Dvir Volk
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
Prajal Kulkarni
Dexador Rises
Dexador Rises
fukamachi
Tech Talk #4 : Multi - threading and GCD ( grand central dispatch ) in iOS - ...
Tech Talk #4 : Multi - threading and GCD ( grand central dispatch ) in iOS - ...
Nexus FrontierTech
Caching in Docker - the hardest thing in computer science
Caching in Docker - the hardest thing in computer science
Jarek Potiuk
Configuring Syslog by Octavio
Configuring Syslog by Octavio
Rowell Dionicio
Burp Suite Extensions
Burp Suite Extensions
Neelu Tripathy
Spock Framework (Java Day BY 2015)
Spock Framework (Java Day BY 2015)
katoquro
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Docker-Hanoi
Dropwizard
Dropwizard
Tetiana Saputo
Build, logging, and unit test tools
Build, logging, and unit test tools
Allan Huang
Jordan Hubbard Talk @ LISA
Jordan Hubbard Talk @ LISA
guest4c923d
{{more}} Kibana4
{{more}} Kibana4
琛琳 饶
Mobile Analytics mit Elasticsearch und Kibana
Mobile Analytics mit Elasticsearch und Kibana
inovex GmbH
How to Test Asynchronous Code (v2)
How to Test Asynchronous Code (v2)
Felix Geisendörfer
Monitoring with ElasticSearch
Monitoring with ElasticSearch
Kris Buytaert
Getting Started with PureScript
Getting Started with PureScript
John De Goes
Postgres level up
Postgres level up
Fabio Telles Rodriguez
Easy access to open stack object storage
Easy access to open stack object storage
Juan José Martínez
Mais procurados
(20)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Tales Of The Black Knight - Keeping EverythingMe running
Tales Of The Black Knight - Keeping EverythingMe running
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
Dexador Rises
Dexador Rises
Tech Talk #4 : Multi - threading and GCD ( grand central dispatch ) in iOS - ...
Tech Talk #4 : Multi - threading and GCD ( grand central dispatch ) in iOS - ...
Caching in Docker - the hardest thing in computer science
Caching in Docker - the hardest thing in computer science
Configuring Syslog by Octavio
Configuring Syslog by Octavio
Burp Suite Extensions
Burp Suite Extensions
Spock Framework (Java Day BY 2015)
Spock Framework (Java Day BY 2015)
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Dropwizard
Dropwizard
Build, logging, and unit test tools
Build, logging, and unit test tools
Jordan Hubbard Talk @ LISA
Jordan Hubbard Talk @ LISA
{{more}} Kibana4
{{more}} Kibana4
Mobile Analytics mit Elasticsearch und Kibana
Mobile Analytics mit Elasticsearch und Kibana
How to Test Asynchronous Code (v2)
How to Test Asynchronous Code (v2)
Monitoring with ElasticSearch
Monitoring with ElasticSearch
Getting Started with PureScript
Getting Started with PureScript
Postgres level up
Postgres level up
Easy access to open stack object storage
Easy access to open stack object storage
Semelhante a Specification unit test by Spek
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Spock
Spock
Naiyer Asif
New Features Of JDK 7
New Features Of JDK 7
Deniz Oguz
PostgreSQL and PL/Java
PostgreSQL and PL/Java
Peter Eisentraut
Trust, but verify | Testing with Docker Containers
Trust, but verify | Testing with Docker Containers
Nan Liu
Eclipse Pdt2.0 26.05.2009
Eclipse Pdt2.0 26.05.2009
Bastian Feder
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
Alex Pop
Continuous Integration for front-end JavaScript
Continuous Integration for front-end JavaScript
Lars Thorup
XML parsing using jaxb
XML parsing using jaxb
Malintha Adikari
Taking Jenkins Pipeline to the Extreme
Taking Jenkins Pipeline to the Extreme
yinonavraham
JRuby e DSL
JRuby e DSL
jodosha
Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)
Yevgeniy Brikman
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Agile Swift
Agile Swift
Godfrey Nolan
First adoption hackathon at BGJUG
First adoption hackathon at BGJUG
Ivan Ivanov
Hadoop Monitoring best Practices
Hadoop Monitoring best Practices
Edward Capriolo
Hw09 Monitoring Best Practices
Hw09 Monitoring Best Practices
Cloudera, Inc.
Php Development With Eclipde PDT
Php Development With Eclipde PDT
Bastian Feder
Into The Box 2018 Going live with commandbox and docker
Into The Box 2018 Going live with commandbox and docker
Ortus Solutions, Corp
Going live with BommandBox and docker Into The Box 2018
Going live with BommandBox and docker Into The Box 2018
Ortus Solutions, Corp
Semelhante a Specification unit test by Spek
(20)
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Spock
Spock
New Features Of JDK 7
New Features Of JDK 7
PostgreSQL and PL/Java
PostgreSQL and PL/Java
Trust, but verify | Testing with Docker Containers
Trust, but verify | Testing with Docker Containers
Eclipse Pdt2.0 26.05.2009
Eclipse Pdt2.0 26.05.2009
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
Continuous Integration for front-end JavaScript
Continuous Integration for front-end JavaScript
XML parsing using jaxb
XML parsing using jaxb
Taking Jenkins Pipeline to the Extreme
Taking Jenkins Pipeline to the Extreme
JRuby e DSL
JRuby e DSL
Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Agile Swift
Agile Swift
First adoption hackathon at BGJUG
First adoption hackathon at BGJUG
Hadoop Monitoring best Practices
Hadoop Monitoring best Practices
Hw09 Monitoring Best Practices
Hw09 Monitoring Best Practices
Php Development With Eclipde PDT
Php Development With Eclipde PDT
Into The Box 2018 Going live with commandbox and docker
Into The Box 2018 Going live with commandbox and docker
Going live with BommandBox and docker Into The Box 2018
Going live with BommandBox and docker Into The Box 2018
Mais de 哲偉 楊
Code kata 的自我修煉
Code kata 的自我修煉
哲偉 楊
Coding dojo
Coding dojo
哲偉 楊
輕輕鬆鬆產生 changelog
輕輕鬆鬆產生 changelog
哲偉 楊
Speed up add custom marker on google map
Speed up add custom marker on google map
哲偉 楊
Jenkins for android developer at TWJUG
Jenkins for android developer at TWJUG
哲偉 楊
自己的 Jenkins 自己來 for Android developer
自己的 Jenkins 自己來 for Android developer
哲偉 楊
從開發到上線的華麗大冒險
從開發到上線的華麗大冒險
哲偉 楊
Kotlin初體驗
Kotlin初體驗
哲偉 楊
Kotlin 初體驗
Kotlin 初體驗
哲偉 楊
Unit test and ui testing with cucumber
Unit test and ui testing with cucumber
哲偉 楊
RxJava With retrolambda
RxJava With retrolambda
哲偉 楊
ORMLite Android
ORMLite Android
哲偉 楊
設計師合作經驗分享
設計師合作經驗分享
哲偉 楊
Dog point
Dog point
哲偉 楊
Gson
Gson
哲偉 楊
Hybrid design with bootstrap
Hybrid design with bootstrap
哲偉 楊
Mais de 哲偉 楊
(16)
Code kata 的自我修煉
Code kata 的自我修煉
Coding dojo
Coding dojo
輕輕鬆鬆產生 changelog
輕輕鬆鬆產生 changelog
Speed up add custom marker on google map
Speed up add custom marker on google map
Jenkins for android developer at TWJUG
Jenkins for android developer at TWJUG
自己的 Jenkins 自己來 for Android developer
自己的 Jenkins 自己來 for Android developer
從開發到上線的華麗大冒險
從開發到上線的華麗大冒險
Kotlin初體驗
Kotlin初體驗
Kotlin 初體驗
Kotlin 初體驗
Unit test and ui testing with cucumber
Unit test and ui testing with cucumber
RxJava With retrolambda
RxJava With retrolambda
ORMLite Android
ORMLite Android
設計師合作經驗分享
設計師合作經驗分享
Dog point
Dog point
Gson
Gson
Hybrid design with bootstrap
Hybrid design with bootstrap
Último
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
Mebane Rash
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
sahilsajad201
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
Sneha Padhiar
multiple access in wireless communication
multiple access in wireless communication
panditadesh123
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
Erbil Polytechnic University
Input Output Management in Operating System
Input Output Management in Operating System
Rashmi Bhat
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
mohitesoham12
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
Romil Mishra
OOP concepts -in-Python programming language
OOP concepts -in-Python programming language
SmritiSharma901052
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
Erbil Polytechnic University
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
BalamuruganV28
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
Stephen Sitton
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
ChristianCDAM
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Manish Kumar
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
rnrncn29
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
Researcher Researcher
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
Victor Morales
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Erbil Polytechnic University
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
Sneha Padhiar
Virtual memory management in Operating System
Virtual memory management in Operating System
Rashmi Bhat
Último
(20)
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
multiple access in wireless communication
multiple access in wireless communication
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
Input Output Management in Operating System
Input Output Management in Operating System
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
OOP concepts -in-Python programming language
OOP concepts -in-Python programming language
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
Virtual memory management in Operating System
Virtual memory management in Operating System
Specification unit test by Spek
1.
SPECIFICATION UNIT TEST
BY SPEK ANDYANG@SODA LABS
2.
SPEK ➤ Write in
kotlin ➤ Specification Testing DSL Library ➤ not assertion library (JUnit4/5) ➤ not mock library (mockito, mockk) ➤ Support style ➤ Specification (like RSpec) ➤ Gherkin ➤ Support Android & JVM
3.
SPECIFICATION DSL ➤ describe
(“description”){} ➤ context(“context”){} ➤ it(“assertion”){} ➤ skipping test ➤ prefix with x ➤ xdescribe ➤ xcontext ➤ xit
4.
GHERKIN DSL ➤ Feature(“feature”){} ➤
Scenario(“scenario”){} ➤ Given(“arrange”){} -> arrange ➤ When(“act”){} -> act ➤ Then(“assertion”) -> assertion ➤ And(“more”) -> more
5.
HOW TO START ➤
Step 1 extends Spek ➤ Step 2 describe your context & assertion and done.
6.
MORE FEATURE ➤ Common
DSL ➤ group {} ➤ beforeGroup {} ➤ afterGroup {} ➤ beforeEachTest -> JUnit @Before setUp function ➤ afterEachTest -> JUnit @After teatDown function
7.
MORE FEATURE ➤ make
instance unique for each test ➤ before ➤ after using delegate memoized
8.
SAMPLE PROJECT ➤ Todo
list sample ➤ kotlin ➤ koin ➤ rxjava2 ➤ redux ➤ pure domain module ➤ https://github.com/bng86/ReduxTodo
9.
“WE’RE HIRING https://pklotcorp.mit.jobs/
Baixar agora