All Projects → mitsuhiko → Insta

mitsuhiko / Insta

Licence: apache-2.0
A snapshot testing library for rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Insta

Vscode Graphql
VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
Stars: ✭ 435 (-29.73%)
Mutual labels:  vscode-extension
Shades Of Purple Vscode
🦄 Shades of Purple — A professional theme with hand-picked & bold shades of purple to go along with your VSCode. Reviewed by several designers and 75+ theme versions released to keep it updated. One of the top rated best VSCode themes on VS Code Marketplace. Download →
Stars: ✭ 486 (-21.49%)
Mutual labels:  vscode-extension
Evermonkey
Evernote Editing. Redefined. 关于 token 的问题请去 https://github.com/michalyao/evermonkey/issues/94 中查看!
Stars: ✭ 542 (-12.44%)
Mutual labels:  vscode-extension
Edamagit
Magit for VSCode
Stars: ✭ 440 (-28.92%)
Mutual labels:  vscode-extension
Vscode R
R Extension for Visual Studio Code (execution, snippet, lint, R documantation, R Markdown)
Stars: ✭ 445 (-28.11%)
Mutual labels:  vscode-extension
Vscode Rust
Rust for Visual Studio Code
Stars: ✭ 488 (-21.16%)
Mutual labels:  vscode-extension
Vscode Cpptools
Official repository for the Microsoft C/C++ extension for VS Code.
Stars: ✭ 4,436 (+616.64%)
Mutual labels:  vscode-extension
Vscode Wakatime
Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
Stars: ✭ 588 (-5.01%)
Mutual labels:  vscode-extension
Chat
Chat with your team while you collaborate over code using VS Live Share
Stars: ✭ 468 (-24.39%)
Mutual labels:  vscode-extension
Vscode Angular Snippets
Angular Snippets for VS Code
Stars: ✭ 530 (-14.38%)
Mutual labels:  vscode-extension
Marp Vscode
Marp for VS Code: Create slide deck written in Marp Markdown on VS Code
Stars: ✭ 442 (-28.59%)
Mutual labels:  vscode-extension
Vscode Markdownlint
Markdown linting and style checking for Visual Studio Code
Stars: ✭ 444 (-28.27%)
Mutual labels:  vscode-extension
Sts4
The next generation of tooling for Spring Boot, including support for Cloud Foundry manifest files, Concourse CI pipeline definitions, BOSH deployment manifests, and more... - Available for Eclipse, Visual Studio Code, and Theia
Stars: ✭ 490 (-20.84%)
Mutual labels:  vscode-extension
Vscode Es7 Javascript React Snippets
Extension for Javascript/React snippets with search supporting ES7 and babel features
Stars: ✭ 435 (-29.73%)
Mutual labels:  vscode-extension
Vscode Php Debug
PHP Debug Adapter for Visual Studio Code 🐞⛔
Stars: ✭ 569 (-8.08%)
Mutual labels:  vscode-extension
Better Comments
Stars: ✭ 420 (-32.15%)
Mutual labels:  vscode-extension
Vscode Live Sass Compiler
Compile Sass or Scss file to CSS at realtime with live browser reload feature.
Stars: ✭ 488 (-21.16%)
Mutual labels:  vscode-extension
Discord Vscode
🖋️ Update your discord status with a rich presence
Stars: ✭ 587 (-5.17%)
Mutual labels:  vscode-extension
Vscode Markdown Pdf
Markdown converter for Visual Studio Code
Stars: ✭ 571 (-7.75%)
Mutual labels:  vscode-extension
Language Tools
The Svelte Language Server, and official extensions which use it
Stars: ✭ 516 (-16.64%)
Mutual labels:  vscode-extension

insta: a snapshot testing library for Rust

Build Status Crates.io License Documentation VSCode Extension

Introduction

Snapshots tests (also sometimes called approval tests) are tests that assert values against a reference value (the snapshot). This is similar to how assert_eq! lets you compare a value against a reference value but unlike simple string assertions, snapshot tests let you test against complex values and come with comprehensive tools to review changes.

Snapshot tests are particularly useful if your reference values are very large or change often.

Example

#[test]
fn test_hello_world() {
    insta::assert_debug_snapshot!(vec![1, 2, 3]);
}

Curious? There is a screencast that shows the entire workflow: watch the insta introduction screencast. Or if you're not into videos, read the one minute introduction.

Insta also supports inline snapshots which are stored right in your source file instead of separate files. This is accomplished by the companion cargo-insta tool.

Editor Support

For looking at .snap files there is a vscode extension which can syntax highlight snapshot files, review snapshots and more. It can be installed from the marketplace: view on marketplace.

jump to definition

Diffing

Insta uses similar for all its diffing operations. You can use it independently of insta.

License and Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].