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 commands test generator for Xcode 12.5+ #91

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

kwridan
Copy link
Contributor

@kwridan kwridan commented Aug 9, 2021

Resolves: #87

Description

  • As of Xcode 12.5 using swift run xcdiff along with the -v (verbose) option produces additional unwanted output
  • This is caused by -v now also being an option the swift command respect to produce verbose output
  • To mitigate this, we no longer invoke xcdiff via swift run xcdiff, but instead we invoke the binary directly via $(swift build --show-bin-path)/xcdiff after it has been built

Test Plan:

  • Run make regenerate_command_snapshots
  • Verify it works when using Xcode12.5+

@kwridan
Copy link
Contributor Author

kwridan commented Aug 9, 2021

This will need a rebase once #90 lands to address CI failures

@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #91 (b41bacf) into main (dbf6929) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   96.22%   96.22%           
=======================================
  Files          47       47           
  Lines        1853     1853           
=======================================
  Hits         1783     1783           
  Misses         70       70           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbf6929...b41bacf. Read the comment docs.

marciniwanicki
marciniwanicki previously approved these changes Aug 9, 2021
Resolves: bloomberg#87

- As of Xcode 12.5 using `swift run xcdiff` along with the `-v` (verbose) option produces additional unwanted output
- This is caused by `-v` now also being an option the `swift` command respect to produce verbose output
- To mitigate this, we no longer invoke `xcdiff` via `swift run xcdiff`, but instead we invoke the binary directly via `$(swift build --show-bin-path)/xcdiff` after it has been built

Test Plan:

- Run `make regenerate_command_snapshots`
- Verify it works when using Xcode12.5+

Signed-off-by: Kassem Wridan <kwridan@bloomberg.net>
@kwridan kwridan merged commit f80a44e into bloomberg:main Aug 11, 2021
@kwridan kwridan deleted the fix/command-test-generator branch August 11, 2021 07:48
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.

Update command tests generator for Xcode 12.5
2 participants