Discover and read the best of Twitter Threads about #BDD

Most recents (8)

Tired of API tests? I know that feeling. That's why I released #Ogooreck: a sneaking BDD framework in #BDD style
👉 github.com/oskardudycz/Og…
Goal is to create a simple but composable tool that will cut the needed boilerplate for testing by the set of sneaky helpers and syntax. 1/
It works with any testing framework. And was baptised in fire (read used in my Event Sourcing .NET samples github.com/oskardudycz/Ev…).
The next step will be to add a similar set of tests for CQRS, DDD, and Event Sourcing common scenarios. 2/
See, the whole implementation is below 500 lines: github.com/oskardudycz/Og…
That means, that I'm open for feedback and contribution! I take PRs 😎
I created it for fun, as I didn't create something brand new for some time, but people liked it so why not release it? 😅
3/
Read 5 tweets
On granularity of tests focused on behaviour.

#tdd #bdd #testing #programming

🧵1/22
A function is one of the smallest units of behaviour. Given an input, it returns the output.

This means that given the context (input), the function's behaviour can be verified by calling the function and looking at the outcome (output).

🧵2/22 Pure function
Notice that the most straightforward outcome to verify is the function's return value, but it's not the only outcome we can look for. Functions can have side effects, modify state, interact with collaborators, etc.

🧵3/22
Read 22 tweets
🧵
“ME/CFS: What Psychiatrists & Psychologists need to know” by @DoctorsWithME (March 2022)

doctorswith.me/me-cfs-what-ps…

#MyalgicEncephalomyelitis #ChronicFatigueSyndrome #NeuroME #MEcfs #CFS #PwME #CFSME

1/
2/
#ME/#CFS is a chronic, complex, multi-system biological illness with often devastating consequences. It affects all age groups including children, and all social classes. About 75% of sufferers are female”

#MyalgicEncephalomyelitis #MEcfs #PwME #CFSME #ChronicFatigueSyndrome
3/
ME/CFS “has a worse quality of life score than many other serious illnesses including cancer, stroke, rheumatoid arthritis and MS. 25% of patients are housebound or bedbound.”

#MyalgicEncephalomyelitis #ChronicFatigueSyndrome #MEcfs #CFS #PwME #MyalgicE #SevereME
Read 10 tweets
In unit testing, what's a unit? Is it a method? Is it a class? Is it a module? No. Let's clarify this once and for all.

In unit testing, a unit isn't an element of structure. In unit testing, a unit is an individually observable element of BEHAVIOR.

#TDD #BDD #ATDD #UnitTesting
BTW I use @mfeathers explanation that "unit tests are tests that run fast" as a possible valid (foundation/element of a) definition of the term unit test.
Stop arguing which element of structure is meant by unit. Unit does not denote an element of structure. It denotes an element of behavior.

And that shouldn't be surprising: Tests are executable specifications of required BEHAVIOR (NOT: STRUCTURE) by example.
Read 14 tweets
تابعت النقاش حول منهجية ال #Agile اللي بدأها الدكتور مازن @mznmel وخلوني ألخص وجهة نظري.
١- الضعف التقني (الشديد أحيانًا) لدى الكثير من فرق البرمجة في السعودية والقفز السريع للادارة هربًا من البرمجة مشكلة كبيرة. شخصيا غير مقتنع بمدير منتج برمجي ما اشتغل برمجة ٥-١٠ سنوات.
ما أعرف صراحة كيف شخص يبي يصير مدير منتج برمجي او يصير scrum master وهو لم يعمل قبل كمبرمج. أحد متطلبات التوظيف ك product manager في قوقل مثلا هي ان تكون software engineer بخبرة طويلة.
٢- هذا الضعف يؤدي الى عدم فهم عمل المبرمجين وسوء (او المبالغة ب) استخدام منهجية ال #Agile (كيف ومتى تستخدم🤔). ما يهمني لو تقرا الف كتاب عن الموضوع. اذا ما اشتغلت بيدك برمجة ضمن فريق لسنوات وحسيت بمشاكل ال delivery وعشتها راح اعتبرك غير فاهم لل #agile بغض النظر عن شهاداتك.
Read 20 tweets
Writing Gherkin scenarios collaboratively can be beneficial both for business analysis, discovering the language of the domain and for the purpose of driving the code.

For both use-cases, here are some of my rules-of-thumb for writing Gherkin scenarios effectively.
#bdd #ddd
Given, When and Then are analogous to the three standard stages of a test:

Arrange: arrange the system to be tested in a given state
Act: take the action that is to be tested (perform the test itself)
Assert: check that what should have happened indeed happened
These stages apply to all tests where outcome depends on command given to system and state system was in. System moves from state A to state B as the result of the command: S1 → S2

Given the system is in state S1
When I give the command X
Then the system should be in state S2
Read 19 tweets
@bonniea @goldsmithaaron @AllDayDevOps @nnja @oscon @MaggieFero I'd love for you to hear @appsecjosh 's experiences working with dev teams reviewing, merging, and deploying code...
@bonniea @goldsmithaaron @AllDayDevOps @nnja @oscon @MaggieFero @appsecjosh If you're interested in #automation around pull requests, I know some devs like @github 's #security vulnerability remediation #opensource
help.github.com/en/articles/co…
@bonniea @goldsmithaaron @AllDayDevOps @nnja @oscon @MaggieFero @appsecjosh @github For a non-dev-centric perspective, you might try
@mheusser 's How a tester can contribute to the code review process searchsoftwarequality.techtarget.com/tip/How-a-test… #testing #whitebox
Read 15 tweets
Getting started with Want to succeed with #TDD ? Stop writing tests! @BurkHufnagel #TDD #DevNexus devnexus.com/presentations/…
We work with software that's way more complex than a simple shape like this. Reasonable people may see the same thing in different ways, based on their perspective! @BurkHufnagel #TDD #DevNexus
You have a goal that you share with me: you want delivering better code faster
... not *writing* code more quickly! @BurkHufnagel #TDD #DevNexus
Read 36 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!