Running some tests only in nightly builds

alexidsa's Avatar


09 Dec, 2018 03:34 PM

I'd like to run some NUnit tests only on a nightly build as they take too long to get executed. Currently I just ignored them. Is there an option to unignore the tests only on a nightly build?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 10 Dec, 2018 09:59 AM

    Ilya Finkelshteyn's Avatar

    There are few options you can use. First, leverage APPVEYOR_SCHEDULED_BUILD and APPVEYOR environment variables. As an option you can check if both variables value is True, ignore them. Here I assume that AppVeyor run those tests automatically. If you run them as a test_script, you can condition your script to use those variables (or just APPVEYOR_SCHEDULED_BUILD as you probably do not run script on local machine).

    Also you can create separate project targeted the same repository specifically for nightly builds and configure it separately. Disadvantage of this approach is separate build history. Also another project for the same repository will have URL slug with random ending. This you can change with API call (script sample).

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