Automatically run tests after changing sources

I use Cxxtest to unit test my C ++ code. I would like that every time I change and save my code, tests are performed (simply, make tests). I know that for Python there is Nosy that allows this. Is there any general program that would allow this for Cxxtest or any other testing module?

I just need to run only one file change command. It's easy to write a script like this, but maybe there is already some kind of tool :)

+5
source share
3 answers

Annoyed that there is no ready-made and simple solution, I simply created a simple tool: changerun to run commands when changing files. I hope someone finds this useful :)

0
source

On Linux, you can use the file system monitoring daemon, such as incron, to run a command (for example make tests) every time a file is changed in a directory (a so-called event IN_CLOSE_WRITE).

+2
source

TeamCity. + . - /.

, linux-.

http://www.jetbrains.com/teamcity/

If this is a little difficult for you, then you should be able to configure the build process to run the tests for you (for example, edit your makefile on linux), but obviously this still means that you manually start the build when you make the changes (which I think you are likely to do anyway).

+1
source

All Articles