Unit testing Cursor rules

377 tagged Unit testing, measured the same way as everything else here.

Browse within: cursor 52cursorrules 34nodejs 19cli 18cursor-ai 13ai-coding 12cursor-rules 11javascript 11nextjs 11orm 11prisma 11mcp-server 10model-context-protocol 10package-manager 10

commit-checks

01

strelov1/freehire

Cursor rule Cursor

Run gofmt, go vet, and unit tests before committing Go files.

not rated 3.8k +132 today A 175 tokens original MIT

gonavi-go

02

Syngnat/GoNavi

Cursor rule Cursor

A Go coding rule set for the GoNavi repository, based on common Go style guides and the project's own conventions. It covers file structure, errors, context, concurrency, logging, and tests.

not rated 2.1k +6 today A 0 tokens original Apache-2.0

expecttest

03

ezyang/codemcp

Cursor rule Cursor

We use expecttest for testing. If you need to match against a multiline string or some output that is likely to change in the future (e.g., the kind of thing you would have ordinarily done an assertIn with), use an expect test. If a test is assertExpectedInline and it fails, use 'accept' command to update the output…

not rated 1.6k +2 11mo ago A 0 tokens original Apache-2.0

testing

04

thedaviddias/llms-txt-hub

Cursor rule Cursor

Rules for writing Jest tests in TypeScript.

not rated 934 +4 today A 1,167 tokens

test-scripts

05

ivo-toby/mcp-openapi-server

Cursor rule Cursor

Never try to run a test-script from commandline using node -e. This will always fail, you'll need to write a typescript test file, build that and execute that.

not rated 302 +1 18d ago A 49 tokens original MIT

testing

06

JasonBoy/msw-mcp

Cursor rule Cursor

Add Vitest tests when changing behavior in this monorepo.

not rated 81 5mo ago A 221 tokens original MIT

create-tests-swift

07

brunogama/ios-cursor-rules

Cursor rule Cursor

This guide outlines Swift testing principles and practices, focusing on creating effective unit tests for Swift code.

not rated 74 1y ago A 2,570 tokens original MIT

testing

08

udecode/plate-template

Cursor rule Cursor

Cursor rule "testing" from udecode/plate-template, covering testing goal, core rules, seam selection, fixtures and assertions and quick reference.

not rated 59 19d ago A 315 tokens copy · 100% MIT

project-rules

09

terryso/todo-cli

Cursor rule Cursor

A Cursor rule file containing project development guidance, including TDD, BDD, unit testing, and general practices. TDD means writing tests before code; BDD describes expected behavior in user-focused terms.

not rated 34 1y ago A 1,424 tokens

frozenlib/mcp-attr

Cursor rule Cursor

A set of Cursor coding rules for testing generated code from a Rust Model Context Protocol server attribute system. Code generation means producing source code automatically from declarations or annotations.

not rated 28 1y ago A 745 tokens

testing-standards

12

wjgogogo/cursor-rules

Cursor rule Cursor

A set of testing rules covering test practices and strategy. It discusses unit tests for small pieces of code, integration tests for connected components, and end-to-end tests for complete workflows.

not rated 22 1y ago A 0 tokens

testing

13

aa-io/site

Cursor rule Cursor

This project uses Vitest for testing with React Testing Library for component testing. The testing stack includes.

not rated 18 5mo ago A 2,028 tokens

testing

15

akngs/s4

Cursor rule Cursor

When writing tests, always follow these best practices.

not rated 13 11mo ago A 0 tokens original MIT

ui-kit-react

17

epam/ai-dial-ui-kit

Cursor rule Cursor

React/TypeScript UI kit conventions — components, stories, tests, exports.

not rated 10 changed 6d ago A 0 tokens original Apache-2.0

testing

19

bestcarly/opc-coding-guide

Cursor rule Cursor

A set of project rules for writing unit and integration tests. Unit tests check one function or module, while integration tests check several parts working together, often with a test database.

not rated 7 8mo ago A 1,890 tokens original MIT

CharLEE-X/effect-cursor-rules

Cursor rule Cursor needs its repo

Comprehensive Effect-TS service architecture patterns covering stores, usecases, handlers, and testing for building scalable applications.

not rated 6 1y ago A 22 tokens original MIT

testing

21

humzakt/dev-starter-kit

Cursor rule Cursor

Testing conventions and patterns.

not rated 4 9mo ago A 0 tokens original MIT

rspec-let-do-blocks

22

panozzaj/cursor-rules

Cursor rule Cursor

Cursor rule "rspec-let-do-blocks" from panozzaj/cursor-rules, covering multi-line array, multi-line method call with keyword args, multi-line hash definition, complex single line expression and using { ... } for multi-line blocks.

not rated 3 1y ago A 0 tokens original MIT

tecton-unit-testing

23

tecton-ai/tecton-mcp

Cursor rule Cursor

Always follow these rules when creating or modifying Tecton unit tests.

not rated 3 1y ago A 13 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: