---
title: "showTipsForTesting(_:)"
framework: tipkit
role: symbol
role_heading: Type Method
path: "tipkit/tips/showtipsfortesting(_:)"
---

# showTipsForTesting(_:)

Show specified tips regardless of their display rule eligibility or display frequency status for UI testing of certain tips.

## Declaration

```swift
static func showTipsForTesting(_ tips: [any Tip.Type])
```

## Parameters

- `tips`: Array of tips to show regardless of their display rule eligibility.

## Overview

Overview This function can also be called with the launch argument -com.apple.TipKit.ShowTips FindTrailheadTip,SlopeProfileTip. Tip statuses automatically revert back to available after invalidation when displayed using this override to enable repeat testing of presentation and dismissal. TipKit’s display override testing functions have the following precedence:  |   |   |   |   |  import SwiftUI import TipKit

@main struct LandmarkTips: App {     var body: some Scene {         WindowGroup {             ContentView()         }     }

init() {         setupTips()     }

// Configure tips in the app.     func setupTips() {         do {             #if DEBUG             Tips.showTipsForTesting([FindTrailheadTip.self, SlopeProfileTip.self])             #endif

try Tips.configure()         }         catch {             print("Error initializing TipKit \(error.localizedDescription)")         }     } }

## See Also

### Testing

- [showAllTipsForTesting()](tipkit/tips/showalltipsfortesting().md)
- [hideAllTipsForTesting()](tipkit/tips/hidealltipsfortesting().md)
- [hideTipsForTesting(_:)](tipkit/tips/hidetipsfortesting(_:).md)
- [resetDatastore()](tipkit/tips/resetdatastore().md)
