-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests #193
base: master
Are you sure you want to change the base?
Add tests #193
Conversation
#Checking if there's a GUI | ||
@test typeof(pygui()) == Symbol | ||
pygui(false) | ||
pygui(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like it would be better to set up the tests to run in non-interactive, non-GUI mode, with the Agg backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you specify that? I see a bunch of backend symbols here, but what's the exact call to run in non interactive mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just do ENV["MPLBACKEND"]="agg"
to use the Agg non-interactive non-GUI backend. Non-interactive mode will be the default anyway for test scripts, since julia foo.jl
runs in non-interactive mode.
I've removed the tests with regard to GUI and backends. How else would you like to change this? |
Bump. Try enabling Travis here too? edit: and may as well add an appveyor.yml too |
Add a few tests to
PyPlot.jl
. These are mostly just calls, and tests fail if any of these calls breaks. I was hoping this could be a decent starting point.