Retrieve log file after tests fail

gqqnbig's Avatar


07 Jun, 2018 07:03 AM

There are some tests failing on AppVeyor. I revised my code to save some information to a file during the test, and added

appveyor PushArtifact MSTests\bin\Debug\netcoreapp2.0\log.txt

to After tests script. In this way, I hope to retrieve the log and find what's wrong.

It turns out once tests fail, AppVeyor doesn't execute After tests script.

What's the best to retrieve log file generated during test run?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 07 Jun, 2018 07:07 AM

    Ilya Finkelshteyn's Avatar

    Use on_failure or on_finish script. More info. Also you can debug test interactively in RDP (Windows) or SSH (Linux).

  2. Ilya Finkelshteyn closed this discussion on 31 Aug, 2018 09:00 PM.

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

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