openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.97k stars 2.55k forks source link

Continuous integration/testing #1068

Closed gabrielstuff closed 9 years ago

gabrielstuff commented 12 years ago

Hey !

Me again. Didn't find anywhere this infos. I'm currently testing the travis-ci.org service. As many people are working on the project and as many many issue are raised, and fixed, I thought it could be great to add some test and thus the travis service.

It would avoid the problem met here : https://github.com/openframeworks/openFrameworks/commit/7ca7833ea1afb6bd5a6c54031e3fa688aa0c0ba8 and the discussion here : https://github.com/openframeworks/openFrameworks/issues/804 or there : https://github.com/openframeworks/openFrameworks/pull/921

I read that :

feel free to make a unitTests folder at the root level of OF - that is where all unitTests will go.

But didn't find them.

The travis service will permit to get the little badge we know well : Build Status

Also, why not adding some spec test, to ensure future development of features. I'm currently reading : http://www.squidoo.com/cplusplus-behaviour-driven-development-tools#module124841511 http://sourceforge.net/apps/mediawiki/turtle/index.php?title=Turtle

For those who want some other nice reading :

http://gamesfromwithin.com/exploring-the-c-unit-testing-framework-jungle

The travis test is here, currently it is a total fake, but I just proposed the idea of a test driven development http://travis-ci.org/#!/soixantecircuits/openFrameworks/builds/854259

bilderbuchi commented 9 years ago

ha, I just found out that you can create a virtual framebuff (xvfb) with Travis, now: http://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-GUI-%28e.g.-a-Web-browser%29 This could enable us to compile and run OF applications (like the EmptyExample) on Travis.

kylemcdonald commented 9 years ago

can this be closed since CI is basically working now, and #4259 is the latest work on unit tests?

bilderbuchi commented 9 years ago

Yeah I guess, this issue has become very long anyway, so it will be better to open new issues when further work arises.

bilderbuchi commented 9 years ago

Related issue: #4162