Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.3.0
Choose a base ref
...
head repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.4.0
Choose a head ref
  • 11 commits
  • 21 files changed
  • 3 contributors

Commits on Nov 22, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b16f4b0 View commit details
  2. Copy the full SHA
    8ed7bd6 View commit details
  3. Copy the full SHA
    a44ce73 View commit details
  4. Copy the full SHA
    898a622 View commit details
  5. Added badges

    mitsuhiko committed Nov 22, 2020
    Copy the full SHA
    279fb23 View commit details
  6. Copy the full SHA
    2dc6e49 View commit details

Commits on Dec 7, 2020

  1. Fix README example (#145)

    Swatinem authored Dec 7, 2020
    Copy the full SHA
    a169847 View commit details

Commits on Dec 17, 2020

  1. Copy the full SHA
    2da01a2 View commit details

Commits on Dec 30, 2020

  1. Copy the full SHA
    68b49df View commit details
  2. Copy the full SHA
    ffab220 View commit details
  3. 1.4.0

    mitsuhiko committed Dec 30, 2020
    Copy the full SHA
    7a5e41e View commit details
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug Report
about: Something does not seem right
---

## Description

[What happened]

## Reproduction steps

1. [First step]
2. [Second step]
3. etc.

Additional helpful information:

- Version of insta:
- Version of rustc:
- Operating system and version:

## What did you expect

[What you think should have happened]


4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Suggestion
about: Want to report a suggestion for a feature?
---
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -2,5 +2,6 @@
"editor.formatOnSave": true,
"rust.clippy_preference": "on",
"rust.cfg_test": true,
"rust.all_features": true
"rust.all_features": true,
"rust-analyzer.cargo.allFeatures": true
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.4.0

* Add `--delete-unreferenced-snapshots` parameter to `cargo-insta`.
* Switch to the `globset` crate for the `glob` feature.
* When `INSTA_UPDATE` is set to `always` or `unseen` it won't
fail on execution.
* Changed informational outputs also show on pass.

## 1.3.0

* Expose more useful methods from `Content`.
40 changes: 40 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Contributing to Insta

Thanks for your interest in contributing to Insta! Insta welcomes contribution
from everyone in the form of suggestions, bug reports, pull requests, and feedback.
This document gives some guidance if you are thinking of helping out.

## Submitting Bug Reports and Feature Requests

When reporting a bug or asking for help, please include enough details so that
others helping you can reproduce the behavior you are seeing.

Opening an issue is as easy. Just [follow this link](https://github.com/mitsuhiko/insta/issues/new/choose) and fill out the fields in the appropriate provided template.

When making a feature request, please make it clear what problem you intend to
solve with the feature and maybe provide some ideas for how to go about that.

## Running the Tests

When you want to contribute directly please make sure to run the tests and
format the code before making a pull request. Tests are also run in CI but
it's typically easier to run them locally.

To run all tests a makefile is provided

```sh
make test
```

If you want to format the code you can quickly run this command:

```sh
make format
```

## Conduct

This issue tracker follows the [Rust Code of Conduct]. For escalation or moderation
issues please contact Armin (armin.ronacher@active-4.com) instead of the Rust moderation team.

[rust code of conduct]: https://www.rust-lang.org/policies/code-of-conduct
22 changes: 12 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "insta"
version = "1.3.0"
version = "1.4.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A snapshot testing library for Rust"
@@ -24,7 +24,7 @@ default = ["colors"]
redactions = ["pest", "pest_derive"]

# Glob support
glob = ["globwalk"]
glob = ["walkdir", "globset"]

# Color support
colors = ["console"]
@@ -33,16 +33,18 @@ colors = ["console"]
serialization = []

[dependencies]
csv = { version = "1.1.3", optional = true }
csv = { version = "1.1.4", optional = true }
difference = "2.0.0"
serde = { version = "1.0.85", features = ["derive"] }
serde = { version = "1.0.117", features = ["derive"] }
serde_yaml = "0.8.14"
console = { version = "0.12.0", optional = true, default-features = false }
serde_json = "1.0.36"
console = { version = "0.14.0", optional = true, default-features = false }
serde_json = "1.0.59"
lazy_static = "1.4.0"
pest = { version = "2.1.0", optional = true }
pest = { version = "2.1.3", optional = true }
pest_derive = { version = "2.1.0", optional = true }
ron = { version = "0.6.2", optional = true }
backtrace = { version = "0.3.42", optional = true }
globwalk = { version = "0.8.0", optional = true }
toml = { version = "0.5.6", optional = true }
backtrace = { version = "0.3.55", optional = true }
toml = { version = "0.5.7", optional = true }
globset = { version = "0.4.6", optional = true }
walkdir = { version = "2.3.1", optional = true }
uuid = "0.8.1"
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -33,8 +33,4 @@ lint:
@rustup component add clippy 2> /dev/null
@cargo clippy

update-readme:
@cargo readme | perl -pe 's/\[`(.*?)`]/`$$1`/g' | perl -pe 's/\[(.*?)\](?![(])/$$1/g' > README.md
@cd cargo-insta; cargo readme > README.md

.PHONY: all doc test cargotest format format-check lint update-readme
Loading