Skip to content

Commit

Permalink
Removed public
Browse files Browse the repository at this point in the history
  • Loading branch information
rofle100lvl committed Aug 18, 2024
1 parent 07c5bbd commit 5bef2b0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Tests/FrontendTests/AcceptanceTestCase.swift
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
import XCTest
import Commands
import SystemPackage
import ArgumentParser
import Shared
import System


public enum Fixture: String {
enum Fixture: String {
case defaultiOSProject = "Tests/FrontendTests/DefaultiOSProject/DefaultiOSProject.xcodeproj"
}

public class AcceptanceTestCase: XCTestCase {
class AcceptanceTestCase: XCTestCase {
let packageRootPath = URL(fileURLWithPath: #file).pathComponents
.prefix(while: { $0 != "Tests" }).joined(separator: "/").dropFirst()

public override class func setUp() {
override class func setUp() {
Configuration.shared.reset()
super.setUp()
}

public override class func tearDown() {
override class func tearDown() {
Configuration.shared.reset()
super.tearDown()
}

public func run(command: FrontendCommand.Type, arguments: String...) throws {
func run(command: FrontendCommand.Type, arguments: String...) throws {
var command = try command
.parse(arguments)
try command.run()
}

public func setupFixture(fixture: Fixture) -> FilePath {
func setupFixture(fixture: Fixture) -> FilePath {
var file = FilePath(String(packageRootPath))
file.append(fixture.rawValue)
return file
}

public func XCTOutputDefaultOutputWithoutUnusedCode(scheme: String) {
func XCTOutputDefaultOutputWithoutUnusedCode(scheme: String) {
XCTAssertTrue(LoggerStorage.collectedLogs.contains(
[
"* Inspecting project...",
Expand Down

0 comments on commit 5bef2b0

Please sign in to comment.