---
title: "evaluates(_:info:)"
framework: testing
role: symbol
role_heading: Type Method
path: "testing/testtrait/evaluates(_:info:)"
---

# evaluates(_:info:)

Creates a trait that runs a single evaluation and makes its result available through the current evaluation context.

## Declaration

```swift
static func evaluates(_ evaluation: any Evaluation, info: [String : String] = [:]) -> Self
```
