---
title: fileID
framework: testing
role: symbol
role_heading: Instance Property
path: testing/sourcelocation/fileid
---

# fileID

The file ID of the source file.

## Declaration

```swift
var fileID: String { get set }
```

## Discussion

Discussion note: The value of this property must not be empty and must be formatted as described in the documentation for the #fileID. macro in the Swift standard library.

## See Also

### Related Documentation

- [moduleName](testing/sourcelocation/modulename.md)
- [fileName](testing/sourcelocation/filename.md)
