Skip to content →

Generate unit tests with AI using Linear issues as context

Overview

Tusk's Linear integration allows the test generation agent to retrieve information about expected behavior and business context from Linear issues to generate more relevant and accurate unit tests for your pull requests (PRs) or merge requests (MRs).

How it works

Configure Tusk's Linear integration
Set up the Tusk integration in under a minute by selecting which Linear workspace to connect to Tusk. Once connected, all Tusk users creating PR/MRs will enjoy the benefits of the integration.

Link your Linear issues to PR/MRs
Create a PR/MR with the Linear issue identifier (e.g., ENG-456) in the PR/MR title or associated branch name. Tusk will automatically retrieve the information from the Linear issue's title and description to use as business context.

Generate relevant unit tests
Tusk intelligently uses the information from the linked Linear issue to determine the best path and edge cases that are relevant to test in the PR/MR. Tusk then generates and self-executes unit tests for the test cases that are relevant to the issue context.

Configure

After logging into Tusk, go to Settings > Integrations. Under "Project management platform", click "Connect" on the Linear integration. You will be prompted to grant Tusk access to your Linear workspace. Click "Authorize Tusk".

Once enabled, create a pull/merge request with the Linear issue identifier in the title or branch name. Tusk will automatically retrieve the information from the Linear issue to use as context for generating unit tests.

Start building

Build your own integration

Create your own integration with Linear’s API and submit it to the directory.