Best way to include data for unit test

jay's Avatar


10 Oct, 2017 03:22 PM

What is the best way to include seed data? Right now I have them as text files and it works fine locally as i can hardcode the path, but fails on AppVeyor.


  1. Support Staff 1 Posted by Ilya Finkelshte... on 10 Oct, 2017 03:37 PM

    Ilya Finkelshteyn's Avatar

    If you check in it into your repository, it sill be cloned and you can refer it with relative path. Of you can download it on the fly and use, again, with relative path. Path should be relative to the build folder, which is by default (if you do nor run any cd commands during the build) is root of cloned repository.
    Also if you are not sure what is correct path, you can RDP to build worker and explore.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac