[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FH5FA3D0WDNE97W673WM9":3,"skill-same:01M78FH5FA3D0WDNE97W673WM9":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78FH5FA3D0WDNE97W673WM9","testing-quality",null,"Testing pyramid, deterministic tests, regression tests, behavior assertions, test isolation, flaky detection, representative fixtures","poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-quality\ndescription: Testing pyramid, deterministic tests, regression tests, behavior assertions, test isolation, flaky detection, representative fixtures\n---\n# Testing Quality Engineering\n\n## 1. Testing Pyramid\nStructure the test suite according to the Testing Pyramid: a broad base of fast, isolated unit tests, a smaller middle layer of integration tests, and a narrow peak of slow, end-to-end (E2E) tests. Push tests down the pyramid wherever possible.\n\n## 2. Deterministic Execution\nTests must be perfectly deterministic. A test that passes sometimes and fails others is worse than no test. Eliminate sources of non-determinism: network calls, uncontrolled timers, random number generators, and shared mutable state.\n\n## 3. Regression Test Coverage\nEnsure every discovered bug is accompanied by a regression test before fixing. The test must fail before the fix and pass after. This builds an unbreakable safety net and prevents the same bug from reappearing.\n\n## 4. Behavior Assertions\nAssert against observable behavior, not internal implementation details. Test the public API of a component. Avoid mocking internal methods or checking private state, as this leads to fragile tests that break during refactoring.\n\n## 5. Strict Test Isolation\nEach test must run in complete isolation. Tests must not depend on the execution order or the side effects of other tests. Reset the database, clear caches, and recreate objects before each test run.\n\n## 6. Flaky Test Detection\nImplement automated mechanisms to detect and quarantine flaky tests. Re-run failed tests locally or in CI to identify non-determinism. Treat a flaky test as a failing test and prioritize its repair or removal.\n\n## 7. Representative Fixtures\nUse realistic, representative data for test fixtures. Avoid overly simplistic 'foo\u002Fbar' data if domain-specific constraints exist. Use factories or builders to generate valid, complex objects easily without cluttering the test setup.\n\n## 8. Mutation Testing\nUse mutation testing tools to evaluate the quality of your test suite. These tools introduce small defects (mutations) into your code and check if your tests catch them. High coverage doesn't guarantee good assertions; mutation testing does.\n\n## 9. Test Driven Development (TDD)\nEncourage TDD as a design tool. Writing tests first forces you to think about the API from the consumer's perspective, leading to simpler, more decoupled, and more testable code architectures.\n\n## 10. Performance Testing\nIntegrate performance tests into the CI pipeline to catch regressions. Assert on response times, memory usage, and CPU load under simulated load. Establish baselines and fail the build if performance degrades beyond acceptable thresholds.\n\n","# Testing Quality Engineering\n\n## 1. Testing Pyramid\nStructure the test suite according to the Testing Pyramid: a broad base of fast, isolated unit tests, a smaller middle layer of integration tests, and a narrow peak of slow, end-to-end (E2E) tests. Push tests down the pyramid wherever possible.\n\n## 2. Deterministic Execution\nTests must be perfectly deterministic. A test that passes sometimes and fails others is worse than no test. Eliminate sources of non-determinism: network calls, uncontrolled timers, random number generators, and shared mutable state.\n\n## 3. Regression Test Coverage\nEnsure every discovered bug is accompanied by a regression test before fixing. The test must fail before the fix and pass after. This builds an unbreakable safety net and prevents the same bug from reappearing.\n\n## 4. Behavior Assertions\nAssert against observable behavior, not internal implementation details. Test the public API of a component. Avoid mocking internal methods or checking private state, as this leads to fragile tests that break during refactoring.\n\n## 5. Strict Test Isolation\nEach test must run in complete isolation. Tests must not depend on the execution order or the side effects of other tests. Reset the database, clear caches, and recreate objects before each test run.\n\n## 6. Flaky Test Detection\nImplement automated mechanisms to detect and quarantine flaky tests. Re-run failed tests locally or in CI to identify non-determinism. Treat a flaky test as a failing test and prioritize its repair or removal.\n\n## 7. Representative Fixtures\nUse realistic, representative data for test fixtures. Avoid overly simplistic 'foo\u002Fbar' data if domain-specific constraints exist. Use factories or builders to generate valid, complex objects easily without cluttering the test setup.\n\n## 8. Mutation Testing\nUse mutation testing tools to evaluate the quality of your test suite. These tools introduce small defects (mutations) into your code and check if your tests catch them. High coverage doesn't guarantee good assertions; mutation testing does.\n\n## 9. Test Driven Development (TDD)\nEncourage TDD as a design tool. Writing tests first forces you to think about the API from the consumer's perspective, leading to simpler, more decoupled, and more testable code architectures.\n\n## 10. Performance Testing\nIntegrate performance tests into the CI pipeline to catch regressions. Assert on response times, memory usage, and CPU load under simulated load. Establish baselines and fail the build if performance degrades beyond acceptable thresholds.\n\n",{"name":5,"description":7},"main","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".ai\u002Fskills\u002Ftesting-quality",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add poppyTM\u002Foride --skill testing-quality",{"tool":39,"command":40},"bunx","bunx skills add poppyTM\u002Foride --skill testing-quality",{"tool":42,"command":43},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill testing-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002FSKILL.md",true,[47,53,57,61,65,71],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"checks\u002Ftest-quality-checklist.md","REFERENCE","参考文档",352,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002Fchecks\u002Ftest-quality-checklist.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"examples\u002Fmocking_best_practices.md",1509,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002Fexamples\u002Fmocking_best_practices.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"manifest.json",1205,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002Fmanifest.json",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ftesting-pyramid.md",1498,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002Freferences\u002Ftesting-pyramid.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fcheck_test_coverage.sh","SCRIPT","脚本",1169,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002Fscripts\u002Fcheck_test_coverage.sh",{"path":72,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":73,"sourceHtmlUrl":74},"templates\u002Ftesting-quality-template.md",828,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftesting-quality\u002Ftemplates\u002Ftesting-quality-template.md",[76,82,88,95,102,109],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M78FHQN254KEH0DETXT5JM29","zoom-reflow","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M78FHE53D8DD0QVRY5C37DA4","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M78FHBJ1KXFF734GFE509TBJ","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]