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 auto-generated HTML report #9

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

MalteHerrmann
Copy link
Owner

Creates an exportable HTML report, which shows the available tests and their corresponding results.

@MalteHerrmann MalteHerrmann linked an issue Jul 12, 2024 that may be closed by this pull request
{{ end }}

{{ block "nested-content" . }}
<!-- TODO: hover doesn't work?? -->
Copy link
Owner Author

Choose a reason for hiding this comment

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

check

<!-- TODO: hover doesn't work?? -->
<div class="flex flex-col justify-center p-4 bg-green-800 border-green-800 shadow-md hover:shadow-lg rounded-2xl">
<div class=" text-gray-400 flex items-center ">
<!-- TODO: make image work?? -->
Copy link
Owner Author

Choose a reason for hiding this comment

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

check

HasSkipped bool
HasFailed bool
Contents map[string]NestedContents
// TODO: check if actually necessary?? can't I just pass the key to the template?
Copy link
Owner Author

Choose a reason for hiding this comment

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

check

Expect(spec.Contents["Example"].Contents["it should be true"].LayerDescription).To(Equal("it should be true"))
Expect(spec.Contents["Example"].Contents["it should be false"].LayerDescription).To(Equal("it should be false"))

fmt.Println(spec.Contents["Example"].Contents["Nested table"])
Copy link
Owner Author

Choose a reason for hiding this comment

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

remove print statement(s)

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.

Generate a nicely formatted HTML report
1 participant