← Voltar para o catálogo
Create and run unit tests following the project's architecture and guidelines (Robolectric, naming, location).
Ver no GitHub ↗
Copiar URL do repo
Copiar link do SKILL.md
Como adicionar
Copiar comando
/plugin marketplace add aiskillstore/marketplace
O comando exato pode variar conforme o repositório. Confira o README no GitHub.
Para o autor da skill
Cole no README do seu repo
Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.
[](https://www.skillteca.com.br/skills/create-unit-test)
Copiar snippet
Habilidade de pesquisa de segurança em Modo Equipe que orquestra 3 caçadores de vulnerabilidades e 2 engenheiros de PoC para auditar um código, provar explorabilidade, classificar causas raiz e calibrar a severidade. É utilizada para revisão de segurança, pesquisa de vulnerabilidades, auditoria de explorabilidade e validação de modelo de ameaças.
Segurança
por code-yeongyu
security-scanning-security-dependencies
You are a security expert specializing in dependency vulnerability analysis, SBOM generation, and supply chain security. Scan project dependencies across multiple ecosystems to identify vulnerabilities, assess risks, and provide automated remediation strategies.
Segurança
#ai
#git
por sickn33
Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, risk prioritization.
Segurança
#ai
#git
por sickn33
dependency-management-deps-audit
You are a dependency security expert specializing in vulnerability scanning, license compliance, and supply chain security. Analyze project dependencies for known vulnerabilities, licensing issues, outdated packages, and provide actionable remediation strategies.
Segurança
#ai
#git
por sickn33
Alerta por categoria
1 email curto, só com as skills novas de Segurança. 4 minutos de leitura, sem spam, cancela com 1 clique.
Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.
Ler descrição completa Recolher descrição
Create Unit Test
This skill guides the creation of unit tests to ensuring consistency and correctness.
Workflow
Analyze and Plan :Goal : Understand what needs testing.Action : Examine the source code.Action : Identify "happy path" cases (core functionality).Action : Identify "error cases" and "edge cases" based on likelihood.Action : Do not suggest implementation details unless asked; focus on behavior.
Setup Test File :Naming : [OriginalClassName]Test.kt.Location : [module]/src/test/java/[package/path]/.Runner : If testing Android components, you MUST use Robolectric.Mocking : Prefer creating Fakes over Mocks or patches. Use Mocks only if Fakes are too complex.
Implement Tests :Write clear, descriptive test methods. Follow the "Arrange-Act-Assert" pattern. Ensure all resources (strings, themes) are properly mocked or provided via Robolectric.
Run Tests :Command : ./gradlew :[module]:testDebugUnitTestExample : ./gradlew :database:testDebugUnitTestTip : Before any commit, run ./gradlew testDebugUnitTest to ensure everything passes.
Handle Failures :Goal : Diagnose and fix issues.Action : If a test fails, locate the full error report.Path : [module]/build/test-results/testDebugUnitTest/TEST-[package.name.TestClassName].xml.Example : app/build/test-results/testDebugUnitTest/TEST-com.anysoftkeyboard.janus.app.MainActivityTest.xml.
Guidelines
Consistency : Always place tests in the test source set, not androidTest (unless specifically writing instrumentation tests, which is rare for this skill).Reliability : Avoid flaky tests. Ensure deterministic behavior.
Compartilhar
X
LinkedIn
Copiar link