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

test: add ISO e2e tests #953

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

test: add ISO e2e tests #953

wants to merge 1 commit into from

Conversation

phm07
Copy link
Contributor

@phm07 phm07 commented Jan 10, 2025

No description provided.

@phm07 phm07 self-assigned this Jan 10, 2025
@phm07 phm07 requested a review from a team as a code owner January 10, 2025 12:01
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.83%. Comparing base (8105629) to head (f352367).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #953      +/-   ##
==========================================
+ Coverage   69.76%   69.83%   +0.06%     
==========================================
  Files         245      245              
  Lines       10711    10711              
==========================================
+ Hits         7473     7480       +7     
+ Misses       2562     2555       -7     
  Partials      676      676              
Flag Coverage Δ
e2e 46.09% <100.00%> (+0.50%) ⬆️
unit 63.48% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

t.Run("json", func(t *testing.T) {
out, err := runCommand(t, "iso", "list", "-o=json")
require.NoError(t, err)
assert.True(t, json.Valid([]byte(out)), "is valid JSON")
Copy link
Member

Choose a reason for hiding this comment

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

This isn't testing much, should we try to check the data inside?

})
})

t.Run("describe", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

There is no json output for describe?

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.

2 participants