Learn Choke Testing


Learning choke testing is the first step to becoming a true professional. This page will guide you through the basics of using the Choke Testing SDK, and give pointers on how to apply it in your own work.

Installing the Choke Testing SDK

Setting up the Choke Testing SDK can be accomplished by following these steps:

  • Download the Choke Testing SDK from Microsoft Github.
  • In the command prompt, navigate into the folder you put the SDK in.
  • Run setup.bat
  • Run the command mvn clean verify

To verify that the SDK is working properly, type choke in the command prompt. You should see an output similar to this:

The ChokeTesting SDK is the cornerstone of integrated agile 2.0 testing. This is a
basic help message containing pointers to more information.

    choke -h/--help
    choke -v/--version
    choke command [arguments...] [options...]

    choke test .
    choke list --local
    choke auto-fix
    choke schedule 8pm

  Further help:
    choke help commands            	list all 'choke' commands
    choke help examples            	show some examples of usage
    choke help test           		show how to run choke tests
    choke help            	show help on COMMAND
                                   	(e.g. 'choke help auto-fix')
  Further information:

Hello World

Creating a basic choke test is very easy. Given a class like this:

class MyClass {
	public static void main(string[] args) {


You can annotate methods you want to test by annotating them like this:

public static void main(string[] args) {


The method will get picked up the next time you run the SDK. Run the choke test command now. You should see output similar to the following:

C:\projects\myProject>choke test
ChokeTesting SDK version 0.9.23

Running choke tests...
#1 - MyClass.main(string[] args) - Passed

1 method(s) choked, 0 warnings, 0 errors