# table driven tests

A software testing technique in which test cases are stored as table entries and a shared test iterates over them to check inputs and expected results.

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

## Replay Fidelity in LLM Agent Evaluation: Randomness, Hidden State, and Test Oracles in AppWorld

DevFeed: [Replay Fidelity in LLM Agent Evaluation: Randomness, Hidden State, and Test Oracles in AppWorld](<https://devfeed.tech/articles/replay-fidelity-in-llm-agent-evaluation-randomness-hidden-state-and-test-oracles-in-appworld-126083.md>)

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

Author: You Liu, Quanchao Lu

Published: 2026-11-10T05: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: [reproducibility](<https://devfeed.tech/topics/reproducibility.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Stateful](<https://devfeed.tech/topics/stateful.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>)

Tags: [agent-evaluation](<https://devfeed.tech/tags/agent-evaluation.md>), [audit](<https://devfeed.tech/tags/audit.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [database](<https://devfeed.tech/tags/database.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [delta](<https://devfeed.tech/tags/delta.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [execution](<https://devfeed.tech/tags/execution.md>), [export](<https://devfeed.tech/tags/export.md>), [failure](<https://devfeed.tech/tags/failure.md>), [failure-analysis](<https://devfeed.tech/tags/failure-analysis.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [jwt](<https://devfeed.tech/tags/jwt.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [llm](<https://devfeed.tech/tags/llm.md>), [matching](<https://devfeed.tech/tags/matching.md>), [oracles](<https://devfeed.tech/tags/oracles.md>), [randomness](<https://devfeed.tech/tags/randomness.md>), [state](<https://devfeed.tech/tags/state.md>)

### AI overview

In a fixed historical AppWorld corpus, replay fidelity depends on controlling randomness and checking state beyond printed outputs and verdicts. Across 71 unsuccessful executions and 284 isolated fixed-code replay attempts, reconstructed declared settings passed 42 cases; resetting the random-number generator before each interaction passed 68. Database and oracle checks narrowed that gap to four cases, with one endpoint unknown. Mechanism studies found materialized-state differences despite matching outputs and verdicts, including differing row effects after an identical API call; common future Python RNG removed that deterministic difference in two paired repetitions. JWT credential-equality and alignment checks exposed authentication and write differences, with missing repetitions retained. Native export from retained output trackers restored reference comparisons for all 10 affected post-oracle export cases without changing cached contents. A 12-case BFCL pilot found no discrepancy under its tested checks. The study preserves resource censoring and infrastructure deviations and does not estimate debugger accuracy, repair gains, or method-ranking distortion.

### Source excerpt

arXiv:2611.11216v1 Announce Type: cross Abstract: Reproducibility in large language model (LLM) agent evaluation depends on replay fidelity: which parts of an execution trace are reconstructed, controlled, and compared. This matters for agent debugging, failure analysis, and counterfactual evaluation of stateful tool use. We audit all 71 unsuccessful executions in a fixed historical AppWorld corpus using 284 isolated fixed-code replay attempts. Reconstructed declared settings admit 42 cases under printed-output, pre-oracle database-delta, and native-verdict/test-count checks; resetting the random-number generator before each interaction admits 68. The 26-case gap contracts to four under database/oracle checks, with one endpoint unknown. Mechanism studies identify four materialized-state discrepancies despite matching outputs and verdicts. In one admitted endpoint pair, an identical API call yields matching responses but different row effects; common future Python RNG removes that deterministic difference in two paired repetitions. A separate JWT credential-equality program and alignment controls expose authentication/write differences, with missing repetitions retained. For all 10 affected post-oracle export cases, native export from retained output trackers restores the reference comparison without changing original cached contents. A purposeful 12-case BFCL pilot shows no discrepancy under its tested public-state, return, and verdict checks. We preserve resource censoring and infrastructure deviations. The contribution is a bounded empirical characterization of replay eligibility, hidden state, and test-oracle integration, without estimating debugger accuracy, repair gains, or method-ranking distortion.

## Using Rewind VM properties to find and verify concurrency bugs

DevFeed: [Using Rewind VM properties to find and verify concurrency bugs](<https://devfeed.tech/articles/always-sometimes-never-86860.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/10/14/always-sometimes-never>)

Published: 2026-10-14T18:00:00Z

Content type: tutorial

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [intermittent failures](<https://devfeed.tech/topics/intermittent-failures.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [flaky-tests](<https://devfeed.tech/tags/flaky-tests.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

The article explains how Rewind VM explores different thread schedules to find flaky tests and concurrency bugs. It shows how property-based checks, including assertions about outcomes and invariants, can identify a race condition in a Java bank example and verify that a lock fixes it.

### Source excerpt

Exit 0 means your program exited 0. That's it. That's all it means. 🍞 I have been working on a deterministic VM called Rewind VM, where "a run" (i.e. test, command etc.) is a function of its inputs including the thread schedule. The determinism comes from the tool recording every step which lets you replay it exactly. This alone is a pretty good way to find flaky tests: run the test under Rewind, then rewind check runs it under many different thread schedules, with some slight latency added, and failures often crop up. 🐛

## Laravel Fake Assertions Now Accept Property Arrays

DevFeed: [Laravel Fake Assertions Now Accept Property Arrays](<https://devfeed.tech/articles/laravel-fake-assertions-now-accept-property-arrays-77073.md>)

Original publisher: [Read original article](<https://laravel-news.com/laravel-fake-assertion-property-arrays>)

Author: Paul Redmond

Published: 2026-10-07T20:51:26Z

Content type: tutorial

Language: en

Sources: [Laravel](<https://devfeed.tech/sources/laravel.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [test](<https://devfeed.tech/topics/test.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>)

Tags: [laravel](<https://devfeed.tech/tags/laravel.md>), [laravel-tutorials](<https://devfeed.tech/tags/laravel-tutorials.md>), [phpunit](<https://devfeed.tech/tags/phpunit.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Laravel 13.35 adds array-based property matching to Queue, Bus, Event, and Notification fake assertions, replacing callbacks for straightforward checks. The values use strict equality, except that Eloquent models are compared by identity metadata; nested properties and non-public properties still require callbacks.

### Source excerpt

Laravel 13.35 lets assertPushed(), assertDispatched(), and assertSentTo() take an array of expected properties in place of a callback. The post Laravel Fake Assertions Now Accept Property Arrays appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

## Parametrised tests in Rust with named parameters

DevFeed: [Parametrised tests in Rust with named parameters](<https://devfeed.tech/articles/parametrised-tests-in-rust-with-named-parameters-60386.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/table-driven-rust/>)

Published: 2026-09-26T08:43:00Z

Content type: tutorial

Language: en

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

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [test](<https://devfeed.tech/topics/test.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [rust](<https://devfeed.tech/tags/rust.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [table-driven-tests](<https://devfeed.tech/tags/table-driven-tests.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article explains how to write table-driven tests in Rust using named parameters. It compares loops, positional-argument macros, and third-party testing libraries, then describes a custom macro designed to reduce repetition while preserving readability.

### Source excerpt

I wrote a macro that lets me define test cases with labelled inputs and outputs, so I can reduce repetition without affecting readability.

## Ask It Again

DevFeed: [Ask It Again](<https://devfeed.tech/articles/ask-it-again-55887.md>)

Original publisher: [Read original article](<https://swamp-club.com/feed/p/c750c41b-cf0c-4236-9772-bc2c2cf69f28/go>)

Author: vcjdeboer

Published: 2026-09-19T18:56:56Z

Content type: article

Language: en

Sources: [Swamp Club Feed](<https://devfeed.tech/sources/swamp-club-feed.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Chaos Engineering](<https://devfeed.tech/topics/chaos-engineering.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [Error Propagation](<https://devfeed.tech/topics/error-propagation.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [conclusion](<https://devfeed.tech/tags/conclusion.md>), [confidence](<https://devfeed.tech/tags/confidence.md>), [data](<https://devfeed.tech/tags/data.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [error](<https://devfeed.tech/tags/error.md>), [extension](<https://devfeed.tech/tags/extension.md>), [fragment](<https://devfeed.tech/tags/fragment.md>), [gate](<https://devfeed.tech/tags/gate.md>), [jev](<https://devfeed.tech/tags/jev.md>), [note](<https://devfeed.tech/tags/note.md>)

### AI overview

Jev can return repeatable confidence scores that still answer an unanswerable question. In this study, the word "yes" received a stable 98% formality score despite having no assessable register. The practical check is to add a separate answerability question to the same request, tailored to the judgment and specifying what counts as enough evidence and what does not. Across 20 texts, that check separated prose from non-writing in the tested set; low answerability should stop the pipeline from acting on the score. The note also reports that identical requests varied most for borderline texts, unused request fields shifted answers, and some four-level scores tied exactly, limiting the detail their decimals support. Its initial estimate that rewording had a larger effect did not survive a revised model. These are consistency findings, not evidence that Jev is correct; correctness requires labeled examples.

### Source excerpt

An engineering note on how repeatable Jev is -- what we replicated, what surprised us, what didn't hold up, and the one check worth adding.

## IonQ | IonQ at IEEE QCE26: 10 Papers, Real Quantum Results

DevFeed: [IonQ | IonQ at IEEE QCE26: 10 Papers, Real Quantum Results](<https://devfeed.tech/articles/ionq-ionq-at-ieee-qce26-10-papers-real-quantum-results-83779.md>)

Original publisher: [Read original article](<https://ionq.com/blog/bridging-a-historical-divide-in-quantum-computing>)

Author: IonQ Staff

Published: 2026-09-15T18:20:40Z

Content type: article

Language: en

Sources: [IonQ](<https://devfeed.tech/sources/ionq.md>)

Topics: [Quantum Computing](<https://devfeed.tech/topics/quantum-computing.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [2026](<https://devfeed.tech/tags/2026.md>), [academic](<https://devfeed.tech/tags/academic.md>), [academic-research](<https://devfeed.tech/tags/academic-research.md>), [accelerated-computing](<https://devfeed.tech/tags/accelerated-computing.md>), [acceleration](<https://devfeed.tech/tags/acceleration.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-inference](<https://devfeed.tech/tags/ai-inference.md>), [ai-model](<https://devfeed.tech/tags/ai-model.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [applications](<https://devfeed.tech/tags/applications.md>), [ieee](<https://devfeed.tech/tags/ieee.md>), [ionq](<https://devfeed.tech/tags/ionq.md>), [papers](<https://devfeed.tech/tags/papers.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [results](<https://devfeed.tech/tags/results.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

### AI overview

IonQ describes 10 papers presented with partners at IEEE QCE26, including four medal-winning papers. The research covers hybrid quantum-classical workflows for industrial simulations and logistics, quantum methods for AI training and inference, and approaches to reducing errors in quantum circuits. Reported results include improvements in specific simulations and optimization tasks, while the article frames these as progress toward practical enterprise applications.

### Source excerpt

IonQ and partners unveil 10 peer-reviewed papers at IEEE QCE26, winning 4 medals. See how quantum-classical hybrid workflows deliver enterprise impact today.

## Does My Website Need Prerendering? A Practical Test

DevFeed: [Does My Website Need Prerendering? A Practical Test](<https://devfeed.tech/articles/does-my-website-need-prerendering-a-practical-test-87422.md>)

Original publisher: [Read original article](<https://prerenderbuddy.com/blog/does-my-website-need-prerendering>)

Author: Prerender Buddy

Published: 2026-08-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Prerender Buddy](<https://devfeed.tech/sources/prerender-buddy-blog.md>)

Topics: [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [static-site-generator](<https://devfeed.tech/topics/static-site-generator.md>), [Website](<https://devfeed.tech/topics/website.md>), [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>)

Tags: [crawlers](<https://devfeed.tech/tags/crawlers.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [prerendering](<https://devfeed.tech/tags/prerendering.md>), [website](<https://devfeed.tech/tags/website.md>)

### AI overview

This practical guide explains how to determine whether a JavaScript website needs prerendering. It recommends comparing user-visible pages with raw HTML, rendered HTML, and the response received by the relevant crawler, then checking access rules, URLs, redirects, and content parity. Prerendering may help when important public content is missing from crawler responses and a larger server-rendering or static-generation change is not practical; it does not guarantee indexing or AI visibility.

### Source excerpt

Test whether crawlers receive your important JavaScript content, learn when prerendering helps, and avoid adding it when your site does not need it.

## Workshop Basel day two

DevFeed: [Workshop Basel day two](<https://devfeed.tech/articles/workshop-basel-day-two-18897.md>)

Original publisher: [Read original article](<https://daniel.haxx.se/blog/2026/07/15/workshop-basel-day-two/>)

Author: Daniel Stenberg

Published: 2026-07-15T20:07:14Z

Content type: article

Language: en

Sources: [Daniel Stenberg](<https://devfeed.tech/sources/daniel-stenberg.md>)

Topics: [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [Server](<https://devfeed.tech/topics/server.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-prompts](<https://devfeed.tech/tags/ai-prompts.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [http](<https://devfeed.tech/tags/http.md>), [http-2](<https://devfeed.tech/tags/http-2.md>), [http-3](<https://devfeed.tech/tags/http-3.md>), [http-workshop](<https://devfeed.tech/tags/http-workshop.md>), [network](<https://devfeed.tech/tags/network.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [performance](<https://devfeed.tech/tags/performance.md>), [quic](<https://devfeed.tech/tags/quic.md>), [specifications](<https://devfeed.tech/tags/specifications.md>), [web](<https://devfeed.tech/tags/web.md>), [workshop](<https://devfeed.tech/tags/workshop.md>)

### AI overview

Day two of the Basel workshop covered AI's effect on HTTP implementation and several measurement and testing projects. Participants debated whether AI prompts should be checked into Git and whether specifications could become a higher abstraction than source code. A Common Crawl scan using HTTP/2 reportedly used it for 61% of responses and finished a few percent faster; it used a locally patched Apache Nutch. Other presentations covered HTTP/1.1 behavior comparisons, HTTP Zoll's tests for request and response smuggling in intermediaries, and HTTP Arena's server-framework performance measurements. The HTTP/3 and QUIC session compared deployment estimates from different sources and discussed ways to increase adoption; the excerpt cuts off before completing its list of obstacles.

### Source excerpt

If you missed it. I already described day one. Caffeinated and ready, we all gathered in the same spacious room as yesterday, but seated in new places as "suggested" by our captain. Some of us even remembered to move over the name tags we wrote yesterday to our new seats. No time was wasted on ... Continue reading Workshop Basel day two ->

## How ngrok helps Sam develop and test LLM-powered RAG applications

DevFeed: [How ngrok helps Sam develop and test LLM-powered RAG applications](<https://devfeed.tech/articles/how-ngrok-helps-sam-develop-and-test-llm-powered-rag-applications-83320.md>)

Original publisher: [Read original article](<https://ngrok.com/blog/sam-develop-test-llm-rag>)

Author: Team ngrok

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

Content type: article

Language: en

Sources: [\[ngrok news\]](<https://devfeed.tech/sources/ngrok-news.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Holoscan for Media](<https://devfeed.tech/topics/holoscan-for-media.md>), [vercel ai sdk](<https://devfeed.tech/topics/vercel-ai-sdk.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [developer-productivity](<https://devfeed.tech/topics/developer-productivity.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [customers](<https://devfeed.tech/tags/customers.md>), [feature-flagging](<https://devfeed.tech/tags/feature-flagging.md>), [llm](<https://devfeed.tech/tags/llm.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [rag](<https://devfeed.tech/tags/rag.md>)

### AI overview

The guest post describes how Sam uses ngrok to develop distributed AI application services locally against staging systems, and to test prompt changes with a portion of production traffic without affecting production. Engineers compare the resulting local answers with production answers using a comparison service.

### Source excerpt

Building LLM-fueled apps? See how one AI startup uses ngrok to develop locally against remote services and safely test LLM prompt changes without breaking prod.

## if got, want: A Simple Way to Write Better Go Tests

DevFeed: [if got, want: A Simple Way to Write Better Go Tests](<https://devfeed.tech/articles/if-got-want-a-simple-way-to-write-better-go-tests-52783.md>)

Original publisher: [Read original article](<https://mtlynch.io/if-got-want-improve-go-tests/>)

Author: Michael Lynch

Published: 2025-01-08T00:00:00Z

Content type: tutorial

Language: en

Sources: [Mtlynch](<https://devfeed.tech/sources/mtlynch-io.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [go](<https://devfeed.tech/tags/go.md>), [table-driven-tests](<https://devfeed.tech/tags/table-driven-tests.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

A tutorial on using the `if got, want :=` pattern in Go tests. The pattern makes expected and actual values clearer, simplifies copied assertions, and separates assertions from test control flow.

### Source excerpt

There's an excellent Go testing pattern that too few people know. I can teach it to you in 30 seconds. Instead of writing Go tests like this: // The common, unrefined way. username := GetUser() if username != "dummyUser" { t.Errorf("unexpected username: got %s, want: %s", username, "dummyUser") } Write your tests like this, beginning each assertion with if got, want :=: // The underused, elegant way. if got, want := GetUser(), "dummyUser"; got != want { t.Errorf("username=%s, want=%s", got, want) } The if got, want :=: pattern works even better in table-driven tests. Here's an example from my library for parsing social media handles:

## How to create a parameterized base test class in Kotlin

DevFeed: [How to create a parameterized base test class in Kotlin](<https://devfeed.tech/articles/how-to-create-a-parameterized-base-test-class-in-kotlin-25575.md>)

Original publisher: [Read original article](<https://www.marcogomiero.com/posts/2023/parameterized-kotlin-base-test/>)

Author: Marco Gomiero

Published: 2023-01-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Posts on Marco Gomiero](<https://devfeed.tech/sources/posts-on-marco-gomiero.md>)

Topics: [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [test data](<https://devfeed.tech/topics/test-data.md>), [class](<https://devfeed.tech/topics/class.md>), [superclass](<https://devfeed.tech/topics/superclass.md>)

Tags: [arguments](<https://devfeed.tech/tags/arguments.md>), [base](<https://devfeed.tech/tags/base.md>), [companion](<https://devfeed.tech/tags/companion.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [environment](<https://devfeed.tech/tags/environment.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [junit](<https://devfeed.tech/tags/junit.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [runner](<https://devfeed.tech/tags/runner.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

JUnit 4's Parameterized runner injects test arguments through the test class constructor, with the argument set defined in that class's companion object. For tests that need shared setup, the text describes making a base test class accept an argument and define the required arguments in its companion object; concrete test classes then extend the base class, use the runner, and pass the argument to the base-class constructor. This enables the same tests to run across multiple inputs with shared configuration. The excerpt focuses on JUnit 4, though it notes JUnit 5 also offers parameterized tests.

### Source excerpt

One exciting feature of JUnit 4 (and 5 as well, but this post will be focused on JUnit 4) is the possibility of running the same test with different input arguments. That is made possible by a custom test runner called Parameterized, which will inject the provided arguments in the constructor of the test class. Instead, the different arguments must be defined in the companion object of the test class.

## Table driven tests in Go

DevFeed: [Table driven tests in Go](<https://devfeed.tech/articles/table-driven-tests-in-go-22198.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2023/01/table-driven-tests-in-go.html>)

Published: 2023-01-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>)

Tags: [documentation](<https://devfeed.tech/tags/documentation.md>), [go](<https://devfeed.tech/tags/go.md>), [go-test](<https://devfeed.tech/tags/go-test.md>), [golang](<https://devfeed.tech/tags/golang.md>), [table-driven-tests](<https://devfeed.tech/tags/table-driven-tests.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

Go table-driven tests store input cases and expected outcomes in a slice, then run the function against each case. As the case set grows, locating a failure becomes harder. The excerpt describes using sub-tests: each test function receives a name and test logic, and the Go test output shows that name when the case fails, making it easier to identify the failing case.

### Source excerpt

Introduction Table tests are a great way to test different inputs and associated outputs for a function in Go. To write a table test, you define a slice of some data struct with fields of the input data you'll need and the expected outcome. Then you can loop through this slice and pass the data stored for each element to your function. One disadvantage of table tests is as the data set in your slice grows, the harder it is to find the failing case. Luckily, Miki will share some tips to manage this with the Go test suite.