Show HN: Tusk Drift – open-source tool for automating API tests

2 hours ago 1

Tusk Drift Banner

npm version  Apache 2.0 GitHub last commit Tusk X account Tusk Community Slack

The Node.js Tusk Drift SDK enables fast and deterministic API testing by capturing and replaying API calls made to/from your service. Automatically record real-world API calls, then replay them as tests using the Tusk CLI to find regressions. During replay, all outbound requests are intercepted with recorded data to ensure consistent behavior without side-effects.

For comprehensive guides and API reference, visit our full documentation.

Tusk Drift currently supports the following packages and versions:

If you're using packages or versions not listed above, please create an issue with the package + version you'd like an instrumentation for.

First, install and configure the Tusk Drift CLI by following our CLI installation guide. The CLI helps set up your Tusk configuration file and replays tests.

The wizard will eventually direct you back here when it's time to set up the SDK.

After completing the CLI wizard, install the SDK:

npm install @use-tusk/drift-node-sdk

Step 3: Initialize the SDK for your service

Refer to our initialization guide to set up the SDK for your service.

Step 4: Run Your First Test

Follow along our quick start guide to record and replay your first test!

Having issues?

Join our open source community on Slack.

We appreciate feedback and contributions. See CONTRIBUTING.md.

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Read Entire Article