Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #writing #ai

testing

Use when writing tests, debugging test failures, running the test suite, or setting up test infrastructure. Covers self-test, package tests, and modern E2E tests.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=meteor-meteor-github-skills-testing-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name testing description Use when writing tests, debugging test failures, running the test suite, or setting up test infrastructure. Covers self-test, package tests, and modern E2E tests. Testing Test patterns, commands, and utilities for the Meteor codebase. Test Commands # CLI self-tests ./meteor self-test # Run all CLI tests ./meteor self-test "test name" # Run specific test ./meteor self-test --list # List available tests ./meteor self-test --exclude "^[a-b]" # Exclude tests by regex ./meteor self-test --retries 0 # Skip retries in development # Package tests (TinyTest — view results at http://localhost:3000) ./meteor test-packages # Test all core packages ./meteor test-packages mongo # Test specific package TINYTEST_FILTER= "collection" ./meteor test-packages # Filter specific tests # Package tests in console (headless via Puppeteer — prints results to terminal) # Use this for automation or when you need terminal output without a browser. PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium ./packages/test-in-console/run.sh ./packages/test-in-console/run.sh # Test all core packages ./packages/test-in-console/run.sh "mongo" # Test specific package # E2E tests (Jest + Playwright) npm run install:e2e # Install dependencies npm run test :e2e # Run all E2E tests npm run test :e2e -- -t= "React" # Run specific test # Native mobile smoke tests (Maestro) npm run install:native # Install deps, verify Maestro CLI on PATH npm run test :native:android # Run Android smoke flow npm run test :native:ios # Run iOS smoke flow E2E Tests ( tools/e2e-tests/ ) Jest + Playwright suite for verifying bundler integrations (rspack). Tests cover framework skeletons, command modes, routing, top-level await, and build/watch regressions. Test apps: tools/e2e-tests/apps/ . Use dev/modern-tools/rspack/E2E_COVERAGE.md as the authoritative app-to-feature coverage map instead of inferring coverage from fixture names. Native mobile smoke tests ( tools/native-tests/ ) Plain Node orchestrator + Maestro YAML flows. Builds a minimal Meteor app for Cordova, installs it on an iOS Simulator or Android emulator, and checks the initial runtime plus a live hot-code-push update. Coverage includes rendering, styles, Cordova APIs and asset paths, DDP, route reloads, and HCP. Runs nightly in CI plus on PRs labeled mobile . Local prerequisites: Maestro CLI ( curl -fsSL https://get.maestro.mobile.dev | bash ), Xcode (iOS), Android SDK + emulator (Android). See tools/native-tests/README.md for current Node and Android SDK minimums. Tests: flows/launch.yaml and flows/hcp-updated.yaml against apps/smoke/ . Test Helpers Package ( packages/test-helpers ) Comprehensive testing utilities for Meteor applications. Async Testing import { testAsyncMulti, simplePoll, waitUntil } from 'meteor/test-helpers' ; // Wait for condition await waitUntil ( () => someCondition, { timeout : 5000 , interval : 100 }); // Poll until ready simplePoll ( () => isReady (), successCallback, failCallback); DOM/UI Testing import { clickElement, simulateEvent, canonicalizeHtml, renderToDiv } from 'meteor/test-helpers' ; clickElement (button); simulateEvent (input, 'keydown' , { keyCode : 13 }); const normalized = canonicalizeHtml (html); Connection Testing import { makeTestConnection, captureConnectionMessages } from 'meteor/test-helpers' ; const conn = makeTestConnection (clientId); const messages = captureConnectionMessages (server); Utilities Function Description SeededRandom Predictable random for deterministic tests try_all_permutations() Test all permutations of inputs withCallbackLogger() Track callback invocations mockBehaviours() Behavior mocking Tinytest ( packages/tinytest ) Meteor's built-in test framework. Tinytest . add ( 'my test' , function ( test ) { test. equal ( 1 + 1 , 2 ); test. isTrue ( true ); test. throws ( function ( ) { throw new Error (); }); }); Tinytest . addAsync ( 'async test' , async function ( test ) { const result = await asyncOperation (); test. equal (result, expected); }); Environment Variables Variable Description TEST_METADATA Test configuration JSON METEOR_TEST_PACKAGES Packages to test Debug Commands # Verbose build output METEOR_DEBUG_BUILD=1 ./meteor run # Profile build performance METEOR_PROFILE=1 ./meteor build # Force rebuild ./meteor reset && ./meteor run # Debug Meteor tool with Chrome inspector TOOL_NODE_FLAGS= "--inspect-brk" ./meteor Writing Package Tests In package.js : Package . onTest ( function ( api ) { api. use ([ 'tinytest' , 'test-helpers' , 'my-package' ]); api. addFiles ( 'my-package-tests.js' ); }); In my-package-tests.js : import { MyPackage } from 'meteor/my-package' ; Tinytest . add ( 'MyPackage - basic functionality' , function ( test ) { const result = MyPackage . doSomething (); test. equal (result, expected); });
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。