You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first command you can run e.g. on a server where PScribo and Format-Pester is not installed. The tests results will be stored in a file as xml representation of object.
80
+
81
+
After copy the file to the computer where PScribo and Format-Pester are available you can generate report. The html file will be generated with results of failed tests only.
82
+
74
83
.LINK
75
84
https://github.com/equelin/Format-Pester
85
+
86
+
.LINK
87
+
https://github.com/iainbrighton/PScribo
76
88
77
89
.NOTES
78
90
Initial author: Erwan Quelin
@@ -84,10 +96,7 @@ Function Format-Pester {
84
96
LICENSE
85
97
Licensed under the MIT License - https://github.com/equelin/Format-Pester/blob/master/LICENSE
86
98
87
-
TODO
88
-
- Pester test need to be updated - yes, post factum TDD ;-)
Copy file name to clipboardExpand all lines: README.md
+30-60Lines changed: 30 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,13 @@ Powershell module for documenting Pester's results.
5
5
6
6
All the formating work is done by the module [PScribo](https://github.com/iainbrighton/PScribo).
7
7
8
-
## Example
8
+
Reports are generated base on a custom PowerShell object returned by Invoke-Pester run with the parameter `PassThru`. NUnit style files generated by Pester are not supported at that moment by Format-Pester.
9
+
10
+
If you can't generate report on a computer where tests are executed please save tests results piping them to `Export-Clixml`.
11
+
12
+
You can be interested also in the [ReportUnit](http://reportunit.relevantcodes.com/) tool what is a report generator for the test-runner family. It uses stock reports from NUnit, MsTest, xUnit, TestNG and Gallio and converts them HTML reports with dashboards.
13
+
14
+
## Report example
9
15
10
16

11
17
@@ -14,96 +20,60 @@ Screenshot from HTML report generated by Format-Pester v. 1.3.0, PScribo v. 0.7.
14
20
More examples you can find [here](/examples/).
15
21
16
22
## Supported languages
17
-
Since version 1.3.0 internationalization of generated reports is supported.
23
+
Since version 1.3.0 internationalization of generated reports is supported. Internalization means that report parts e.g. section names, columns headers, etc. can be wrote in a language different than English.
18
24
19
25
Currently available languages
20
26
- en-US - English United Staes - main language
21
27
- pl-PL - Polish
22
28
23
-
If would you like add support for your language please read the section 'Information for translators'
29
+
If would you like add support for your language please read the section [Information for translators](https://github.com/equelin/Format-Pester/wiki/Information-for-translators) in the project wiki.
24
30
25
31
# Requirements
26
32
27
33
- Powershell v.4.x
28
34
-[Pester](https://github.com/pester/Pester)
29
35
-[PScribo](https://github.com/iainbrighton/PScribo) - preferred the version >= 0.7.12.47 due to [bug](https://github.com/iainbrighton/PScribo/issues/20)
30
36
31
-
# Instructions
32
-
## Install the module
33
-
```powershell
34
-
# One time setup with Powershell 5
35
-
Install-Module Format-Pester
36
-
37
-
# Or Manually
38
-
# Download the repository
39
-
# Unblock the zip
40
-
# Extract the Format-Pester folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)
Format-Pester is the PowerShell module so before usage it you need import it - more instruction you can find in [wiki](https://github.com/equelin/Format-Pester/wiki/Importing-Format-Pester).
You can read [online version of help](/doc/Format-Pester.md) - online help generated by [platyPS module](https://github.com/powershell/platyps)
53
45
54
-
# Usage
46
+
This command will document the results of the Pester's tests. Documents will be store in the current path and they will be available in 3 formats (.html,.docx and .txt).
The first command you can run e.g. on a server where PScribo and Format-Pester is not installed. The tests results will be stored in a file as xml representation of object.
56
+
57
+
After copy the file to the computer where PScribo and Format-Pester are available you can generate report. The html file will be generated with results of failed tests only.
59
58
60
-
This command will document the results of the Pester's tests. Documents will be store in the current path and they will be available in 3 formats (.html,.docx and .txt).
59
+
## Online help
60
+
You can read [online version of help](/doc/Format-Pester.md) - online help generated by [platyPS module](https://github.com/powershell/platyps).
- Wojciech Sciesinski - [GitHub](https://github.com/it-praktyk) - [Twitter](https://twitter.com/ITpraktyk)
70
70
71
-
# Author
72
-
73
-
**Erwan Quélin**
74
-
-<https://github.com/equelin>
75
-
-<https://twitter.com/erwanquelin>
76
-
77
-
# Information for translators
78
-
Format-Pester can be used to prepare reports in languages different than English but a language file for your PSCulture/language need to be available.
79
-
80
-
To translate required strings to your language please
81
-
- read general information about PowerShell support for internationalization
82
-
```
83
-
Get-Help about_Script_Internationalization
84
-
```
85
-
online version about_Script_Internationalization available [here](https://technet.microsoft.com/en-us/library/hh847854.aspx).
86
-
- create subfolder with your language/culture code under Public - e.g. xx-XX
87
-
- copy the file [Format-Pester.psd1](/Public/en-US/Format-Pester.psd1) from Public\en-US\ to your xx-XX - please don't translate module manifest - files have the same name!
88
-
- translate required strings
89
-
- test - please use Pester, to skip non-translation related tests please use the command
90
-
```
91
-
Invoke-Pester -Path .\tests\ -Tag Translations
92
-
```
93
-
you can also uncomment line in the Format-Pester.ps1 file (remember about re-import module with Force)
94
-
```
95
-
#$LocalizedStrings
96
-
```
97
-
- use the Language parameter if your PSCulture is different than required language for output
98
-
- submit your translation to public repo, pull requests are welcomed
99
71
100
72
# [Version history](VERSIONS.md)
101
73
74
+
# [TODO and development plans](TODO.md)
75
+
102
76
# License
103
77
Copyright 2016 Erwan Quelin and the community.
104
-
Licensed under the MIT License
78
+
Licensed under [the MIT License](LICENSE)
105
79
106
-
# TODO
107
-
- updated examples - align them to v. 1.4.0 and PScribo 0.7.12.47
0 commit comments