Skip to content
PluginStats

slicetest weekly downloads statistics

By revo1290 · npm · Testing

Framework-agnostic slice tests: drive a real app process over HTTP with a real Postgres, MySQL or SQLite and stubbed outbound APIs, checked against OpenAPI contracts.

View on npm Fresh · Dec 6, 2026

slicetest has 500 recorded weekly downloads on npm, an increase of 1983% over the past 30 days, ranking #2260 of 3,247 tracked listings.

Weekly downloads
500
Official API · Dec 5, 2026
7-day growth
+2400%
+480 weekly downloads
30-day growth
+1983%
+476 weekly downloads
90-day growth
—
Insufficient history
Rank
#2260
▲ 555 in 7 days

About slicetest

slicetest

CI CodeQL OpenSSF Scorecard npm license

日本語の README · Getting started · Report a bug / 不具合報告 · Contributing / 貢献ガイド

Tests that sit between unit tests and end-to-end tests, for apps written in any language or framework.

slicetest starts your app as a real process, points it at a real Postgres (or MySQL, or SQLite) and at stub servers for the services it calls, and lets you check all three sides in one scenario:

import { expect } from "vitest";
import { scenario } from "slicetest";

scenario("creating a poll stores it and notifies Slack", async ({ http, db, stub }) => {
  stub("slack").on("POST", "/hook").reply(200, "ok");

  const res = await http.post("/polls", { title: "Dogs or cats?", a: "Dogs", b: "Cats" });

  expect(res).toHaveStatus(201);
  await expect(db).toHaveRow("polls", { title: "Dogs or cats?" });
  expect(stub("slack")).toHaveReceived("POST", "/hook", { json: { text: "New poll: Dogs or cats?" } });
});

No browser, no mocked database, no hooks inside your app. The app only has to read its port, database URL and outbound base URLs from environment variables. (State the app keeps in memory is the one thing that may need your help: state between scenarios.)

Why, and when not to use it

Testing an API against a real server, a real database and stubbed third parties is an established approach, and most stacks can do it already (Spring Boot starts a real server in tests and integrates with Testcontainers; Playwright has API testing; WireMock stubs HTTP services and simulates faults). slicetest doesn't claim something only it can do. It bundles the parts you'd otherwise assemble per project, for any language the app is written in: starting the app, the database and the stubs, resetting them between scenarios, checking the three boundaries in one scenario, and explaining a failure.

The usual labels mix up three separate questions: is anything mocked, is a real server running, and how much does the test cover. Side by side:

ApproachMainly checksStrong atLimits
Function / class testsLogic, boundaries, exception branchesControl over internal dependenciesReal connections and SQL need a separate check
API integration tests you already haveHTTP, the app, a real DB, calls to external servicesFit with your existing frameworkStarting, resetting and diagnosing is yours to build, depending on the setup
slicetestThe same API-level tests, plus environment management and diagnosticsSeveral checks in one scenario; the same scenarios for any languageReaching into the app's internals, or a dependency it doesn't support, takes extra design
Browser E2EFrom UI actions through the main flowsWhat happens in the browserPoor at controlling fine-grained internal state

What slicetest keeps real: the HTTP server, the SQL and the migrations. What it replaces: services you don't own, with stubs. With OpenAPI specs it also checks that your stubs' replies could come from the real service, within what the spec documents (what each check does and doesn't guarantee).

Whether it's worth adopting depends on what you have:

Team or useVerdict
No test setup for the API, the DB and external callsA small trial fits
Several languages, and you want one way to test all of themA comparatively strong candidate
Failures take long to investigate in logs and the DBWorth measuring what the combined output saves
Spring (or similar) integration tests that already run stablyDon't plan to replace them; measure what slicetest would add
Many branches of internal logic to coverUnit tests first
The UI, or a real identity provider or external APIBrowser E2E, or a check against the real service, alongside

Not measured yet: whether it is faster than other setups, cheaper to maintain, or stable over long use on real projects. The one comparison made so far (the same nine checks on a Spring Boot app, written with JUnit + Testcontainers + WireMock and with slicetest; run times, flaky runs, injected faults, and what each failure shows) is in examples/comparison, with its limits: one machine, one small app, both suites by one author. The speeds quoted below are narrow measurements, with their conditions.…

Description from the npm listing.

  • testing
  • integration-testing
  • slice-test
  • api-testing
  • postgres
  • mysql
  • sqlite
  • stub
  • mock-server
  • vitest
  • vitest-plugin
  • mcp
  • coding-agent
  • yaml
  • testcontainers
  • language-agnostic
  • openapi
  • contract-testing
  • graphql
  • jwt

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

slicetest weekly downloads on npm, last 90 days: 500 weekly downloads as of Dec 5, 2026.slicetestWeekly downloads on npm · Last 90 days500downloads / week02004006008001K1.2K1.4K1.6K1.8KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
slicetest weekly downloads on npm, last 90 days: 500 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

slicetest weekly downloads growth on npm: +2400% over 7 days, +1983% over 30 days, 90-day growth unavailable.slicetestWeekly downloads growth on npm500downloads / week now7-day growth+480 weekly downloads+2400%30-day growth+476 weekly downloads+1983%90-day growth+500 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
slicetest weekly downloads growth on npm: +2400% over 7 days, +1983% over 30 days, 90-day growth unavailable.

Ranking history

slicetest npm ranking history: currently #2260 (by weekly downloads).slicetestnpm ranking · by weekly downloads · Last 90 days#2260current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
slicetest npm ranking history: currently #2260 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 113, #20 (overall #2,260)
All npm: every listing in weekly downloads order

Listing placement

Testing26 listings · 2 pages · page 1, #10 (overall #10)
Testing: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for slicetest
Date (UTC)Weekly downloadsChange vs. previous
500+42
458+49
409+185
224+215
9+3
6-12
18-2
20-5
25-1
26-2
28-2
30-1
31+7
24—

Similar npm Testing plugins

All 20 slicetest alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/slicetest. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.