Skip to content

Commit 53365f1

Browse files
committed
Merge pull request #1 from dirkrombauts/master
Documentation for version 1.0
2 parents 8e3e5fd + 334bfb9 commit 53365f1

22 files changed

+656
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
_site/
22
.sass-cache/
3+
site/
85.6 KB
Loading
22.9 KB
Loading
96.9 KB
Loading

Images/TeamCityHowTo/test_reports.PNG

74.1 KB
Loading

docs/Arguments.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Arguments
2+
3+
Pickles provides several arguments for you to customize how it operates. Each arguments exact usage will depend on the runner that is being used (i.e. console, powershell, etc.). The links below provide descriptions of each parameter and how it is used in the different runners along with information on defaults and ranges of possible values.
4+
5+
* [Feature Directory](ArgumentsFeatureDirectory.md)
6+
* [Output Directory](ArgumentsOutputDirectory.md)
7+
* [Documentation Format](ArgumentsDocumentationFormat.md)
8+
* [System Under Test Name](ArgumentsSystemUnderTestName.md)
9+
* [System Under Test Version](ArgumentsSystemUnderTestVersion.md)
10+
* [Test Results Format](ArgumentsTestResultsFormat.md)
11+
* [Test Results File](ArgumentsTestResultsFile.md)

docs/ArgumentsDocumentationFormat.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Documentation Format
2+
3+
## Explanation
4+
5+
Allows the user to select what format the generated output will be written in. Currently, the available options are:
6+
7+
- HTML
8+
- Dhtml
9+
- Word (OpenXML)
10+
- JSON
11+
- Excel
12+
13+
**Note**: The value passed to this argument is case-insensitive. i.e. HTML = html= HtMl
14+
15+
## Default Value
16+
17+
html
18+
19+
## Possible Values
20+
21+
html, dhtml, excel, json, word
22+
23+
## Usage
24+
25+
### Console
26+
27+
Pickles.exe --documentation-format=Word
28+
29+
Pickles.exe -df=Word
30+
31+
### Powershell
32+
33+
Pickle-Features -DocumentationFormat Word
34+
35+
### MSBuild
36+
37+
<target Name="document">
38+
<pickles DocumentationFormat="Word" />
39+
</target>
40+

docs/ArgumentsFeatureDirectory.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Feature Directory
2+
3+
4+
## Explanation
5+
6+
Allows the user to tell Pickles the root directory where the feature files are located. All files underneath this root directory will be added to the output documentation.
7+
8+
## Default Value
9+
10+
None as yet.
11+
12+
## Possible Values
13+
14+
Any valid directory path, either absolute or relative.
15+
16+
## Usage
17+
18+
### Console
19+
20+
Pickles.exe --feature-directory=C:\MyProject\Features
21+
22+
Pickles.exe -f=C:\MyProject\Features
23+
24+
### Powershell
25+
26+
Pickle-Features -FeatureDirectory C:\MyProject\Features
27+
28+
### MSBuild
29+
30+
<Target Name="document">
31+
<Pickles FeatureDirectory="C:\MyProject\Features" />
32+
</Target>

docs/ArgumentsOutputDirectory.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Output Directory
2+
3+
## Explanation
4+
5+
The folder where Pickles will put the generated output.
6+
7+
## Default Value
8+
9+
The current folder.
10+
11+
## Possible Values
12+
13+
Any valid directory path, either absolute or relative.
14+
15+
## Usage
16+
17+
### Console
18+
19+
Pickles.exe --output-directory=C:\GeneratedDocs
20+
21+
Pickles.exe -o=C:\GeneratedDocs
22+
23+
### Powershell
24+
25+
Pickle-Features -OutputDirectory C:\GeneratedDocs
26+
27+
### MSBuild
28+
29+
<Target Name="document">
30+
<Pickles OutputDirectory="C:\GeneratedDocs" />
31+
</Target>
32+

docs/ArgumentsSystemUnderTestName.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# System Under Test Name
2+
3+
## Explanation
4+
5+
This is the name of the system under test. Since Pickles is designed to be used with any platform/language that supports Gherkin feature files we cannot rely on reading in an assembly or a jar file to retrieve metadata about the system under test. Instead, The user can use this argument to name the system under test.
6+
7+
## Default Value
8+
9+
None.
10+
11+
## Possible Values
12+
13+
Any valid string.
14+
15+
## Usage
16+
17+
### Console
18+
19+
Pickles.exe --system-under-test-name=MyProject
20+
21+
Pickles.exe -sn=MyProject
22+
23+
### Powershell
24+
25+
Pickle-Features -SystemUnderTestName MyProject
26+
27+
### MSBuild
28+
29+
<Target Name="document">
30+
<Pickles SystemUnderTestName="MyProject" />
31+
</Target>
32+
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# System Under Test Version
2+
3+
## Explanation
4+
5+
This is the version of the system under test. Since Pickles is designed to be used with any platform/language that supports Gherkin feature files we cannot rely on reading in an assembly or a jar file to retrieve metadata about the system under test. Instead, The user can use this argument to set a version number for the system under test.
6+
7+
This argument is typically used in conjunction with a build script on a continuous integration server.
8+
9+
## Default Value
10+
11+
None.
12+
13+
## Possible Values
14+
15+
Any valid string.
16+
17+
## Usage
18+
19+
### Console
20+
21+
Pickles.exe --system-under-test-version=2.0.1beta
22+
23+
Pickles.exe -sv=2.0.1beta
24+
25+
### Powershell
26+
27+
Pickle-Features -SystemUnderTestVersion 2.0.1beta
28+
29+
### MSBuild
30+
31+
<Target Name="document">
32+
<Pickles SystemUnderTestVersion="2.0.1beta" />
33+
</Target>
34+

docs/ArgumentsTestResultsFile.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Test Results File
2+
3+
## Explanation
4+
5+
Path to the XML results file
6+
7+
## Default Value
8+
9+
None.
10+
11+
## Possible Values
12+
13+
Any path to a valid results file in XML format.
14+
15+
## Usage
16+
17+
### Console
18+
19+
Pickles.exe --link-results-file=C:\MyProject\Reports\results.xml
20+
21+
Pickles.exe -lr=C:\MyProject\Reports\results.xml
22+
23+
### Powershell
24+
25+
Pickle-Features -TestResultsFile C:\MyProject\Reports\results.xml
26+
27+
### MSBuild
28+
29+
<Target Name="document">
30+
<Pickles ResultsFile="C:\MyProject\Reports\results.xml" />
31+
</Target>

docs/ArgumentsTestResultsFormat.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Test Results Format
2+
3+
## Explanation
4+
5+
The format used for the report coming out of the test run of the features. There are many different testing frameworks supported by SpecFlow, plus all of the other gherkin style frameworks out there. NUnit and xUnit output formats are accepted as well as output from MsTest and SpecRun.
6+
7+
Output from MsTest.exe is published in a .trx file. VsTest.Console.exe, the new command line runner as of Visual Studio 2012, is also able to produce .trx files, but those are not compatible with Pickles due to missing elements in the .trx file.
8+
9+
10+
11+
**NOTE**: Values are not case-sensitive: i.e. NUNIT = nunit = NUnit
12+
13+
## Default Value
14+
15+
nunit
16+
17+
## Possible Values
18+
19+
nunit, xunit, mstest, specrun
20+
21+
## Usage
22+
23+
### Console
24+
25+
Pickles.exe --test-results-format=xunit
26+
27+
Pickles.exe -trfmt=xunit
28+
29+
### Powershell
30+
31+
Pickle-Features -TestResultsFormat xunit
32+
33+
### MSBuild
34+
35+
<Target Name="document">
36+
<Pickles ResultsFormat="xunit" />
37+
</Target>

docs/ConsoleApplication.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Console Application
2+
3+
4+
The console application is very simple and takes two parameters: the feature directory and the output directory.
5+
6+
## Crawling for features
7+
8+
9+
Pickles --feature-directory=c:\dev\my-project\my-features --output-directory=c:\my-features-output
10+
11+
This command will recursively search the directory c:\dev\my-project\my-features for feature files and render them as HTML, following the same folder structure, to c:\my-features-output with each feature generating a corresponding .xhtml file.
12+
13+
## Viewing Available Options
14+
15+
16+
You can also call Pickles to see the available command-line parameters and their aliases like so
17+
18+
Pickles --help
19+
20+
Pickles -h
21+
22+
Pickles -?
23+
24+
## Viewing Version Information
25+
26+
You can view what version of Pickles the console application is by typing
27+
28+
Pickles --version
29+
30+
Pickles -v

docs/GettingStarted.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Getting Started
2+
3+
It's very easy to get started with Pickles.
4+
5+
- Pick an installation method
6+
- Pick the runner you want (Console, GUI, PowerShell or MSBuild)
7+
8+
## Installing via Chocolatey
9+
10+
- [Command Line](https://chocolatey.org/packages/pickles)
11+
- [GUI](https://chocolatey.org/packages/picklesui)
12+
13+
## Installing via NuGet
14+
15+
The following runners can be installed via NuGet:
16+
17+
- [PowerShell](http://www.nuget.org/packages/Pickles/)
18+
- [Command Line](http://www.nuget.org/packages/Pickles.CommandLine/)
19+
- [MSBuild](http://www.nuget.org/packages/Pickles.MSBuild/)
20+
21+
## Installing via Zip Package
22+
23+
Pre-built runners are available in a Zip package here: https://github.com/picklesdoc/pickles/releases
24+
25+
## Build From Source
26+
- Download a copy of the source code from the repository
27+
- [GitHub Repo](https://github.com/picklesdoc/pickles)
28+
- [Tarball](https://github.com/picklesdoc/pickles/tarball/master)
29+
- [Zip](https://github.com/picklesdoc/pickles/zipball/master)
30+
- Run the 'build-release'.cmd file to build and package the tools.
31+
- Pick the runner you want (Console, NAnt or MSBuild)

docs/HowToContribute.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# How To Contribute
2+
3+
If you like Pickles and want to contribute by all means fork the project and send me a pull request!
4+
5+
## Ideas
6+
7+
8+
- I'm no visual designer! What CSS layout is provided in the rendered HTML files is cobbled together from small CSS tutorials I could find on the interwebs. If there's a CSS designer out there willing to donate some time to help improve the theme of the rendered HTML files, or even create a set of themes that the user can choose from that would be greatly appreciated.
9+
10+
- Additional documentation builders would be great. I plan to add the .docx format as an output in the future and perhaps .pdf as well. If there are other formats you would like to see the features rendered in then by all means create one and send me a pull request or add an issue on the issues page.
11+
12+
- Tasks for other build tools would be a great addition.
13+
- Rake
14+
- Psake
15+
- Others?
16+
17+
- Mono support so that we can run on Linux and Mac systems.
18+
19+
- NuGet package
20+
- I guess this could use the MSBuild test runner to integrate Pickles into the build process as a post-build step that has some pre-defined parameters (output folder is bin\Debug\docs, features folder is .\Features, etc.)
21+
22+
- Chocolatey nuget package (to install the command-line executable)
23+
24+
- Nice installer package that installs the console app, MSBuild task, NAnt task and some example projects.

0 commit comments

Comments
 (0)