# Loop over SafeTestsets

**URL:** https://discourse.julialang.org/t/loop-over-safetestsets/66181
**Category:** General Usage
**Tags:** testing
**Created:** [August 11, 2021, 6:34am UTC](https://discourse.julialang.org/t/loop-over-safetestsets/66181 "2021-08-11T06:34:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)
#### Post date: [August 11, 2021, 6:34am UTC](https://discourse.julialang.org/t/loop-over-safetestsets/66181/1 "2021-08-11T06:34:43Z")

</div>

When using [SafeTestsets](https://github.com/YingboMa/SafeTestsets.jl), is any way to do something like the following?

```julia
for (name, file) in TESTS
    @safetestset name begin include(file) end
end

```

This (and any variation I’ve tried) always gives me `ArgumentError: Use @safetestset like the following: [...]`, presumably because the `@safetest` macro tries to operate on the symbol `name` instead of the string stored in `name`. Is there any way to evaluate `name` and `file` into a string _before_ `@safetestset` handles them?
