mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
d1dd93aac4
* Resolves #173 - Shared breakpoints support * Added breakpoints full documentation * Invalid breakpoint just throw JSONUtilities decoding error. * Use enumeration types instead of String for extensionIDs * Remove a necessary line * Remove unnecessary custom Equatable implementation * Update CHANGELOG.md * Ignore empty breakpoints * Update Docs/ProjectSpec.md Fix a typo Co-Authored-By: Yonas Kolb <yonaskolb@users.noreply.github.com> * Change some properties that should be Int to Int * Create 2 typealiases * Use BreakpointType where it is missing * Remove unused Location * Change some names * Add Breakpoint.Scope * Add Breakpoint.StopOnStyle * Change the type of the raw value to String * Remove some properties that may cause confusing * Require filePah and line when the type is .file * Add tests about decoding breakpoints * Add Breakpoint.Action.ConveyanceType * Add default value for waitUntilDone * Add Breakpoint.Action.SoundName * Add tests about decoding breakpoint actions * Fix some issues in ProjectSpec.md * Improve ProjectSpec.md * Add missing condition * Add breakpoints to project.yml * Use unwarp * Remove the Breakpoint suffix * Refactor BreakpointType * Refactor Breakpoint.Action * Remove unnecessary properties * Adjust the line wrapping style for BreakpointGenerator * Support column breakpoints --------- Co-authored-by: Alex Rupérez <alejandro.ruperez@intelygenz.com> Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com>
21 lines
703 B
Swift
21 lines
703 B
Swift
import ProjectSpec
|
|
import Spectre
|
|
import TestSupport
|
|
import XCTest
|
|
|
|
class BreakpointGeneratorTests: XCTestCase {
|
|
|
|
func testBreakpoints() {
|
|
describe {
|
|
|
|
$0.it("generates breakpoint") {
|
|
let breakpoint = Breakpoint(type: .exception(.init()))
|
|
let project = Project(basePath: "", name: "test", targets: [], breakpoints: [breakpoint])
|
|
let xcodeProject = try project.generateXcodeProject()
|
|
let xcbreakpoint = try unwrap(xcodeProject.sharedData?.breakpoints?.breakpoints.first)
|
|
try expect(xcbreakpoint.breakpointExtensionID.rawValue) == "Xcode.Breakpoint.ExceptionBreakpoint"
|
|
}
|
|
}
|
|
}
|
|
}
|