---
title: sourceLocation
framework: testing
role: symbol
role_heading: Instance Property
path: testing/expectation/sourcelocation
---

# sourceLocation

The source location where this expectation was evaluated.

## Declaration

```swift
var sourceLocation: SourceLocation
```
