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

# sourceLocation

The source location where this trait is specified.

## Declaration

```swift
var sourceLocation: SourceLocation
```
