Git Product home page Git Product logo

tctest's Introduction

tctest

Build Status Go Report Card

A command-line utility to trigger builds in teamcity to run provider acceptance tests. Given a PR# it can find the files modified, tests to run and generate a TEST_PATTERN.

Example: pr-example

basic help: help

Installation

To install tctest from the command line, you can run:

go install github.com/katbyte/tctest/cmd/tctest

Configuration

While all commands can be configured from the command line, environment variables can be used instead. By creating a file such as set_env_example.sh, it can then be sourced: env

Basic Usage

To run a build on a branch with a test pattern:

tctest branch master TestAcc -s ci.katbyte.me -b AzureRm -u katbyte

or when environment variables are set:

tctest branch master TestAcc

For a PR

To run a build on the merge branch with a specific test pattern:

tctest pr 3232 TestAcc -s ci.katbyte.me -b AzureRm -u katbyte -r terraform-providers/terraform-provider-azurerm

If no test pattern is specified the modified files in the PR will be checked and it will be generated automatically:

tctest pr 3232

To list all the tests discovered for a given PR:

tctest list 3232

To run tests against a PR and display results when complete:

tctest pr 3232 --wait

Build results:

By TeamCity Build Number

To show the PASS/FAIL/SKIP results for a TeamCity build number:

tctest results 12345

To wait for a running or queued build to complete and then show the results:

tctest results 12345 --wait

By Github PR Number

To show the PASS/FAIL/SKIP results for all TeamCity builds for a Github PR:

tctest results pr 12345

To show the PASS/FAIL/SKIP results for the latest TeamCity build for a Github PR:

tctest results pr 12345 --latest

To wait for a running or queued build to complete and then show the results:

tctest results pr 12345 --wait

tctest's People

Contributors

angie44 avatar bflad avatar breathingdust avatar gdavison avatar katbyte avatar ryndaniels avatar stephybun avatar tombuildsstuff avatar tracypholmes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.