Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reports in Command Line FitNesse

How do I generate reports from Command Line FitNesse ?

And, what types of reports are possible? xml, txt, plain?

like image 788
Andersson Melo Avatar asked Nov 05 '22 14:11

Andersson Melo


2 Answers

Maybe this page didn't exist back in 2010, but there is a command line parameter to run a test and exit:

http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.CommandLineArguments

-c <command>: Run a Rest Command and then exit.

Where the "command" is a REST command just like you could pass to cUrl. This works in Windows or Linux and does not depend on cUrl. The list of REST commands can be found here.

I still cannot find a page that lists all available formats for test/suite output, but there is a page showing the XML Format. The other formats available are "text" (format=text) and HTML, which is the default.

like image 122
JPhi1618 Avatar answered Nov 15 '22 10:11

JPhi1618


Best bet is to use cURL or wget and call Fitnesse through its RESTful services.

http://www.fitnesse.org/FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.RestfulServices

XML is the most common format, although I think JSON is available for some actions.

like image 34
ryber Avatar answered Nov 15 '22 08:11

ryber