Retrieve log file after tests fail

gqqnbig's Avatar

gqqnbig

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

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

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