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

fix(emulators): Fix listing emulator targets #1495

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Oct 8, 2024

Platforms affected

iOS

Motivation and Context

I think I accidentally broke this during earlier refactoring for 8.0.0, but it was now trying to (and incorrectly) listing the simulator devices rather than the simulator device/runtime combinations.

Description

Restore the correct listing for simulator devices/runtimes when using cordova run ios --list

Testing

Tested running npx cordova run ios --list and ensured the output matched between these changes and 7.1.1

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change

@dpogue dpogue added this to the 8.0.0 milestone Oct 8, 2024
@@ -248,8 +248,8 @@ function execListDevices () {
}

/* istanbul ignore next */
function execListEmulatorTargets () {
return require('./listEmulatorTargets').run();
Copy link
Member Author

Choose a reason for hiding this comment

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

This line is the key change here. Almost everything else is just renaming this function to match what it's actually doing.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.86%. Comparing base (92df3b7) to head (b34d866).

Files with missing lines Patch % Lines
lib/run.js 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1495      +/-   ##
==========================================
- Coverage   80.89%   80.86%   -0.03%     
==========================================
  Files          16       16              
  Lines        1842     1840       -2     
==========================================
- Hits         1490     1488       -2     
  Misses        352      352              

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

Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

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

LGTM

Built a sample app, added the fixed platform, ran cordova run ios --list command, and confirmed that the simulators were listed.

@dpogue dpogue merged commit ff69ddd into apache:master Oct 8, 2024
10 checks passed
@dpogue dpogue deleted the emulator-targets branch October 8, 2024 08:27
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