Vest
A unit testing framework inspired by Jest (JavaScript) and Pest (PHP).
Installation
- Install Vest using VPM (recommanded):
v install siguici.vest
- Install Vest using Git:
mkdir ${V_MODULES:-$HOME/.vmodules}/siguici
git clone --depth=1 https://github.com/siguici/vest ${V_MODULES:-$HOME/.vmodules}/siguici/vest
- Use Vest as a project dependency:
Module {
//...
dependencies: [
'siguici.vest'
//...
]
}
Usage
import vest { expect }
fn hello(who string) string {
return 'Hello ${who}!'
}
fn test_hello() {
expect(hello('Vest')).equal('Hello Vest!')
}