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

Bugfix/SimulateLocation Fix #973

Merged
merged 32 commits into from
Feb 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6ab8a2b
Preemptively fix compilation for latest XcodeProj
jcolicchio Oct 9, 2020
199e0d3
Add StoreKitConfiguration to scheme and generator
jcolicchio Oct 9, 2020
10417ee
Add scheme generator test
jcolicchio Oct 9, 2020
d3c837e
Fix and add tests
jcolicchio Oct 9, 2020
7623ccd
Support StoreKitConfiguration in TargetScheme
jcolicchio Oct 9, 2020
b1acd63
Set default type of `storekit` to `.none`
jcolicchio Oct 10, 2020
2dde67f
Upgrade XcodeProj to 7.15.0
jcolicchio Oct 16, 2020
b908f7c
Create struct for StoreKitConfiguration
jcolicchio Oct 16, 2020
f445f10
Update tests
jcolicchio Oct 16, 2020
01bc9df
Add storekit configuration to test project
jcolicchio Oct 16, 2020
9d8bfc3
Update changelog
jcolicchio Oct 16, 2020
d372457
Merge remote-tracking branch 'origin/master' into feature/StoreKitCon…
jcolicchio Oct 16, 2020
b344a68
Update project spec
jcolicchio Oct 16, 2020
f6faee5
Fix xcodeprojs
jcolicchio Oct 16, 2020
fa36fe1
Fix projects
jcolicchio Oct 16, 2020
76cb652
Capitalize String
jcolicchio Oct 16, 2020
c156d62
Update CHANGELOG.md
jcolicchio Oct 17, 2020
e8370af
Refactor StoreKitConfiguration init from json
jcolicchio Oct 17, 2020
4f706cb
Merge branch 'feature/StoreKitConfiguration' of github.com:jcolicchio…
jcolicchio Oct 18, 2020
c102ab0
Change `forWorkspace` to `pathPrefix` and add tests
jcolicchio Oct 21, 2020
7722365
Merge branch 'master' into feature/StoreKitConfiguration
jcolicchio Dec 2, 2020
cdbd7dc
Merge remote-tracking branch 'origin' into feature/StoreKitConfiguration
jcolicchio Jan 11, 2021
1bd3135
Merge branch 'master' into feature/StoreKitConfiguration
jcolicchio Jan 12, 2021
90650ce
Merge branch 'master' into feature/StoreKitConfiguration
jcolicchio Feb 14, 2021
ffd6f1f
Replace StoreKitConfiguration struct with string + option
jcolicchio Feb 14, 2021
27be1cc
Fix tests
jcolicchio Feb 14, 2021
d001286
Update project spec
jcolicchio Feb 14, 2021
4244dc2
Fixup changelog
jcolicchio Feb 14, 2021
5da55f2
Add `See Options` to `storeKitConfiguration` in project spec
jcolicchio Feb 14, 2021
fb72d87
Make `simulateLocation` respect `schemePathPrefix`
jcolicchio Feb 14, 2021
75f8e37
Merge branch 'master' into bugfix/SimulateLocationFix
jcolicchio Feb 15, 2021
3133c8e
Update docs
jcolicchio Feb 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add scheme generator test
  • Loading branch information
jcolicchio committed Oct 9, 2020
commit 10417ee31f48e76bfd111c2935e6adb1be66f29a
4 changes: 3 additions & 1 deletion Tests/XcodeGenKitTests/SchemeGeneratorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ class SchemeGeneratorTests: XCTestCase {
$0.it("generates scheme") {
let preAction = Scheme.ExecutionAction(name: "Script", script: "echo Starting", settingsTarget: app.name)
let simulateLocation = Scheme.SimulateLocation(allow: true, defaultLocation: "New York, NY, USA")
let storeKitConfiguration = "Configuration.storekit"
let scheme = Scheme(
name: "MyScheme",
build: Scheme.Build(targets: [buildTarget], preActions: [preAction]),
run: Scheme.Run(config: "Debug", askForAppToLaunch: true, launchAutomaticallySubstyle: "2", simulateLocation: simulateLocation, customLLDBInit: "/sample/.lldbinit"),
run: Scheme.Run(config: "Debug", askForAppToLaunch: true, launchAutomaticallySubstyle: "2", simulateLocation: simulateLocation, storeKitConfiguration: storeKitConfiguration, customLLDBInit: "/sample/.lldbinit"),
test: Scheme.Test(config: "Debug", customLLDBInit: "/test/.lldbinit")
)
let project = Project(
Expand Down Expand Up @@ -98,6 +99,7 @@ class SchemeGeneratorTests: XCTestCase {
try expect(xcscheme.launchAction?.askForAppToLaunch) == true
try expect(xcscheme.launchAction?.launchAutomaticallySubstyle) == "2"
try expect(xcscheme.launchAction?.allowLocationSimulation) == true
try expect(xcscheme.launchAction?.storeKitConfigurationFileReference?.identifier) == "../../Configuration.storekit"
try expect(xcscheme.launchAction?.locationScenarioReference?.referenceType) == Scheme.SimulateLocation.ReferenceType.predefined.rawValue
try expect(xcscheme.launchAction?.locationScenarioReference?.identifier) == "New York, NY, USA"
try expect(xcscheme.launchAction?.customLLDBInitFile) == "/sample/.lldbinit"
Expand Down