Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

livefire

Nick Hodge edited this page May 25, 2013 · 2 revisions

LiveFire Tests

[https://github.com/nickhodge/BoxKite.Twitter/tree/master/src/BoxKite.LiveFireTests](The Source project)

The documentation of the Twitter API is pretty good; but nothing beats a live test. Some people call these sorts of tests as "Harness" tests, or "Bedstead" tests.

The idea is to have a series of tests that work with the Twitter API directly, and ensure my code works.

I've decided to call them "Live Fire" tests. As these tests may be destructive (sending tweets, changing favourites, adding/deleting people from Lists) Live Fire seems appropriate.

Entry Point

Explaining the file: TwitterLiveFireAppControl.cs

To activation a series of tests, you put the test series number you wish to run into the init of the array. Then within each test group, put the numbers of the tests you would like to run

Some tests require a previous test to work successfully. Some tests post/delete items. This is a live fire test!

var testSeriesToRun = new List<int> {1};

And within each Test series, you can activate an individual test within.

var ualft = new UserAccountLiveFireTests();
var testResult1 = ualft.DoUserAccountTest(session, new List<int> {7, 8, 9}).Result;

So, in the above two examples, when you F5 run this project, the series 1 is run; and within this series, individual tests 7, 8 and 9 are run.

Clone this wiki locally