Test requires a file that should be in subfolder of output folder

allan.smith's Avatar

allan.smith

18 Sep, 2015 08:58 PM

...but it appears that somehow the file is copied to the bin folder instead of bin\TestFiles.

How does AppVeyor work after build? It appears to copy all output files to the bin folder without any structure.

https://ci.appveyor.com/project/SamCrigman/bobcat/build/1.0.166

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Sep, 2015 09:14 PM

    Feodor Fitsner's Avatar

    Have you tried building locally using the same command line as on AppVeyor? AppVeyor does not alter the way standard msbuild works.

    Also, to allow me to check the log of your private project [email blocked] should be added to collaborators on https://ci.appveyor.com/team

  2. 2 Posted by allan.smith on 18 Sep, 2015 09:46 PM

    allan.smith's Avatar

    Building and running our tests works fine locally.
    One of our tests needs to access a file that is 'copied to output'. Locally it ends up in a TestFiles subfolder, but in AppVeyor, the file is in the c:\projects\{projectname}\bin\ folder.

    You have access.

  3. Support Staff 3 Posted by Feodor Fitsner on 18 Sep, 2015 09:51 PM

    Feodor Fitsner's Avatar

    What's the name of those files that should be copied to "TestFiles" directory?

  4. 4 Posted by allan.smith on 18 Sep, 2015 10:14 PM

    allan.smith's Avatar

    TestApp.exe

    It is part of the Bobcat.Shared.Tests and Bobcat.Uninstaller.Tests
    projects. They are effectively the same file, with the Uninstaller project
    linking to the file under Shared, but both of Copy To Output in the project
    file.

  5. Support Staff 5 Posted by Feodor Fitsner on 18 Sep, 2015 11:17 PM

    Feodor Fitsner's Avatar

    Could please send your local build log too? Thanks!

    - Feodor

  6. Support Staff 6 Posted by Feodor Fitsner on 19 Sep, 2015 12:37 AM

    Feodor Fitsner's Avatar
  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 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

Recent Discussions

17 Jul, 2019 12:16 AM
17 Jul, 2019 12:15 AM
16 Jul, 2019 10:50 PM
16 Jul, 2019 07:47 PM
16 Jul, 2019 06:34 PM

 

16 Jul, 2019 05:17 PM
16 Jul, 2019 10:17 AM
16 Jul, 2019 07:46 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM