Packages
mneme
0.0.3
0.10.2
0.10.1
0.10.0
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.9.0-alpha.1
0.9.0-alpha.0
0.8.2
0.8.1
0.8.0
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.3.0-rc.1
0.3.0-rc.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Snapshot testing tool using familiar assertions
Current section
Files
Jump to
Current section
Files
README.md
# Mneme /ni:mi:/
Mneme helps you write tests.
Inspired by [Jane Street's expect-test](https://github.com/janestreet/ppx_expect), which you can [read about here](https://blog.janestreet.com/the-joy-of-expect-tests/).
Prior art: [assert_value](https://github.com/assert-value/assert_value_elixir)
## Installation
**MNEME IS NOT READY FOR GENERAL USE!**
If you're finding it published on Hex, it's only so that I can be my own guinea pig and use it while working on other libraries.
If available in Hex, the package can be installed by adding `mneme` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:mneme, ">= 0.0.0"}
]
end
```
## VSCode Integration
For happier times in VSCode, set up ElixirLS, copy the `.vscode/tasks.json` from this repository to your workspace, and then add the following keybindings:
```json
[
{
"key": "ctrl+; a",
"command": "workbench.action.tasks.runTask",
"args": "mix: Run tests"
},
{
"key": "ctrl+; f",
"command": "workbench.action.tasks.runTask",
"args": "mix: Run tests in current file"
},
{
"key": "ctrl+; c",
"command": "workbench.action.tasks.runTask",
"args": "mix: Run test at cursor"
},
]
```