Best way to include data for unit test

jay's Avatar

jay

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.

Thanks
JAy

  1. 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.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:20 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? 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