Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Setting environment for autotests in Qt Creator



  • How do I set the environment that Qt Creator runs autotests in?

    My tests (they're end-to-end tests) use a QProcess to launch an executable that's normally installed into /usr/local/bin on OS X. By default, Qt Creator does not have /usr/local/bin in the PATH if you launch it the normal way (from Finder).

    How do I set things so that Qt Creator runs its autotests in an environment that has /usr/local/bin in the PATH, if launched from Finder on OS X?



  • Never mind, got it:

    Go to Projects->Build and set it there.


Log in to reply