You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every now and then, we have to re-factor our graphical examples, e.g. #3045
Currently we have no way of checking whether they work.
While we don't want to (Python) unit test these scripts, it would be great if we could at least execute the examples once in our test build. Just like the other python examples
This task is to add the python graphical examples to the test build. This works via creating a CMakeLists.txt file in the appropriate directory, and adding this directory in cmake.
In order to run the graphical examples, the graphical output needs to be re-directed. Otherwise travis and the buildbot will fail. A hack to do this is to append something as
importmatplotlib; matplotlib.use('Agg')
to the python example before running it. Google for what it does Here is a hacky way to do this. @vigsterkr or @lisitsyn might have a better way in their sleves.
The text was updated successfully, but these errors were encountered:
something like this. We just want to make sure that all the graphical scripts at least run.
Some care will have to be taken when they go into infinite loops
I suggest googling how to test software with graphical interfaces ... The 'agg' is just a hacky way to do it
Every now and then, we have to re-factor our graphical examples, e.g. #3045
Currently we have no way of checking whether they work.
While we don't want to (Python) unit test these scripts, it would be great if we could at least execute the examples once in our test build. Just like the other python examples
This task is to add the python graphical examples to the test build. This works via creating a CMakeLists.txt file in the appropriate directory, and adding this directory in cmake.
In order to run the graphical examples, the graphical output needs to be re-directed. Otherwise travis and the buildbot will fail. A hack to do this is to append something as
to the python example before running it. Google for what it does Here is a hacky way to do this.
@vigsterkr or @lisitsyn might have a better way in their sleves.
The text was updated successfully, but these errors were encountered: