continuous-testing 0.0.4

A continue testing library
Documentation

build status

Requirements

It's require Vagrant and Virtualbox installed on your system.

Install

cargo install continuous-testing

Again program arguments

  1. The directory to store the Vagrantfile
  2. The vagrant box to use
  3. The memory size to use
  4. The cpus to use
  5. All commands with && to run in the virtual machine

ps the order are important in this time

Example

Run all tests for my project from an archlinux virtual machine.

Usage

again "Again" "generic/arch" "4096" "4" "pacman -Syyu git rust base base-devel htop --noconfirm && git clone https://github.com/taishingi/zuu zuu && cd zuu && cargo build && cargo test"

All files will be removed

Using library

use continuous::testing::Encore;

fn main()-> Result<String, String>
{
    let mut vm = Encore::new();
    let directory = "Again";
    let os = "generic/arch";
    let memory = "4096";
    let cpus = "4";
    let command = "pacman -Syyu && pacman -S git rust base base-devel --noconfirm && git clone https://github.com/taishingi/zuu && cd zuu && cargo build && cargo tests"

    vm.set_directory(directory);

    vm.set_os(os);

    vm.set_memory(memory);

    vm.set_cpus(cpus);

    vm.set_command(command);

    vm.run()
}

Using Bash

sudo curl -fsSL https://raw.githubusercontent.com/taishingi/zuu/master/continuous-testing/encore -o /usr/bin/encore

Usage

encore

Output

a