# Behavior-driven development

Behavior-driven development is a software development process that uses concrete examples to guide teams from concept through implementation.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Benchmarking LLM Agents for Behaviorally Adequate Test Generation from Software Requirements

DevFeed: [Benchmarking LLM Agents for Behaviorally Adequate Test Generation from Software Requirements](<https://devfeed.tech/articles/benchmarking-llm-agents-for-behaviorally-adequate-test-generation-from-software-requirements-103159.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36584>)

Author: Binhang Qi, Yiming Liu, Yun Lin, Yangjie Zhou, Hailong Sun, Jin Song Dong

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Dataset development](<https://devfeed.tech/topics/dataset-development.md>), [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [codex](<https://devfeed.tech/tags/codex.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [execution](<https://devfeed.tech/tags/execution.md>), [file](<https://devfeed.tech/tags/file.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [generate](<https://devfeed.tech/tags/generate.md>), [generation](<https://devfeed.tech/tags/generation.md>), [harness](<https://devfeed.tech/tags/harness.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [software](<https://devfeed.tech/tags/software.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

Req2Test-Bench evaluates whether agents can generate tests from Gherkin requirements and target interfaces when behavior implementations are withheld. It contains 5,086 execution-validated instances from eight open-source projects across five languages and four BDD frameworks. Adequacy is measured strictly by kill-completeness: a generated test must kill every mutant killed by the developer-written test. Across eight agent-model-reasoning configurations, the best, Codex with DeepSeek-V4.1-Flash, generated passing tests for 82.8% of instances, but only 33.8% were behaviorally adequate. The authors report sharply diminishing adequacy gains as agent scale and generation cost increase, and identify ambiguous setup and implicit expected outcomes in underspecified requirements as sources of information gaps. They suggest requirement-grounded harnesses to steer agent nondeterminism as a possible improvement.

### Source excerpt

arXiv:2610.36584v1 Announce Type: cross Abstract: As large language model agents increasingly compile natural-language requirements into repository-level code, requirement-to-test generation grows in importance to provide validation constraints (or harness) to guide code generation. Yet it remains unclear whether current agents can generate tests that validate the required behavior when the implementation of that behavior is withheld. Existing test-generation benchmarks mostly focus on white-box testing, whereas the requirement--test-related study usually requires evaluation on semantic alignment between the given documents and the generated tests. We introduce Req2Test-Bench, a benchmark containing 5,086 execution-validated instances recovered from developer-authored behavior-driven development (BDD) artifacts in 8 open-source projects, spanning 5 programming languages and 4 BDD frameworks. Each instance pairs a natural-language requirement in Gherkin with its developer-written Test Implementation. Given the requirement, target interfaces of the required behavior, an agent must generate a complete, potentially multi-file Test Implementation. Evaluation of 8 agent--model--reasoning configurations reveals a substantial gap between execution success and behavioral adequacy, which is measured strictly as kill-completeness: a kill-complete test kills every mutant that the ground-truth test kills. The best-performing configuration, Codex with DeepSeek-V4.1-Flash, produces passing tests for 82.8% of instances, yet only 33.8% are behaviorally adequate. We find that (1) scaling up agents yields sharply diminishing returns in behavioral adequacy relative to generation cost; (2) under-specified requirements cause the information gap, including ambiguous setup and implicit expected outcomes; and (3) requirement-grounded harnesses that steer agent non-determinism offer a promising direction for improvement.

## 7 Checks That Make Form Bugs Easier to Reproduce Across Teams

DevFeed: [7 Checks That Make Form Bugs Easier to Reproduce Across Teams](<https://devfeed.tech/articles/7-checks-that-make-form-bugs-easier-to-reproduce-across-teams-102774.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/7-checks-that-make-form-bugs-easier-to-reproduce-across-teams/>)

Author: gian undefined

Published: 2026-10-27T11:17:16Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [Responsive Design](<https://devfeed.tech/topics/responsive-design.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [accessible required form field](<https://devfeed.tech/topics/accessible-required-form-field.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [Web Content Accessibility Guidelines](<https://devfeed.tech/topics/web-content-accessibility-guidelines.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [synthetic monitoring](<https://devfeed.tech/topics/synthetic-monitoring.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [absolute](<https://devfeed.tech/tags/absolute.md>), [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [account](<https://devfeed.tech/tags/account.md>), [alert](<https://devfeed.tech/tags/alert.md>), [align](<https://devfeed.tech/tags/align.md>), [allows](<https://devfeed.tech/tags/allows.md>), [also](<https://devfeed.tech/tags/also.md>), [animation](<https://devfeed.tech/tags/animation.md>), [animations](<https://devfeed.tech/tags/animations.md>), [announce](<https://devfeed.tech/tags/announce.md>), [api](<https://devfeed.tech/tags/api.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [css](<https://devfeed.tech/tags/css.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [easier](<https://devfeed.tech/tags/easier.md>), [form](<https://devfeed.tech/tags/form.md>), [html-css](<https://devfeed.tech/tags/html-css.md>), [java](<https://devfeed.tech/tags/java.md>), [make](<https://devfeed.tech/tags/make.md>), [reading](<https://devfeed.tech/tags/reading.md>), [teams](<https://devfeed.tech/tags/teams.md>)

### AI overview

Reproducible form bug reports need to preserve the UI state that caused the failure: starting conditions, action, response, observed and expected behavior, viewport, browser, revision, and permissions. The excerpt's seven checks include deterministic boundary fixtures; separating isolated component rendering (for example, Storybook args) from request lifecycle testing (such as Mock Service Worker or request interception), while retaining real API integration coverage; diagnosing layout constraints before changing CSS; and asserting form behavior before comparing Playwright screenshots. It also recommends self-contained review notes and accessibility checks for labels, keyboard use, focus, and error relationships. Tool choice should match the question: a rendered error check does not prove the server response triggers it, and a screenshot alone cannot verify preserved inputs or navigation. Screenshot baselines require a consistent environment and manual review; the proposed CSS layout is only an example, not a universal fix. This overview reflects the supplied excerpt.

### Source excerpt

null Continue reading 7 Checks That Make Form Bugs Easier to Reproduce Across Teams on SitePoint.

## Breakpoint 2026 Speaker Spotlight: Andrew Knight

DevFeed: [Breakpoint 2026 Speaker Spotlight: Andrew Knight](<https://devfeed.tech/articles/breakpoint-2026-speaker-spotlight-andrew-knight-12620.md>)

Original publisher: [Read original article](<https://www.browserstack.com/blog/breakpoint-2026-speaker-spotlight-andrew-knight/>)

Author: Shweta Chhillar

Published: 2026-05-08T10:14:54Z

Content type: article

Language: en

Sources: [BrowserStack Blog](<https://devfeed.tech/sources/browserstack-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [ai](<https://devfeed.tech/tags/ai.md>), [automation](<https://devfeed.tech/tags/automation.md>), [breakpoint](<https://devfeed.tech/tags/breakpoint.md>), [breakpoint-spotlight](<https://devfeed.tech/tags/breakpoint-spotlight.md>), [browser](<https://devfeed.tech/tags/browser.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [qa](<https://devfeed.tech/tags/qa.md>), [quality-engineering](<https://devfeed.tech/tags/quality-engineering.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [software](<https://devfeed.tech/tags/software.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [test-coverage](<https://devfeed.tech/tags/test-coverage.md>), [testing](<https://devfeed.tech/tags/testing.md>), [webdriver](<https://devfeed.tech/tags/webdriver.md>)

### AI overview

This speaker spotlight discusses how Andrew Knight combines open-source advocacy with enterprise software testing. It focuses on AI-powered test generation, behavior-driven development, context engineering, human oversight, and tools such as Selenium WebDriver, Playwright AI tooling, CLI skills, and an MCP server.

### Source excerpt

Explore how Andrew Knight is using AI, behavior-driven development, and context engineering to reshape enterprise software testing at BrowserStack Breakpoint 2026. This speaker spotlight dives into AI-powered QA, test automation, and the future of modern quality engineering.

## Clojure Deref (June 16, 2025)

DevFeed: [Clojure Deref (June 16, 2025)](<https://devfeed.tech/articles/clojure-deref-june-16-2025-49744.md>)

Original publisher: [Read original article](<https://clojure.org/news/2025/06/16/deref>)

Published: 2025-06-16T00:00:00Z

Content type: news

Language: en

Sources: [Clojure News](<https://devfeed.tech/sources/clojure-news.md>)

Topics: [Clojure](<https://devfeed.tech/topics/clojure.md>), [releases](<https://devfeed.tech/topics/releases.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [Database](<https://devfeed.tech/topics/database.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [database](<https://devfeed.tech/tags/database.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [programming](<https://devfeed.tech/tags/programming.md>), [releases](<https://devfeed.tech/tags/releases.md>)

### AI overview

A June 16, 2025 Clojure ecosystem roundup covering community media, meetups, projects, and new libraries and tools. Items include Clojure-MCP, AI development tools, desktop applications, a Markdown parser, BDD testing, databases, scripting, and filesystem utilities.

### Source excerpt

Welcome to the Clojure Deref! This is a weekly link/news roundup for the Clojure ecosystem (feed: RSS). Clojure/Conj 2025 will be held Nov 12-14 in Charlotte, NC. Early Bird Registration is now open. We look forward to seeing you in-person and online! Podcasts, videos, and media Dustin Getz - Electric Clojure Differential Dataflow for UI (KEYNOTE) - LambdaConf SciNoj Light #1 - 2.6: macroexpand-1 community session - Sci Cloj Clojure visual-tools 34 - partial recording: nrepl-ws-server, nrepl-ws-client, Clay - Sci Cloj Clojure Corner: Interview with Martin Kavalar - Flexiana Simple ideas with huge impact from Clojure and Rama (by Nathan Marz) - London Clojurians UI, Pure and Simple (by Christian Johansen) - London Clojurians Scicloj AI Meetup 8: Clojure-MCP - Sci Cloj Designing Clobber: A Deep Dive into a Clojure-Powered Editor for Text and Code - phronmophobic defn episode 3d32130bbe3d Drew Raines - @defn podcast Turning the Conference Inside Out - reflecting backward & forward on Clojure conferences and growth - Sci Cloj Functional Creative Coding with Patterning (by Phil Jones) - London Clojurians XTDB: A Bitemporal database in Clojure - The REPL CoPilot hacked my editor - CalvaTV Blogs, articles, and projects How One Clojure Function Destroyed Agent Framework Completely - Pragyan Tripathi Defold Editor Development. Tips and Tricks - Alexey Gulev Akima splines - Jan Wedekind Libraries and Tools New releases and tools this week: clojure-desktop-toolkit 0.3.1 - Create native state-of-the-art desktop applications in Clojure using Eclipse's SWT graphics toolkit. basilisp 0.4.0 - A Clojure-compatible(-ish) Lisp dialect targeting Python 3.9+ ai-tools 1.0 - tools that help AI development assistants do Clojure malli 0.19.1 - High-performance data-driven data specification library for Clojure/Script. lazytest 1.7.0 - A standalone BDD test framework for Clojure markdown 0.7.186 - A cross-platform clojure/script parser for Markdown deps-new 0.9.0 - Create new projects for th

## Leveraging Kotlin for Tests

DevFeed: [Leveraging Kotlin for Tests](<https://devfeed.tech/articles/leveraging-kotlin-for-tests-25968.md>)

Original publisher: [Read original article](<https://jossiwolf.medium.com/leveraging-kotlin-for-tests-311bfd8335ee?source=rss-8efc0359e234------2>)

Author: Jossi Wolf

Published: 2021-12-01T15:00:03Z

Content type: tutorial

Language: en

Sources: [Jossi Wolf](<https://devfeed.tech/sources/stories-by-jossi-wolf-on-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Cucumber](<https://devfeed.tech/topics/cucumber.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [given-when-then](<https://devfeed.tech/tags/given-when-then.md>), [junit](<https://devfeed.tech/tags/junit.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

This article explains how Kotlin language features and naming patterns can improve test readability. It covers the Given/When/Then pattern, meaningful test names, and using Kotlin backtick function names to make tests clearer.

### Source excerpt

Writing tests can be an important part of developing applications. Whether unit tests, integration tests or others, Kotlin's language features and clever naming patterns can help us increase the readability of tests. The patterns suggested here aren't new or innovative; rather they are more modern adaptions of well-established practices. I learned about these adaptions from my lovely colleague Volodymyr Galandzij who did fantastic work in setting up the testing framework in a codebase we worked on together. Given/When/Then You may have heard of the Given/When/Then pattern -- also known as the Cucumber/Gherkin syntax -- if you have written tests before, or you might even recognize it from Jira tickets. Originally introduced as a part of BDD (Behavior Driven Development), similar patterns like the Four-Phase Test (you'll see some similarities to JUnit here) have existed for a good amount of time. Martin Fowler gives a good small summary of all of this in his article about the Given/When/Then pattern: The essential idea is to break down writing a scenario (or test) into three sections:The given part describes the state of the world before you begin the behavior you're specifying in this scenario. You can think of it as the pre-conditions to the test.The when section is that behavior that you're specifying.Finally the then section describes the changes you expect due to the specified behavior. Regardless of the testing philosophy you follow, there's a good chance that the Given/When/Then pattern can be applied to your tests. But how does this look in practice? I heard that adding a featured image helps increase clicks. Does it work? Who knows! If it does, thank you, Sigmund on Unsplash!Test Names I argue that test names are one of the most important parts of writing good tests. The name of the test should help you understand what the test does. One quality of a good test is that it fails when the actual outcome is different from the expected outcome. When a test fails, it

## Other Driven Developments

DevFeed: [Other Driven Developments](<https://devfeed.tech/articles/other-driven-developments-1513.md>)

Original publisher: [Read original article](<https://shopify.engineering/other-driven-developments>)

Author: J D

Published: 2021-05-21T17:30:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Domain-driven design (DDD)](<https://devfeed.tech/topics/domain-driven-design.md>), [Code](<https://devfeed.tech/topics/code.md>), [Tech Lead](<https://devfeed.tech/topics/tech-lead.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>)

Tags: [career](<https://devfeed.tech/tags/career.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [mental-models](<https://devfeed.tech/tags/mental-models.md>), [models](<https://devfeed.tech/tags/models.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [tech-lead](<https://devfeed.tech/tags/tech-lead.md>)

### AI overview

This article discusses how development methodologies and mental models evolve as teams and companies grow. It introduces additional "driven development" approaches, including Grep Driven Development, and explains how explicit practices can turn implicit lessons into shared guidance. It also highlights how expressive Ruby variable names improve searchability, refactorability, abstraction, and consistency.

### Source excerpt

Mental models within an industry, company, or even a person, change constantly. As methodologies mature, we see the long term effects our choices have wrought and can adjust accordingly. As a team or company grows, methodologies that worked well for five people may not work as well for 40 people. If all employees could keep an entire app in their head, we'd need fewer rules and checks and balances on our development, but that is not the case. As a result, we summarize things we notice have been implicit in our work.

## Threat Modeling Tooling from 2017

DevFeed: [Threat Modeling Tooling from 2017](<https://devfeed.tech/articles/threat-modeling-tooling-from-2017-37051.md>)

Original publisher: [Read original article](<https://shostack.org/blog/threat-modeling-tooling-from-2017/>)

Author: Adam

Published: 2017-12-28T00:00:00Z

Content type: opinion

Language: en

Sources: [Shostack & Friends Blog](<https://devfeed.tech/sources/shostack-friends-blog.md>)

Topics: [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [Application Security](<https://devfeed.tech/topics/application-security.md>), [Security](<https://devfeed.tech/topics/security.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [application-security](<https://devfeed.tech/tags/application-security.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

### AI overview

A retrospective on threat-modeling tooling from 2017 highlights OWASP Threat Dragon, Tutamen, security-language initiatives, BDD-Security, and IriusRisk. The article emphasizes web-based collaboration, simple diagram-to-threat-list workflows, structured threat and control stories, and application security risk management.

### Source excerpt

[no description provided]

## Easy Approach to Requirements Syntax and the segue to Behavior Driven Development

DevFeed: [Easy Approach to Requirements Syntax and the segue to Behavior Driven Development](<https://devfeed.tech/articles/easy-approach-to-requirements-syntax-and-the-segue-to-behavior-driven-development-20778.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/easy-approach-to-requirements-syntax-and-the-segue-to-behavior-driven-development/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-07-31T20:00:00Z

Content type: article

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [User Stories](<https://devfeed.tech/topics/user-stories.md>), [Specifications](<https://devfeed.tech/topics/specifications.md>)

Tags: [acceptance](<https://devfeed.tech/tags/acceptance.md>), [agile-development](<https://devfeed.tech/tags/agile-development.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [specflow](<https://devfeed.tech/tags/specflow.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [templates](<https://devfeed.tech/tags/templates.md>)

### AI overview

EARS (Easy Approach to Requirements Syntax) uses five templates--ubiquitous, event-driven, state-driven, unwanted behavior, and optional features--to structure requirements and address problems such as ambiguity, omission, and untestability. The author hypothesizes that this structure will make it easier to move from user stories and acceptance criteria to Behavior Driven Development, with business people writing SpecFlow feature files as the measure of success. The excerpt begins a Stack class example but cuts off before showing it.

### Source excerpt

I was attending a conference six months ago and listened to a talk about quality. During the talk, I was introduced to EARS -- Easy Approach to Requirements Syntax. This way of writing requirements struck a chord with me, given my prior experience reading and writing requirement specifications.

## Why Open Source Is Worth Your Time

DevFeed: [Why Open Source Is Worth Your Time](<https://devfeed.tech/articles/why-open-source-is-worth-your-time-33395.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2012/04/22/why-open-source-is-worth-your-time>)

Published: 2012-04-22T00:00:00Z

Content type: opinion

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [bdd](<https://devfeed.tech/tags/bdd.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [programming](<https://devfeed.tech/tags/programming.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The author argues that contributing to a relatively mainstream open-source project is an effective way to improve software engineering skills. By studying and participating in high-quality projects, developers can learn practices such as unit testing, maintainable design, behavior-driven development, deployment, support, and professional responses to criticism.

### Source excerpt

One of my math professors said that our beliefs are shaped by our life experiences. Two people can logically come to two very different lifestyle choices based on how they were raised, taught and friends that impacted them. The lecture was meant to apply to religious and moral beliefs, but I think it also applies to how we grow professionally.

## BDD ideas for structuring tests

DevFeed: [BDD ideas for structuring tests](<https://devfeed.tech/articles/bdd-ideas-for-structuring-tests-33387.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2012/01/02/bdd-ideas-for-structuring-tests>)

Published: 2012-01-02T00:00:00Z

Content type: opinion

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [NUnit](<https://devfeed.tech/topics/nunit.md>), [Visual Studio](<https://devfeed.tech/topics/visual-studio.md>)

Tags: [bdd](<https://devfeed.tech/tags/bdd.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [nunit](<https://devfeed.tech/tags/nunit.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>), [visual-studio](<https://devfeed.tech/tags/visual-studio.md>)

### AI overview

The author discusses ways to structure behavior-driven development tests in C#. The article considers nested classes that organize tests by method, notes their compatibility with Visual Studio navigation, and compares that approach with namespace- and method-based setup practices.

### Source excerpt

Lately I've been thinking a lot about the best way to do BDD in C#. So when I saw Phil Haack's post about structuring unit tests, I think I had a joyful thought. Earlier I had been thinking in terms of using my Behavioral NUnit experimental project to hash out Haack's structuring idea with better BDD integration.In short, his idea is to use nested classes. There is the normal one-to-one class-to-test-class mapping, but each method under test gets it's own inner class. To use his example:In this example the Titleify and Knightify methods (imo two terrible uses of the -ify suffix) have corresponding test classes dedicating to testing only one method. Each method in the class (or Fact, in the case of xUnit. I actually haven't used xUnit but it seems to encourage a somewhat BDD readability) test one aspect of the method, much like the it method is used in rspec.I generally like Haack's test structure. For example, he points out how it plays nicely with Visual Studio's natural class/method navigation which makes the tests even more navigable. The only issue I have with it is that I dislike having 1000+ SLOC classes - tests or regular. If I were to adopt this method, I would probably break each of those inner classes into separate files (and use partial classes to break up the top class).My practice for a long time was to have one whole namespace per class under test. Consider my tests for objectflow. I actually picked up this practice from Garfield Moore, objectflow's original developer. Each class (or significant concept) has a namespace (e.g. objectflow.stateful.tests.unit.PossibleTransitions or PossibleTransitionTests). Each class in that namespace is names according to essentially what the Setup does. Some examples: WhenGivenOnlyBranches, WhenGivenOnlyYields, etc.I like the way these tests read. It's very easy to find a particular test or to read up on how a particular method is supposed to operate. But in practice this has led to very deep hierarchies, often with si

## Behavior Driven Development in C#

DevFeed: [Behavior Driven Development in C#](<https://devfeed.tech/articles/behavior-driven-development-in-c-33385.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2011/12/28/behavior-driven-development-in-c>)

Published: 2011-12-28T00:00:00Z

Content type: opinion

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [NUnit](<https://devfeed.tech/topics/nunit.md>), [RSpec](<https://devfeed.tech/topics/rspec.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [bdd](<https://devfeed.tech/tags/bdd.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [nunit](<https://devfeed.tech/tags/nunit.md>), [rspec](<https://devfeed.tech/tags/rspec.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-test](<https://devfeed.tech/tags/unit-test.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

The author explains why behavior-driven development became more manageable than conventional unit-test naming for complex code. They compare Ruby RSpec and .NET BDD approaches, and describe a simple BDD layer over NUnit to preserve its tooling and lower the barrier to contribution.

### Source excerpt

I've been a fan of Test Driven Development since I worked in an XP shop. But every time the work starts getting bigger and more complex I always struggle to not get lost in the magnitudes of tests. I remember many early-on conversations with my elders about unit test naming conventions. The [method]_[input]_[output] convention starts to break down badly when your inputs become things like mocks, or if there ends up being more than 1 or 2 inputs; same with outputs.When a coworker introduced me to BDD earlier this year, it really clicked and flowed naturally. The idea of writing tests so they read like sentences out of a book or spec seems like the answer to all my questions. The ruby rspec is beautiful:The organization of the tests forces you to focus on the expectations of your test and highlight descriptive assertions. This is especially useful for complicated setups with lots of mocks, etc. I put as much of my setup code in one of those before :each blocks, so that way the assertions are limited to simple inputs and one or two observations about the outputs.There's been a number of people in the .NET community that have attempted BDD but [imo] failed to grasp the simplicity. NBehave is a complete overhaul of unit testing that uses attributes like xUnit. As a result, NBehave doesn't really look at all like rspec - which really isn't a bad thing, necessarily. However, the thing I like about rspec is it's ability to describe things of arbitrary depth, which is handy when testing complex code:This spec is able to describe possible modes that the object under test can be in (complex inputs). This is made possible by rspec's arbitrary nesting depth. This is definitely a language feature that is much harder to implement in C#.My current approach to BDD in C# usually looks likeI think this is the simplest BDD layer I can slap on top of NUnit. And simple is important to me because (a) I do a lot of open source projects and I want to keep the barrier to entry for contributi