Skip to content

Commit a077d97

Browse files
committed
.
1 parent daad054 commit a077d97

26 files changed

+145
-275
lines changed

.claude/settings.local.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"WebFetch(domain:github.com)",
5+
"WebFetch(domain:raw.githubusercontent.com)",
6+
"WebFetch(domain:api.github.com)",
7+
"Bash(git restore:*)",
8+
"Bash(dotnet build:*)"
9+
]
10+
}
11+
}

readme.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
[![Build status](https://ci.appveyor.com/api/projects/status/q1eqcnbptyjl24hp?svg=true)](https://ci.appveyor.com/project/SimonCropp/verify-openxml)
55
[![NuGet Status](https://img.shields.io/nuget/v/Verify.OpenXML.svg)](https://www.nuget.org/packages/Verify.OpenXML/)
66

7-
Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of Excel documents via [OpenXML](https://github.com/dotnet/Open-XML-SDK/).<!-- singleLineInclude: intro. path: /docs/intro.include.md -->
7+
Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of Excel documents via [OpenXML SDK](https://github.com/dotnet/Open-XML-SDK/).<!-- singleLineInclude: intro. path: /docs/intro.include.md -->
88

9-
Converts Excel documents (xlsx) to csv for verification.
9+
Converts Excel documents (xlsx) to CSV for verification.
10+
11+
## Features
12+
13+
* Converts workbooks to CSV format for each worksheet
14+
* Extracts formulas and displays them alongside cell values
15+
* Captures document metadata (title, subject, creator, keywords, category, etc.)
16+
* Supports date scrubbing and GUID scrubbing for deterministic tests
17+
* Generates deterministic XLSX output using DeterministicIoPackaging
1018

1119
**See [Milestones](../../milestones?state=closed) for release notes.**
1220

@@ -70,7 +78,7 @@ public Task VerifyExcelStream()
7078
return Verify(stream, "xlsx");
7179
}
7280
```
73-
<sup><a href='/src/Tests/Samples.cs#L28-L37' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyExcelStream' title='Start of snippet'>anchor</a></sup>
81+
<sup><a href='/src/Tests/Samples.cs#L33-L42' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyExcelStream' title='Start of snippet'>anchor</a></sup>
7482
<!-- endSnippet -->
7583

7684

@@ -87,7 +95,7 @@ public Task VerifySpreadsheetDocument()
8795
return Verify(reader);
8896
}
8997
```
90-
<sup><a href='/src/Tests/Samples.cs#L16-L26' title='Snippet source file'>snippet source</a> | <a href='#snippet-SpreadsheetDocument' title='Start of snippet'>anchor</a></sup>
98+
<sup><a href='/src/Tests/Samples.cs#L21-L31' title='Snippet source file'>snippet source</a> | <a href='#snippet-SpreadsheetDocument' title='Start of snippet'>anchor</a></sup>
9199
<!-- endSnippet -->
92100

93101

src/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
55
</PropertyGroup>
66
<ItemGroup>
7+
<PackageVersion Include="DeterministicIoPackaging" Version="0.13.0" />
78
<PackageVersion Include="DocumentFormat.OpenXml" Version="3.3.0" />
89
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="28.0.0-beta.2" />
910
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />

src/Tests/Samples.VerifySpreadsheetDocument.verified.csv renamed to src/Tests/Samples.DontScrub.verified.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0,First Name,Last Name,Gender,Country,Date,Age,Id,Formula
2-
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594
2+
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594 (G2+H2)
33
2,Mara,Hashimoto,Female,Great Britain,2016-08-16,25,1582,1607
44
3,Philip,Gent,Male,France,2015-05-21,36,2587,2623
55
4,Kathleen,Hanner,Female,United States,2017-10-15,25,3549,3574
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
SheetNames: [
3+
Sheet1
4+
],
5+
WorksheetCount: 1,
6+
Title: The Title
7+
}
8.65 KB
Binary file not shown.

src/Tests/Samples.MultipleSheets#Sheet1.verified.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0,First Name,Last Name,Gender,Country,Date,Age,Id,Formula
2-
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594
2+
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594 (G2+H2)
33
2,Mara,Hashimoto,Female,Great Britain,2016-08-16,25,1582,1607
44
3,Philip,Gent,Male,France,2015-05-21,36,2587,2623
55
4,Kathleen,Hanner,Female,United States,2017-10-15,25,3549,3574

src/Tests/Samples.MultipleSheets.verified.txt

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,6 @@
33
Sheet1,
44
Sheet2
55
],
6-
CellFormats: [
7-
{
8-
FontId: 0,
9-
FillId: 0,
10-
BorderId: 0,
11-
NumberFormatId: 0: General,
12-
FormatId: 0
13-
},
14-
{
15-
FontId: 1,
16-
FillId: 0,
17-
BorderId: 0,
18-
NumberFormatId: 0: General,
19-
FormatId: 0,
20-
ApplyFont: 1
21-
},
22-
{
23-
FontId: 2,
24-
FillId: 0,
25-
BorderId: 0,
26-
NumberFormatId: 0: General,
27-
FormatId: 0,
28-
ApplyFont: 1
29-
},
30-
{
31-
FontId: 2,
32-
FillId: 0,
33-
BorderId: 0,
34-
NumberFormatId: 14: m/d/yyyy,
35-
FormatId: 0,
36-
ApplyNumberFormat: 1,
37-
ApplyFont: 1
38-
},
39-
{
40-
FontId: 0,
41-
FillId: 0,
42-
BorderId: 0,
43-
NumberFormatId: 14: m/d/yyyy,
44-
FormatId: 0,
45-
ApplyNumberFormat: 1
46-
},
47-
{
48-
FontId: 3,
49-
FillId: 0,
50-
BorderId: 0,
51-
NumberFormatId: 0: General,
52-
FormatId: 0,
53-
ApplyFont: 1
54-
}
55-
]
6+
WorksheetCount: 2,
7+
Title: The Title
568
}
9.43 KB
Binary file not shown.

src/Tests/Samples.VerifyExcel.verified.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0,First Name,Last Name,Gender,Country,Date,Age,Id,Formula
2-
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594
2+
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594 (G2+H2)
33
2,Mara,Hashimoto,Female,Great Britain,2016-08-16,25,1582,1607
44
3,Philip,Gent,Male,France,2015-05-21,36,2587,2623
55
4,Kathleen,Hanner,Female,United States,2017-10-15,25,3549,3574

0 commit comments

Comments
 (0)