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

Incorporate tbdex vector results into report #99

Merged
merged 11 commits into from
Jan 22, 2024
Merged

Incorporate tbdex vector results into report #99

merged 11 commits into from
Jan 22, 2024

Conversation

phoebe-lew
Copy link
Contributor

@phoebe-lew phoebe-lew commented Jan 11, 2024

  • Add hermit
  • Readme and some report gen changes
  • Handle tbdex test results

closes #83

@mistermoe
Copy link
Contributor

@phoebe-lew would it make more sense to init hermit inside of the reports dir vs at the root?

@phoebe-lew
Copy link
Contributor Author

@mistermoe hmm could do either, yeah! I tended to open the entire repo in Goland, but not sure what others usually do.
@finn-tbd @nitro-neal do you usually open just the generator, or the entire repo?

@alecthomas will it be fine to have the bin dir nested inside reports?

@alecthomas
Copy link

Definitely preferable at the root, so that it activates automatically when you cd into it.

@finn-block
Copy link
Contributor

I usually open the root. I found thought it was a little confusing to move the go.mod into a subdir but that was what was requested 🤷

Name: "tbdex-js",
Repo: "TBD54566975/tbdex-js",
ArtifactName: "junit-results",
FeatureRegex: regexp.MustCompile(`TbdexTestVectors(\w+)`),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you have been naming your tests:
TbdexTestVectorsClassFeature ?

for example:
TbdexTestVectorsRfqCreate ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yep, Think I have a copy paste error for the vector regex though!

for _, report := range reports {
for category, tests := range report.Results {
if _, ok := tests[category]; !ok {
testmap[category] = map[string]bool{}
if report.SDK.Type == "web5" {
testmap[category] = map[string]bool{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could we rename this to web5TestMap?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shouldn't need to initialize like this..., but if it breaks pls use make(map[string]bool)

Tests map[string][]string
Reports []Report
Web5Tests map[string][]string
TbDEXTests map[string][]string
}

func WriteHTML(reports []Report, filename string) error {
slog.Info("writing html report", "reports", len(reports))

testmap := make(map[string]map[string]bool)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
testmap := make(map[string]map[string]bool)
testMap := make(map[string]map[string]bool)

for consistency

Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excited to try out hermit!

@@ -0,0 +1 @@
.go-1.21.5.pkg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be 1.21.6 now?

@phoebe-lew phoebe-lew merged commit 999327f into main Jan 22, 2024
4 checks passed
@phoebe-lew phoebe-lew deleted the plew.hermit branch January 22, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tbdex vector results to generated report
7 participants