npx playwright test

0.0% Savings
0 Commands
0 Tokens saved
2 Tests

Install

tokf install 0585b874f376c8373054aa4e740df2fa22b5948f039f5d49541c611169720020
Safety checks passed

Filter definition

command = ["npx playwright test", "playwright test"]

strip_ansi = true
collapse_empty_lines = true

skip = [
    "^\\s+✓\\s+\\d+",
    "^\\s+◌\\s+\\d+",
    "^\\s+·\\s+\\d+",
    "^\\s+-\\s+\\d+.*\\(retrying\\)",
    "^Slow test file:",
    "^Consider splitting",
]

[on_success]
output = "{output}"

[on_failure]
tail = 60

Examples

failure shows failing tests and error details ~106 tokens → ~62 tokens (42% saved)
Raw output
Running 12 tests using 4 workers

  ✓  1 [chromium] › tests/login.spec.ts:12:5 › should login successfully (3.2s)
  ✓  2 [chromium] › tests/login.spec.ts:25:5 › should show error message (1.8s)

  1) [chromium] › tests/marketplace.spec.ts:45:5 › should display applications

    Error: Timeout of 30000ms exceeded.

    Call log:
      waiting for selector ".app-card"

  11 passed (18.2s)
  1 failed (30.5s)
Filtered output
Running 12 tests using 4 workers

  1) [chromium] › tests/marketplace.spec.ts:45:5 › should display applications

    Error: Timeout of 30000ms exceeded.

    Call log:
      waiting for selector ".app-card"

  11 passed (18.2s)
  1 failed (30.5s)
success filters passing tests and keeps summary ~139 tokens → ~13 tokens (91% saved)
Raw output
Running 12 tests using 4 workers

  ✓  1 [chromium] › tests/login.spec.ts:12:5 › should login successfully (3.2s)
  ✓  2 [chromium] › tests/login.spec.ts:25:5 › should show error message (1.8s)
  ✓  3 [chromium] › tests/marketplace.spec.ts:10:5 › should list apps (2.1s)
  ✓  4 [chromium] › tests/marketplace.spec.ts:22:5 › should filter apps (1.5s)
  ✓  5 [chromium] › tests/sessions.spec.ts:8:5 › should start session (4.2s)
  ✓  6 [chromium] › tests/sessions.spec.ts:20:5 › should end session (2.0s)

  12 passed (18.2s)
Filtered output
Running 12 tests using 4 workers

  12 passed (18.2s)
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters