Submit Search
Upload
Spek
•
1 like
•
612 views
哲偉 楊
Follow
kotlin specification testing framework
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 9
Download now
Download to read offline
Recommended
Specification unit test by Spek
Specification unit test by Spek
哲偉 楊
Talk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about Docker
Wellington Silva
Build, logging, and unit test tools
Build, logging, and unit test tools
Allan Huang
Ansible+docker (highload++2015)
Ansible+docker (highload++2015)
Pavel Alexeev
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Ontico
Continuous Integration on Steroids
Continuous Integration on Steroids
Alexander Akbashev
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
Spock Framework (Java Day BY 2015)
Spock Framework (Java Day BY 2015)
katoquro
Recommended
Specification unit test by Spek
Specification unit test by Spek
哲偉 楊
Talk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about Docker
Wellington Silva
Build, logging, and unit test tools
Build, logging, and unit test tools
Allan Huang
Ansible+docker (highload++2015)
Ansible+docker (highload++2015)
Pavel Alexeev
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Масштабируя TLS / Артём Гавриченков (Qrator Labs)
Ontico
Continuous Integration on Steroids
Continuous Integration on Steroids
Alexander Akbashev
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
Spock Framework (Java Day BY 2015)
Spock Framework (Java Day BY 2015)
katoquro
Finding Needles in Haystacks
Finding Needles in Haystacks
snyff
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
Prajal Kulkarni
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
Gaurav Bhardwaj
Postgres level up
Postgres level up
Fabio Telles Rodriguez
Kotlin - A very quick introduction
Kotlin - A very quick introduction
Mike Harris
Ruxmon feb 2013 what happened to rails
Ruxmon feb 2013 what happened to rails
snyff
Getting Started with PureScript
Getting Started with PureScript
John De Goes
Mobile Analytics mit Elasticsearch und Kibana
Mobile Analytics mit Elasticsearch und Kibana
inovex GmbH
Dive into sentry
Dive into sentry
Leo Zhou
Monitoring with ElasticSearch
Monitoring with ElasticSearch
Kris Buytaert
JBoss Fuse Workshop 101 part 5
JBoss Fuse Workshop 101 part 5
Christina Lin
Easy access to open stack object storage
Easy access to open stack object storage
Juan José Martínez
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
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Docker-Hanoi
Jordan Hubbard Talk @ LISA
Jordan Hubbard Talk @ LISA
guest4c923d
New Features Of JDK 7
New Features Of JDK 7
Deniz Oguz
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
Alex Pop
JRuby e DSL
JRuby e DSL
jodosha
Spock
Spock
Naiyer Asif
Eclipse Pdt2.0 26.05.2009
Eclipse Pdt2.0 26.05.2009
Bastian Feder
XML parsing using jaxb
XML parsing using jaxb
Malintha Adikari
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
More Related Content
What's hot
Finding Needles in Haystacks
Finding Needles in Haystacks
snyff
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
Prajal Kulkarni
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
Gaurav Bhardwaj
Postgres level up
Postgres level up
Fabio Telles Rodriguez
Kotlin - A very quick introduction
Kotlin - A very quick introduction
Mike Harris
Ruxmon feb 2013 what happened to rails
Ruxmon feb 2013 what happened to rails
snyff
Getting Started with PureScript
Getting Started with PureScript
John De Goes
Mobile Analytics mit Elasticsearch und Kibana
Mobile Analytics mit Elasticsearch und Kibana
inovex GmbH
Dive into sentry
Dive into sentry
Leo Zhou
Monitoring with ElasticSearch
Monitoring with ElasticSearch
Kris Buytaert
JBoss Fuse Workshop 101 part 5
JBoss Fuse Workshop 101 part 5
Christina Lin
Easy access to open stack object storage
Easy access to open stack object storage
Juan José Martínez
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
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Docker-Hanoi
What's hot
(14)
Finding Needles in Haystacks
Finding Needles in Haystacks
Attack monitoring using ElasticSearch Logstash and Kibana
Attack monitoring using ElasticSearch Logstash and Kibana
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
Postgres level up
Postgres level up
Kotlin - A very quick introduction
Kotlin - A very quick introduction
Ruxmon feb 2013 what happened to rails
Ruxmon feb 2013 what happened to rails
Getting Started with PureScript
Getting Started with PureScript
Mobile Analytics mit Elasticsearch und Kibana
Mobile Analytics mit Elasticsearch und Kibana
Dive into sentry
Dive into sentry
Monitoring with ElasticSearch
Monitoring with ElasticSearch
JBoss Fuse Workshop 101 part 5
JBoss Fuse Workshop 101 part 5
Easy access to open stack object storage
Easy access to open stack object storage
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Similar to Spek
Jordan Hubbard Talk @ LISA
Jordan Hubbard Talk @ LISA
guest4c923d
New Features Of JDK 7
New Features Of JDK 7
Deniz Oguz
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
Alex Pop
JRuby e DSL
JRuby e DSL
jodosha
Spock
Spock
Naiyer Asif
Eclipse Pdt2.0 26.05.2009
Eclipse Pdt2.0 26.05.2009
Bastian Feder
XML parsing using jaxb
XML parsing using jaxb
Malintha Adikari
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Gil Fink
Php Development With Eclipde PDT
Php Development With Eclipde PDT
Bastian Feder
Monitoring OSGi Applications with the Web Console
Monitoring OSGi Applications with the Web Console
Carsten Ziegeler
Monitoring OSGi Applications with the Web Console - Carsten Ziegeler
Monitoring OSGi Applications with the Web Console - Carsten Ziegeler
mfrancis
Monitoring OSGi Applications with the Web Console
Monitoring OSGi Applications with the Web Console
Adobe
Trust, but verify | Testing with Docker Containers
Trust, but verify | Testing with Docker Containers
Nan Liu
PostgreSQL and PL/Java
PostgreSQL and PL/Java
Peter Eisentraut
Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)
Yevgeniy Brikman
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
Testing NodeJS with Mocha, Should, Sinon, and JSCoverage
Testing NodeJS with Mocha, Should, Sinon, and JSCoverage
mlilley
First adoption hackathon at BGJUG
First adoption hackathon at BGJUG
Ivan Ivanov
Play framework
Play framework
Andrew Skiba
Similar to Spek
(20)
Jordan Hubbard Talk @ LISA
Jordan Hubbard Talk @ LISA
New Features Of JDK 7
New Features Of JDK 7
Introduction to InSpec and 1.0 release update
Introduction to InSpec and 1.0 release update
JRuby e DSL
JRuby e DSL
Spock
Spock
Eclipse Pdt2.0 26.05.2009
Eclipse Pdt2.0 26.05.2009
XML parsing using jaxb
XML parsing using jaxb
Quick tour to front end unit testing using jasmine
Quick tour to front end unit testing using jasmine
Php Development With Eclipde PDT
Php Development With Eclipde PDT
Monitoring OSGi Applications with the Web Console
Monitoring OSGi Applications with the Web Console
Monitoring OSGi Applications with the Web Console - Carsten Ziegeler
Monitoring OSGi Applications with the Web Console - Carsten Ziegeler
Monitoring OSGi Applications with the Web Console
Monitoring OSGi Applications with the Web Console
Trust, but verify | Testing with Docker Containers
Trust, but verify | Testing with Docker Containers
PostgreSQL and PL/Java
PostgreSQL and PL/Java
Node.js vs Play Framework (with Japanese subtitles)
Node.js vs Play Framework (with Japanese subtitles)
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
Testing NodeJS with Mocha, Should, Sinon, and JSCoverage
Testing NodeJS with Mocha, Should, Sinon, and JSCoverage
First adoption hackathon at BGJUG
First adoption hackathon at BGJUG
Play framework
Play framework
More from 哲偉 楊
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
哲偉 楊
More from 哲偉 楊
(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
Recently uploaded
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
humanexperienceaaa
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
João Esperancinha
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
AbhinavSharma374939
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
null - The Open Security Community
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
slot gacor bisa pakai pulsa
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Suhani Kapoor
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
wendy cai
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
RajkumarAkumalla
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
Asutosh Ranjan
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
misbanausheenparvam
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
Call Girls in Nagpur High Profile
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
Suhani Kapoor
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
hassan khalil
Extrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
120cr0395
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
Recently uploaded
(20)
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
Extrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Spek
1.
SPEK SPECIFICATION TESTING
DSL LIBRARY andyang@Android Taipei
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/
Download now