fitSharp
Abandon Suite
We can throw an exception AbandonTestSuiteException anywhere in fixture or Domain Adapter code to stop execution of the entire test suite. The exception can be constructed with a custom message which will appear in the test result.
 throw new AbandonTestSuiteException();
 throw new AbandonTestSuiteException("my message");
Folder Runner stops reading input files when the suite is abandoned.

The following sets up two tests. The first one throws AbandonTestSuiteException so the second is not run.
test@

make new folder
withnewfile system
make empty foldertest
test
make new folder
withnewfile system
make empty foldertest\input
test\input

with new file
withnewfile system
returnmake empty filetest\input\abandon.txt
test\input\abandon.txt
write line test@ sampledomainadapter
write line throwabandonsuite

with new file
withnewfile system
returnmake empty filetest\input\another.txt
test\input\another.txt
write line test@ garbage

with execute folder runner
withnew file
withnewfile system
returnmake empty filetest\input\suiteconfig.xml
test\input\suiteconfig.xml
write line<suiteConfig>
write line<Settings>
write line<runner>fit.Runner.FolderRunner</runner>
write line<inputFolder>test\input</inputFolder>
write line<outputFolder>test\output</outputFolder>
write line</Settings>
write line<applicationUnderTest>
write line<addNamespace>fit.Test.Double</addNamespace>
write line</applicationUnderTest>
write line</suiteConfig>

make new folder
withnewfile system
make empty foldertest\output
test\output

withnewfolder runner story
run-c,test\input\suiteconfig.xml
returncurrent
check results 0 right, 0 wrong, 0 ignored, 1 exceptions

@test

FitServer throws an exception when the suite is abandoned to make FitNesse stop sending tests.

The following runs a suite with two tests. The first one throws AbandonTestSuiteException so the second is not run.
test@

configure processor add operator compareregex

fitSharp.Test.Acceptance.FitNesseStory
run AbandonSuite
check standard output /.*1 Tests, 1 Failures.*/ FitNesse (v20111026) Started... port: 9123 root page: fitnesse.wiki.FileSystemPage at .\document/FitnesseRoot logger: none authenticator: fitnesse.authentication.PromiscuousAuthenticator html page factory: fitnesse.html.HtmlPageFactory page version expiration set to 14 days. Executing command: AbandonSuite?suite&format=text -----Command Output----- Starting Test System: fit using build\sandbox\Runner.exe. X 15:24:30 R:0 W:0 I:0 E:1 AbandonTest (AbandonSuite.AbandonTest) 0.004 seconds -------- 1 Tests, 1 Failures 0.000 seconds. -------- 1 Tests, 1 Failures 0.460 seconds. 0 Exit-Code: 1 -----Command Complete-----

@test
© Copyright Syterra Software Inc. All rights reserved.