Convert JUnit 5 @MethodSource/@CsvSource/@ValueSource parameterized tests to @TableTest (JDK8)
npx skills add https://github.com/DataDog/dd-trace-java --skill migrate-junit-source-to-tabletest
Goal: Migrate JUnit 5 parameterized tests using @MethodSource/@CsvSource/@ValueSource to @TableTest with minimal churn and passing tests.
Process (do in this order):
1) Locate targets via Grep (no agent subprocess). Search for: "@ParameterizedTest", "@MethodSource", "@CsvSource", "@ValueSource".
2) Read all matching files up front (parallel is OK).
3) Convert eligible tests to @TableTest.
4) Write each modified file once in full using Write (no incremental per-test edits).
5) Run module tests once and verify "BUILD SUCCESSFUL". If failed, inspect JUnit XML report.
Import: import org.tabletest.junit.TableTest;
JDK 8 rules:
@TableTest({
"a | b",
"1 | 2"
})
Table formatting rules (mandatory):
{a, b, c}) instead of matrix-style repetition when only one dimension varies across otherwise-identical rows.Conversions:
A) @CsvSource
B) @ValueSource
@ValueSource (and @NullSource when null cases are needed).C) @MethodSource (convert only if values are representable as strings)
@TableTest and @MethodSource may be combined on the same @ParameterizedTest when most cases are tabular but a few cases require programmatic setup.@TableTest, and put only non-tabular/complex cases in @MethodSource.@TableTest is not viable for the test at all, use @MethodSource only.@MethodSource, name the arguments method <testMethodName>Arguments (camelCase, e.g. testMethodArguments) and return Stream<Arguments> using Stream.of(...) and arguments(...) with static import.D) @TypeConverter
@TypeConverter for symbolic constants used by migrated table rows (e.g. Long.MAX_VALUE, DDSpanId.MAX).utils/test-utils) when reuse across modules is likely.Scenario handling:
Cleanup:
Mixed eligibility:
@TableTest + @MethodSource on one @ParameterizedTest when only some cases are complex.Do NOT convert when:
Test command (exact):
./gradlew :path:to:module:test --rerun-tasks 2>&1 | tail -20
Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.
Build and distribute Expo development clients locally or via TestFlight
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.
Take datadog/migrate-junit-source-to-tabletest from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.