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

  2. Ilya Finkelshteyn closed this discussion on 09 Feb, 2019 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