E2e Testingのロゴ

E2e Testing

コミュニティ
nahid-sparktales
e2e-testing

Build and keep end-to-end suites that are worth their runtime — which journeys belong at this level, selectors that survive refactors, waiting on state instead of sleeping, per-spec data isolation, and flake triage that finds the cause. Use when adding or repairing an e2e suite, when specs are slow or intermittently red, or when deciding whether a case belongs here at all. Not for one-off checking that a change renders, not for unit or integration tests, and not for load testing.

概要

公開者nahid-sparktales
リポジトリagent-dispatcher
スキル名e2e-testing
スター
58
フォーク
5
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    nahid-sparktalesがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「E2e Testing」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/e2e-testing
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/quality/e2e-testing .claude/skills/e2e-testing
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでE2e Testingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にE2e Testingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、E2e Testingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

End-to-end testing

The end-to-end level is the most expensive coverage available and the only level that can prove a journey holds together. Suites die when those two facts are confused: everything gets tested here, the suite gets slow and flaky, reruns become routine, and a red run stops meaning anything.

A suite whose failures are ignored is worse than no suite — it costs runtime and provides a false signal.

When this fires

Creating, extending, triaging or pruning an automated end-to-end suite. It does not fire for manually confirming that a change renders and works (browser-verification), nor for coverage that a unit or integration test could hold (test-design).

Procedure

  1. Admit a journey only if it loses its meaning at a lower level. Signup through first use; add to cart through payment confirmation; a permission boundary spanning UI, API and database. If a unit or integration test can observe the same failure, it belongs there — cheaper, faster, and it names the cause instead of the symptom. Validation-message wording, per-field rules and error formatting do not belong here.
  2. One spec is one journey with one reason to fail. A spec that walks six unrelated features tells you only that one of six broke, and it breaks six times as often.
  3. Set up state through the API or a fixture, and assert through the UI. Driving the UI to create preconditions triples the runtime and makes every spec fail whenever an unrelated screen changes. The journey under test is the part you click.
  4. Log in once, not per spec. Authenticate through an API call or a seeded session/storage state and reuse it. The login form itself is one spec's journey, not every spec's preamble.
  5. Give every spec its own data. A unique account, tenant or record per run, created by the spec and torn down or left disposable. Shared seed data makes specs order-dependent and turns parallel execution into cross-talk. Never rely on a record another spec created.
  6. Select by role and accessible name, or by a dedicated test id. In that order. CSS class chains, nth-child and user-visible copy all break on changes that break nothing real — and role-based selection tests something true about the page while it does it.
  7. Wait for states, never for durations. Wait for the element to be visible and enabled, for the request to settle, for the URL or the rendered text to change. Use the framework's retrying assertions with an explicit timeout. A fixed sleep is either slower than necessary or shorter than reality, usually both on the same day.
  8. Assert something a user could see. Text on the screen, the URL, a value in a field, an item that disappeared. Asserting on a network call or on internal state is an integration test wearing a browser.
  9. Pin the environment. A named build, seeded data, a fixed viewport, timezone and locale, and animations reduced. These are the four things that differ between a laptop and CI. Never point the suite at production — it creates real records, sends real mail and can touch real people; that is outward-facing, so stop and ask, and use a disposable environment instead.
  10. Capture the artifact on failure — trace, video, screenshot, console log, the failing selector. A failure with no artifact costs a full reproduction cycle; with one, triage is usually a minute.
  11. Allow at most one retry, and treat a pass-on-retry as a failure to investigate, not a pass. Record which specs needed a retry, because that record is the flake list.
  12. Triage each flake to a cause before touching it. Four causes, four different fixes: a race in the test (wait on the right state), a race in the application (a real bug — fix the app, not the wait), shared or leaked state (isolate), or an unstable dependency (stub it at the network boundary, or drop the journey). "Fixed" by adding a sleep is not fixed; it is a longer suite with the same defect.
  13. Prove stability before believing it. Run the suite twice back to back on the same build, and once with spec order shuffled or parallelism increased. Green once is not green.
  14. Prune on evidence. For a suite that hurts, measure: runtime per spec, failure history, how often a red run found a real defect. Quarantine anything unfixable with an owner and a date, and propose deletions with the numbers attached. Deleting specs removes someone's coverage — ask before removing them, and never quarantine as a way of silencing a real failure.

Checklist

  • Every spec is a journey that no lower level could observe
  • One journey per spec, one reason to fail
  • Preconditions created by API or fixture, not by clicking
  • Authentication seeded once and reused
  • Data unique per spec and per run; no cross-spec dependency
  • Selectors are role or test-id based, not classes, positions or copy
  • No fixed sleeps anywhere; every wait names a state
  • Assertions are on user-visible outcomes
  • Environment pinned: build, seed, viewport, timezone, locale, animations
  • Traces or screenshots retained on failure
  • Retries capped at one and every retry recorded
  • Suite run twice and shuffled before being called stable
  • Quarantine list has owners and dates; nothing silenced without one

Failure handling

  • Passes locally, fails in CI — compare the four usual suspects first: viewport, timezone and locale, animation and network timing, and parallel workers sharing data. Read the trace before changing the test.
  • Fails once, passes on rerun — that is a flake, not a pass. Log it and triage it to a cause. Reporting it as green is how a real race reaches production.
  • Suite is green but the feature is broken — the coverage is at the wrong level or the assertions are not user-visible. Say which, and fix the level rather than adding more specs.
  • A journey cannot be automated (third-party payment page, real email or SMS, a device capability) — stub at the network boundary if that keeps the journey meaningful, otherwise state plainly that this path is manually checked, by whom and when. Do not simulate it and call it covered.
  • Browser or runner unavailable — say the end-to-end level could not be run, name what was checked instead, and do not describe the journeys as passing.
  • Under pressure to skip a failing spec to unblock a release — that is a release decision, not a test change. Report what the spec covers and what shipping without it risks, and let the owner decide.

Evidence to report

The journeys covered and, explicitly, the ones that are not; the command that runs the suite with its real output; the result of two consecutive runs and one shuffled run; traces or screenshots for every failure; the retry and quarantine list with owners and dates; and the environment the suite ran against, named. A suite described as passing without a second run and an environment name is a single sample.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「E2e Testing」では何ができますか?

Build and keep end-to-end suites that are worth their runtime — which journeys belong at this level, selectors that survive refactors, waiting on state instead of sleeping, per-spec data isolation, and flake triage that finds the cause. Use when adding or repairing an e2e suite, when specs are slow or intermittently red, or when deciding whether a case belongs here at all. Not for one-off checking that a change renders, not for unit or integration tests, and not for load testing.

TypingMindでE2e Testingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。E2e Testingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにE2e Testingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/e2e-testingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

E2e Testingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

E2e Testingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもE2e Testingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「E2e Testing」は無料ですか?

はい。nahid-sparktalesがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇