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

Replace test skips with failures #1862

Merged
merged 3 commits into from
Jan 26, 2023
Merged

Conversation

evil159
Copy link
Contributor

@evil159 evil159 commented Jan 19, 2023

Making a test to be skipped when one of its requirements(a Metal device precent, token being valid, view controller/window/app being there) is not satisfied masks the underlying issue(CI runners not supporting Metal, expired token, misconfiguration of the test).
We need to be notified about situations like this to be able to fix the underlying issue. This PR replaces all applicable XCTSkips with XCTFails to enable this.

MAPSIOS-614

@evil159 evil159 requested a review from a team as a code owner January 19, 2023 21:32
@evil159 evil159 force-pushed the rl/replace_test_skips_with_failures branch from 634185d to ca2ea50 Compare January 24, 2023 14:25
@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Merging #1862 (c67249e) into main (4b54016) will increase coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1862      +/-   ##
==========================================
+ Coverage   89.06%   89.21%   +0.15%     
==========================================
  Files         242      242              
  Lines       15080    15080              
==========================================
+ Hits        13431    13454      +23     
+ Misses       1649     1626      -23     
Flag Coverage Δ
integration 57.42% <ø> (+0.73%) ⬆️
unit 83.60% <ø> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
...boxMaps/Foundation/Extensions/Core/MapEvents.swift 94.11% <0.00%> (-5.89%) ⬇️
...boxMaps/Annotations/OffsetGeometryCalculator.swift 67.97% <0.00%> (-0.57%) ⬇️
Sources/MapboxMaps/Style/Style+Localization.swift 95.93% <0.00%> (+1.62%) ⬆️
Sources/MapboxMaps/Offline/OfflineErrors.swift 45.61% <0.00%> (+1.75%) ⬆️
Sources/MapboxMaps/Foundation/MapboxMap.swift 52.53% <0.00%> (+4.63%) ⬆️
Sources/MapboxMaps/Style/SourceType.swift 87.50% <0.00%> (+6.25%) ⬆️

@evil159 evil159 enabled auto-merge (squash) January 26, 2023 07:59
@evil159 evil159 merged commit 8880a2d into main Jan 26, 2023
@evil159 evil159 deleted the rl/replace_test_skips_with_failures branch January 26, 2023 18:50
persidskiy added a commit that referenced this pull request Feb 24, 2023
* Fix issue with map spinning when setting destBearing and sourceBearing to 102 (#1793) (#1828)

Co-authored-by: Niwaka <61189782+NiwakaDev@users.noreply.github.com>

* Enable CircleCI contexts for shared environment variables (#1852)

* Use the latest v4 Slack Orb

* Add 'Slack Orb' context for each job

* MAPSIOS-556: Adopt shared context for CocoaPods trunk token

* MAPSIOS-558: Adopt shared context for Fastlane Match password

* MAPSIOS-557: Adopt shared context for SDK Registry token

* MAPSIOS-555: Adopt shared context for Apple credentials/ASC token

* Remove unused license template (#1857)

* Fix missing contexts, reuse CircleCI token (#1859)

* Enable GoogleCloud shared credentials (#1861)

* Enable 'Retry on Failure' up to 3 times for all tests (#1860)

* Add missing public mapbox token (#1863)

* Run IntegrationTests even when unit tests failing (#1864)

* Add Mapbox public token to unit tests (#1865)

* Move mapbox token to build unit tests (#1866)

* Add public Mapbox token to build unit test jobs

* Revert "Add Mapbox public token to unit tests (#1865)"

This reverts commit efba681.

* Improve stability of attribution parsing (#1849)

* Mapsios 567 mark no op and deprecate v10.11.0 properties (#1867)

* Extract integration tests to the separate CircleCI job (#1870)

* Rename job to build host tests

* Rename job to build tests

* Rename job to build firebase tests

* Rename Build tests job

* Run integration tests

* Code coverage command

* Enable codecoverage by default

* Run integration tests on nightly bases

* Utilize default values for run-integration-tests job

* Remove unused arg

* Enable Expression to be created without an operator (#1855)

* Change clusterProperties to accept array

* Break up expression and reassemble for clusterProperties

* Adjust example so app can run

* Introduce operatorless expression

* Add additional tests, update comments

* Enable operatorless encoding, add tests

* Add property back, update filtering

* Remove generated update

* Fix argument and operator access

* Update Sources/MapboxMaps/Style/Types/Expression.swift

Co-authored-by: Mai Mai <mai.mai@mapbox.com>

* Add changelog, update expression operator to simplify

Co-authored-by: Mai Mai <mai.mai@mapbox.com>

* Bump activesupport from 6.1.5 to 6.1.7.2 in /scripts/doc-generation (#1874)

Bumps [activesupport](https://github.com/rails/rails) from 6.1.5 to 6.1.7.2.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.4.2/activesupport/CHANGELOG.md)
- [Commits](rails/rails@v6.1.5...v6.1.7.2)

---
updated-dependencies:
- dependency-name: activesupport
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update Maps versions (#1875)

* Update CoreMaps and Common

* Update license

* Update changelog

* Generate development DocC on PR merges (#1873)

* Generate DocC

* Upload DocC to the 'latest'

* Fix test results collection

* Debug

* Extra push to force CI trigger

* Last fixes

* Code review fixes

* Add 10.11.0-rc.1 changelog entry (#1876)

* Update SDK version (#1877)

* Add missing changelog for #1828 (#1880)

* Skip codecov for Xcode 12.5.1 (#1879)

* Replace test skips with failures (#1862)

* Couple of fixes for release workflow (#1883)

* Add basic signposts for rendering tracing (#1818)

* Add basic signposts for rendering tracing

* turn on signposts in tests

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Patrick Leonard <pjleonard37@users.noreply.github.com>
Co-authored-by: Niwaka <61189782+NiwakaDev@users.noreply.github.com>
Co-authored-by: Roman Gardukevich <roman.gardukevich@mapbox.com>
Co-authored-by: Roman Laitarenko <roman.laitarenko@mapbox.com>
Co-authored-by: Mai Mai <mai.mai@mapbox.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ivan Persidsky <ivan.persidskii@mapbox.com>
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.

None yet

2 participants