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

DXCDT-415: Quickstarts integration tests #693

Merged
merged 4 commits into from
Mar 31, 2023
Merged

Conversation

willvedd
Copy link
Contributor

@willvedd willvedd commented Mar 30, 2023

🔧 Changes

  • Separating-out quickstarts integration test cases into their own file
  • Added auth0 qs download integration case
  • Added basic unit test for additional coverage
  • Modified auth0 qs download to work in non-interactive environments

🔬 Testing

All tests pass.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2023

Codecov Report

Patch coverage has no change and project coverage change: +1.01 🎉

Comparison is base (f08a170) 58.11% compared to head (1438aea) 59.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #693      +/-   ##
==========================================
+ Coverage   58.11%   59.12%   +1.01%     
==========================================
  Files          89       89              
  Lines       11497    11494       -3     
==========================================
+ Hits         6681     6796     +115     
+ Misses       4363     4219     -144     
- Partials      453      479      +26     
Impacted Files Coverage Δ
internal/cli/quickstarts.go 52.66% <ø> (+30.48%) ⬆️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@willvedd willvedd marked this pull request as ready for review March 30, 2023 17:50
@willvedd willvedd requested a review from a team as a code owner March 30, 2023 17:50
Comment on lines -358 to -361
if !canPrompt(cmd) {
return errors.New("this command can only be run on interactive mode")
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This conditional was originally added in #119 . It notes:

Returned an error when running in non-interactive mode

  • The use case for this command only makes sense when run by a human being
  • This can be changed later if other use cases pop up

I consider the removal of this check appropriate to enable testing IMO.

@willvedd willvedd enabled auto-merge (squash) March 30, 2023 17:59
@willvedd willvedd merged commit e320094 into main Mar 31, 2023
@willvedd willvedd deleted the DXCDT-415-quickstarts-tests branch March 31, 2023 09:45
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.

3 participants