Skip to content

Tags: rust-analyzer/expect-test

Tags

v1.5.1

Toggle v1.5.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #53 from xxchan/xxchan/interim-tarantula

doc: update the recommended placeholder

v1.5.0

Toggle v1.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #46 from rust-analyzer/ssr/1.5.0

Release version 1.5.0

v1.4.1

Toggle v1.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #36 from knrafto/fg-colors

v1.4.0

Toggle v1.4.0's commit message
⬆️ 1.4.0 (with changelog entry)

v1.3.0

Toggle v1.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #31 from Veetaha/master

Add data getter to `Expect`

v1.2.2

Toggle v1.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge #25

25: make it a bit more production ready r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>

v1.2.1

Toggle v1.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge #17

17: Respect user provided absolute path r=matklad a=mvtec-bergdolll

When the environment variable CARGO_MANIFEST_DIR is not present as is the default when opening a workspace project in vs code and running the tests. `expect-test` panics.

The problem can be reproduced with this minimal project https://github.com/mvtec-bergdolll/expect-test-repro-proj/tree/main. Open it in vs code and run the integration tests. They panic. However running them from the shell does not panic. That's unfortunate.

As user trying to debug this I was confused why it failed even when providing an absolute path.

This change includes:
- Do not query CARGO_MANIFEST_DIR if the user already provided an absolute path when calculating an absolute path
- Better error message when CARGO_MANIFEST_DIR is not present

I'm not sure how to easily test this so I've not added automated testing.

Co-authored-by: Lukas Bergdoll <lukas.bergdoll@mvtec.com>

v1.2.0-pre.1

Toggle v1.2.0-pre.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge #16

16: allow disabling automatic indentation on update r=matklad a=matklad

closes #10 

bors r+

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>

v1.1.0

Toggle v1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge #11

11: Use dissimilar for diffs instead of difference r=Jesse-Bakker a=Jesse-Bakker

As discussed with @matklad in rust-lang/rust-analyzer#7106.

Before:
![expect-test-screen-difference](https://user-images.githubusercontent.com/22473248/103417757-4d573e80-4b8c-11eb-8f5e-3f0597743279.png)

After:
![expect-test-screen](https://user-images.githubusercontent.com/22473248/103417761-4defd500-4b8c-11eb-9497-33d65ae60e07.png)

Used background instead of foreground colours because I think the diff boundaries are clearer, but I'm not married to that change ;)

Co-authored-by: Jesse Bakker <github@jessebakker.com>

v1.0.2

Toggle v1.0.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge #9

9: Fix diff direction r=matklad a=lnicola

![image](https://user-images.githubusercontent.com/308347/101189336-91bfef00-365f-11eb-95d2-9a4e624a9013.png)


Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>