---
title: filePath
framework: testing
role: symbol
role_heading: Instance Property
path: testing/sourcelocation/filepath
---

# filePath

The path to the source file.

## Declaration

```swift
var filePath: String
```
