istestia

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

README

Istia

This tool allows you to run a test that has been pulled from a PR description.

Imagine this, you are a user of an open source project and you find a problem. You manage to reproduce the problem in to a neat test case that exposes the bug. Wouldn't it be nice if, as a maintainer, you would be able to pull this new test case directly from the PR.

Examples:

$ export GO111MODULE=on
$ cd ~/project-dir
$ istestia test --file 'passes_test.go'
$ istestia test --file 'fails_test.go'
tests failed
$ cat passes_test.go | istestia test
$ cat fails_test.go | istestia test
tests failed
$ istestia test 'package project

import "testing"

func TestPass(t *testing.T) {
}
'
$ istestia test 'package project

import "testing"

func TestFail(t *testing.T) {
    t.Fail()
}
'
tests failed
$ cd ~/another-project
$ cat ~/project-dir/passes_test.go | istestia test
build failed

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exported = true

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL