Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Run cross-platform expression tests against NSExpression #11014

Closed
1ec5 opened this issue Jan 24, 2018 · 3 comments
Closed

Run cross-platform expression tests against NSExpression #11014

1ec5 opened this issue Jan 24, 2018 · 3 comments
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling tests

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jan 24, 2018

The iOS and macOS test targets should somehow exercise the NSExpression implementation added in #10726 against the cross-platform expression tests in the GL JS submodule.

As a starting point, we could run all the expressions through +[NSExpression(MGLAdditions) mgl_expressionWithJSONObject:] and -[NSExpression(MGLAdditions) mgl_jsonExpressionObject] to ensure that these methods round-trip without crashing Foundation’s NSExpression parser. As a longer-term effort, we could supplement the test fixtures with Darwin-specific files specifying the expected NSExpression translation of each JSON-formatted expression.

/cc @akitchen @fabian-guerra @anandthakker

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS tests runtime styling labels Jan 24, 2018
@1ec5 1ec5 added this to the ios-v4.0.0 milestone Jan 24, 2018
akitchen pushed a commit that referenced this issue Mar 11, 2018
This could be a lot better (WIP)
A few crashing cases are blacklisted in the code.

[#11014]
@akitchen
Copy link
Contributor

@1ec5 @anandthakker @fabian-guerra

The code in https://github.com/mapbox/mapbox-gl-native/tree/fb-expression-tests-from-js can be used to run the expressions tests from gl-js against the iOS SDK. I suppose we could open a "do not merge" PR as well.

Once the branch is checked out simply run the tests against the dynamic framework target in the iOS project to see the results.

@1ec5
Copy link
Contributor Author

1ec5 commented Mar 21, 2018

The branch above has been PR’d as #11435.

friedbunny pushed a commit that referenced this issue Mar 22, 2018
This could be a lot better (WIP)
A few crashing cases are blacklisted in the code.

[#11014]
@1ec5 1ec5 modified the milestones: ios-v4.0.0, ios-v4.0.1 Apr 18, 2018
akitchen pushed a commit that referenced this issue Apr 27, 2018
This could be a lot better (WIP)
A few crashing cases are blacklisted in the code.

[#11014]
@1ec5 1ec5 modified the milestones: ios-v4.0.1, ios-v4.1.0 May 8, 2018
@1ec5 1ec5 modified the milestones: ios-v4.1.0, ios-v4.2.0 Jun 20, 2018
@1ec5 1ec5 modified the milestones: ios-v4.2.0, ios-v4.3.0 Jul 18, 2018
@friedbunny friedbunny removed this from the ios-v4.3.0-espresso milestone Nov 21, 2018
@stale stale bot added the archived Archived because of inactivity label May 20, 2019
@stale
Copy link

stale bot commented May 20, 2019

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling tests
Projects
None yet
Development

No branches or pull requests

3 participants