Skip to content
Playground(another site)

bynk.fixture.outside_fixtures_dir

Error A suite's fixture names a file outside the project's fixtures/ folder.

A fixture is test input, and it may come only from the project's fixtures/ folder. If any path were allowed, a declaration could read .env or a source file just by naming it. Move the file into fixtures/ and name it there. A path that is empty, absolute or contains .. is bynk.fixture.unsafe_path instead.

Example

fixture note = "data/note.txt" // ✗ not in the fixtures/ folder
fixture note = "fixtures/note.txt" // ✓

In the Book

See also

  • The grammar rule it governs: fixture_decl.
  • Every code in its category, Other, on the diagnostic index.
  • bynk explain bynk.fixture.outside_fixtures_dir shows the same from the installed toolchain, without a network.