End to end functional tests that can run in milliseconds | Nat Pryce | CukenFest London 2017

  Рет қаралды 10,859

Cucumber

Cucumber

Күн бұрын

On our current project, we fell into several well-known pitfalls with our approach to functional testing -- siloed responsibility, unreliable automation, duplicated code. We had to rethink our approach.
We took advantage of our application's "Ports-and-Adaptors" architecture to write tests in a different way. Instead of working "outside-in", starting by driving the GUI, we now write functional tests that exercise the domain model in isolation. To exercise more of the system, we translate the inputs and assertions in the tests from the level of the domain model into interactions at wider and wider scales. We can now run the same tests directly against the domain model, against service interfaces, and through the UI in end-to-end system tests.
We are having our cake and eating it too!
In this talk I'll describe the motivation and design of our functional test infrastructure, and discuss its benefits and challenges.
Nat Pryce has been doing TDD for a long time. He is one of the authors of Growing Object­-Oriented Software Guided by Tests. He is currently working with Springer Nature, helping them build a platform for the submission and review of scientific research.

Пікірлер: 8
@steven_cross
@steven_cross 6 жыл бұрын
Great talk. Could listen to Nat all day!
@EricMinio
@EricMinio 3 жыл бұрын
"Never asked". Brilliant! :)
BDD (Behavior Driven Development) | Better Executable Specifications
26:04
Continuous Delivery
Рет қаралды 21 М.
🚀 Integrated Tests Are A Scam (J.B. Rainsberger)
53:16
DevTernity Conference
Рет қаралды 6 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 79 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 18 МЛН
October CincyRb - Jim Weirich on Decoupling from Rails
1:15:58
Launch Scout
Рет қаралды 47 М.
Functional architecture - The pits of success - Mark Seemann
1:00:10
NDC Conferences
Рет қаралды 142 М.
Mastering Chaos - A Netflix Guide to Microservices
53:14
InfoQ
Рет қаралды 2,2 МЛН
TDD for those who don't need it - GopherCon SG 2017
13:43
Singapore Gophers
Рет қаралды 50 М.
A Real World Example of BDD
16:33
Continuous Delivery
Рет қаралды 24 М.
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН