Skip to content
Playground(another site)

bynk.fixture.missing_file

Error A suite's fixture names a file that is not in the project's fixtures/ folder.

A fixture reads a file into a String for the suite's cases, so the file must exist as a regular file in the project's fixtures/ folder. A misspelt name, a file not yet added, or a symbolic link (which is not followed) leaves the suite without its input. Add the file or correct the path. A path outside that folder is bynk.fixture.outside_fixtures_dir; an empty, absolute or .. path is bynk.fixture.unsafe_path.

Example

tests/desk.test.bynk
fixture note = "fixtures/absent.txt" // ✗ no such file in `fixtures/`
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.missing_file shows the same from the installed toolchain, without a network.