agentleFS
fthsrbstfthsrbst/mnema/skills/testing/SKILL.md

testing

Skill2 starsChanged 3 months agoMITView on GitHub

Test yazma disiplini — neyi test etmeli, neyi etmemeli, test önce mi sonra mı, smoke/birim/uçtan uca dengesi. Yeni özellik yazarken, bug düzeltirken veya "test yazalım mı" sorusunda kullan.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    networking

    Practical application and coding skills for Networking

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 9 projects that use this

  • Cogni-AI-OUSkill

    dotfiles

    Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.

    Also in 3 projects that use this

  • +2 more from CES-Ltd
  • +1 more from ffsshhttiikk

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Her bug düzeltmesi = önce onu yakalayan test: Test kırmızıyken düzelt, yeşile dön (bu repo'daki smoke pattern'i).

    line 9
  2. Very specific:

    Test başarısız olduğunda mesaj üç soruyu cevaplamalı: ne bekleniyordu, ne geldi, hangi girdiyle.

    line 31

“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Testing — Ne Zaman, Ne Kadar, Nasıl

Temel kurallar

  • Her bug düzeltmesi = önce onu yakalayan test. Test kırmızıyken düzelt, yeşile dön (bu repo'daki smoke pattern'i). Testsiz düzeltilen bug geri gelir.
  • Davranışı test et, implementasyonu değil: "fonksiyon X'i çağırıyor mu" değil, "girdi A → çıktı B mi". İç yapıya bağlı test, her refactor'da kırılan yüktür.
  • Test piramidi pragmatik: Bol hızlı birim testi çekirdek mantığa (chunker, arama, LWW merge gibi); az sayıda uçtan uca smoke gerçek akışa (kaydet→ara→bul). UI/entegrasyon testini gerçek fayda varsa yaz.

Neyi MUTLAKA test et

  • Para/veri kaybettirebilecek yollar: silme, senkron/merge, migration
  • Sınır koşulları: boş, null, unicode/Türkçe, eşzamanlılık, büyük girdi
  • Sözleşmeler: API response şekli, geriye dönük uyumluluk
  • Daha önce kırılmış her şey (regresyon)

Neyi test ETME

  • Framework'ün kendisini (express route'a istek atıp "çalışıyor mu" bakmak — bir smoke yeter)
  • Getter/setter, saf konfig, tek satırlık delegasyon
  • Mock'un mock'unu gerektiren şeyler — tasarım kokusudur; önce bağımlılığı ayrıştır

Pratik akış (yeni özellik)

  1. En riskli davranışı belirle → onun testini İLK yaz (kırmızı)
  2. Geçir (yeşil), sonra kenar durumları ekle
  3. Smoke'a bir uçtan uca satır ekle (gerçek akış hâlâ bütün mü?)
  4. CI yoksa bile: npm run smoke alışkanlığı — commit'ten önce çalıştır

Hata anatomisi

Test başarısız olduğunda mesaj üç soruyu cevaplamalı: ne bekleniyordu, ne geldi, hangi girdiyle. assert(x) değil assert.equal(sonuc, beklenen, "girdi: ...").

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.