GENERATE5 MIN READ

Reuse what you already have with memory

Turn on the memory layer and generation reuses your relevant existing cases and avoids drafting duplicates of coverage you already wrote.

The problem

As a suite grows, the risk of generation is duplication, it drafts a login test you already have, three times, in three features. The memory layer fixes that, it looks at your existing cases and reuses or skips what is already covered, so a new generation adds to your suite instead of cloning it.

The idea

Generate with awareness of what exists. The memory layer reuses relevant existing cases and reduces duplicates, so each generation extends your coverage rather than repeating it.

What memory does

  • Reuses relevant existing test cases instead of redrafting them
  • Reduces duplicate coverage as the suite grows
  • Keeps a new generation additive, not repetitive

How it works

Add --memory to a generation and Kane CLI consults your existing cases to dedupe and reuse, the same memory layer the interactive Generate mode uses.

Run it now

Add --memory so generation builds on what you already have.

kane-cli generate "password reset and account lockout" --memory

What prints

Example run. Your numbers will vary by site, build and run. The PASS / FAIL and the zeros are the stable result, the raw timings and counts are illustrative.

✓ Generated 2 scenarios · 6 cases  (request 23784)

▸ TS1  User can successfully reset their password via email link   [H]  3 cases
▸ TS2  Account is temporarily locked after multiple failed login attempts   [H]  3 cases

  /view inspect   ·   /save save as runnable tests   ·   /run

# with an existing suite, memory also prints what it reused:
  reused 2 existing cases, skipped 1 duplicate

Combine with limits

# memory plus size limits for a clean, additive run
kane-cli generate "<feature>" --memory --scenario-limit 3 --per-scenario-limit 5

Why it works

The memory layer matches a new request against your existing cases, so overlapping coverage is reused or skipped rather than regenerated. It is most useful once you have a suite worth not duplicating.

What it unlocks

Generation scales with your suite instead of bloating it. Each new feature adds the cases it needs and leans on the ones you already have.

More Use Cases

CONSOLE

Catch the bug a screenshot misses

Your visual test is green and the page still loaded broken. This catches the server error and the thrown error the camera cannot see.

PERFORMANCE

X-ray any page

Point Kane CLI at any URL and get back every number your DevTools would show you, in one structured result.

COOKIES

See the cookie your test scripts are blind to

Assert an HttpOnly session cookie exists, the secure cookie that document.cookie and most test tools cannot read.

NETWORK

Check the response, not just the status

Assert the endpoint returned the right shape, an array with items or a field with a value, not merely a 200.

NETWORK

Catch the API failure behind a green page

Assert the real network result, a 200 where it matters and no 5xx anywhere, even when the page looks perfect.

CONSOLE

Catch the error that only fires on a click

Find the error that a page load check never sees because it only happens when the user acts.

COOKIES

Catch a cookie missing the Secure flag

Fail the moment any cookie is set without the Secure flag, so a session token can never travel over plain HTTP.

NETWORK

Catch an environment leak before it ships

Fail a production build that quietly calls staging, localhost or a debug endpoint.

LOCAL STORAGE

Keep secrets out of local storage

Assert that no obviously sensitive value, a password, a card number, raw personal data, is sitting in storage any script could read.

GENERATE

Describe what to test, get the test cases

Say what you want to test in one sentence and Kane CLI generates the scenarios and the Positive, Negative and Edge cases, no browser, no writing them by hand.

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests