Skip to content
Merged
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions Tests/SwiftlyTests/SubcommandParsingTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ArgumentParser
@testable import Swiftly
import Testing

// Test for simple mistakes declaring options and arguments in subcommands
// that only show up at runtime. For example, a non-optional type for an
// @Option will produce an error "Replace with a static variable, or let constant."
@Suite struct SubcommandParsingTests {
@Test func selfUpdateParse() throws {
try SelfUpdate.parse([])
}
}