test-writer

tarafından firebase

Bu çalışma alanındaki modüller için pytest testlerinin nasıl yazılacağı. Test yazmaya veya testleri genişletmeye başlamadan önce yükleyin.

npx skills add https://github.com/firebase/genkit --skill test-writer

Test writer

When writing pytest tests in this workspace:

  • One test file per module. foo.py lives next to foo_test.py (suffix, not prefix).
  • Cover the happy path AND at least one edge case. Empty input, duplicates, boundary values — pick what matters for the unit under test.
  • Use pytest.mark.parametrize when the same assertion runs over a small table of inputs. Keep IDs descriptive.
  • Name tests test_<unit>_<scenario>_<expected>. Examples: test_total_empty_cart_returns_zero, test_add_duplicate_item_merges_quantities.
  • Arrange / Act / Assert. Three clear blocks. No setup hidden in fixtures unless it's reused across at least two tests.
  • Assert behavior, not implementation. Don't reach into private attributes or count function calls; check the observable result.
  • Imports at module top. Don't import inside test functions.

firebase tarafından daha fazla skill

developing-genkit-dart
firebase
We need to translate the given text from English to Turkish, preserving the name "developing-genkit-dart" if it appears, but it does not appear in the text. The text describes a unified AI SDK for Dart. We must not add any extra commentary, labels, or formatting. Just the translation. The text: "Unified AI SDK for Dart enabling code generation, structured outputs, tools, flows, and agents. Provides core APIs for generation, tool definition, flow orchestration, embeddings, and streaming with a single interface Includes 8+ plugins for LLM providers (Google Gemini, Anthropic Claude, OpenAI GPT), Firebase AI, Model Context Protocol, Chrome browser integration, and HTTP server hosting via Shelf Built-in CLI with local development UI for flow execution, tracing, model experimentation, and..." We need to translate accurately, preserving product names, protocol names, URLs, numbers, technical terms. So "Unified AI SDK for Dart" -> "Dart için Birleşik AI SDK'sı" but careful: "AI" is technical term, keep as AI.
developing-genkit-js
firebase
Genkit akışları, araçları ve çoklu model desteği ile AI destekli Node.js/TypeScript uygulamaları oluşturun. Genkit, sağlayıcıdan bağımsızdır; eklentiler aracılığıyla Google AI, OpenAI, Anthropic, Ollama ve diğer LLM sağlayıcılarını destekler. Zod ile tür güvenli şemalar kullanarak akışlar tanımlayın, üretim isteklerini yürütün ve TypeScript'te çok adımlı AI iş akışları oluşturun. Genkit CLI v1.29.0+ gerektirir; son büyük API değişiklikleri nedeniyle güncel kalıplar için önceki bilgilere değil, genkit docs:read ve common-errors.md dosyasına başvurmalısınız...
extension-to-functions-codebase
firebase
Kurulu bir Firebase Uzantısını (veya uzantı kaynağını) bağımsız bir Firebase için Cloud Functions kod tabanına veya yayınlanabilir bir npm paketine dönüştürme becerisi,…
firebase-ai-logic
firebase
We need to translate the given English text into Turkish, preserving the name "firebase-ai-logic" only if it appears in the source text. The source text does not contain that name; it's just the directory item type. So we translate the description only. The text is about client-side Gemini integration for web apps. We must preserve product names (Gemini, Gemini Nano, Chrome, Cloud Storage, App Check), protocol names, URLs (none), numbers (20 MB), and technical terms (multimodal inference, streaming, on-device hybrid execution, etc.). No extra commentary, no labels. Just the translation. Let's translate carefully: "Client-side Gemini integration for web apps with multimodal inference, streaming, and on-device hybrid execution." -> "Web uygulamaları için çok modlu çıkarım, akış ve cihaz üzerinde hibrit yürütme ile istemci tarafı Gemini entegrasyonu." "Supports text-only and multimodal inputs (images, audio, video, PDFs);
firebase-ai-logic-basics
firebase
Firebase AI Logic (Gemini API)'yi web uygulamalarına entegre etmek için resmi beceri. Kurulum, çok modlu çıkarım, yapılandırılmış çıktı ve güvenlik konularını kapsar.
firebase-app-hosting-basics
firebase
Firebase App Hosting ile Next.js, Angular ve diğer desteklenen framework'leri kullanarak full-stack web uygulamaları dağıtın ve yönetin. Blaze fiyatlandırma planında bir Firebase projesi gerektirir; Sunucu Taraflı Render (SSR) ve Artımlı Statik Rejenerasyon (ISR) iş akışlarını destekler. Firebase.json yapılandırması ve isteğe bağlı apphosting.yaml ile backend kurulumu yaparak dağıtım yapın veya GitHub entegrasyonu aracılığıyla otomatik "git push ile dağıt" özelliğini etkinleştirin. Hassas anahtarlara güvenli erişim için CLI komutlarıyla gizli yönetimi içerir...
firebase-auth-basics
firebase
Firebase Authentication'ı birden çok kimlik sağlayıcı ve güvenli veri erişim kuralları ile kurun. E-posta/şifre, telefon numarası, anonim, federasyon sağlayıcıları (Google, Facebook, Twitter, GitHub, Microsoft, Apple) ve özel kimlik doğrulama entegrasyonunu destekler. Her kimliği doğrulanmış kullanıcı, Firebase hizmetlerine erişmek için benzersiz bir kimlik ve JWT tabanlı token'lar (kısa ömürlü ID token'ları ve uzun ömürlü yenileme token'ları) alır. Google Sign In, anonim ve e-posta/şifre için CLI üzerinden sağlayıcıları etkinleştirin; Firebase Console'u kullanın...
firebase-basics
firebase
Firebase proje kurulumu ve AI ajan entegrasyonu için CLI iş akışı. firebase-local-env-setup becerisinin ve Firebase CLI kurulumunun önceden tamamlanmasını gerektirir. Temel iş akışı, firebase login ile kimlik doğrulama, benzersiz kimliklerle proje oluşturma ve etkileşimli firebase init komutu ile hizmet başlatmayı kapsar. Kurulum sırasında Firestore, Functions ve Hosting dahil olmak üzere özellik seçimini destekler ve otomatik yapılandırma dosyası oluşturur. --help bayrakları ile kendi kendini belgeleyen CLI...