Repository

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!')
}

About

VUT is a lightweight and versatile framework designed for rule validation and unit testing in Vlang. Simplify the process of ensuring code correctness, validating data, and conducting unit tests with this intuitive and efficient tool.

0
4
last Dec 26

Author

siguici