Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for csv provider #113

Merged
merged 2 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion etc/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ pipeline {
publishReport name: "Second JSON Report", displayType: "dual", provider: json(pattern: "etc/report-2.json")
publishReport name: "XML Report", displayType: "dual", provider: xml(pattern: "etc/*.xml")
publishReport name: "YAML Report", displayType: "dual", provider: yaml(pattern: "etc/*.yaml")
publishReport name: "CSV Report", displayType: "dual", provider: csv(id: "csv-one", pattern: "etc/*.csv")
publishReport name: "CSV Report Test", displayType: "dual", provider: csv(id: "csv-one", pattern: "etc/report.csv")
publishReport name: "CSV Report Test Robustness", displayType: "dual", provider: csv(id: "csv-one", pattern: "etc/report_robust.csv")
}
}
}
Expand Down
23 changes: 23 additions & 0 deletions etc/report_robust.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

Level1,Level2,Level3,incorrect,manually,accurate

Aktie,Aktie 1,Aktie 1 1, 0x13 ,3.5 ,59
Aktie,Aktie 1,Aktie 1 2,31,48,9
Aktie,Aktie 1,Aktie 1 3,34,8,51
Derivat,Derivat 1,,1,2,3
Derivat,Derivat 2,,5,9,1
Not Found,,,1,3,9
Not Found2,,,1,3,9,11,5,8,8,8,,,,
,,,,,,,,

,Aktie 1,Aktie 1 1,0x13,3.5,59
Aktie, ,Aktie 1 2,31,48,9
Aktie,,Aktie 1 3,34,8,51
,,,1,2,3
Derivat,Derivat 2,, 59,"0x59",10.5
Not Found,,,1,3,9
Not Found2,10,20,1,3,9
Not Found,,,1,3,9