Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add tests #193

wants to merge 2 commits into from

Conversation

ranjanan
Copy link

@ranjanan ranjanan commented Feb 8, 2016

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.

#Checking if there's a GUI
@test typeof(pygui()) == Symbol
pygui(false)
pygui(true)
Copy link
Member

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.

Copy link
Author

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?

Copy link
Member

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.

@ranjanan
Copy link
Author

I've removed the tests with regard to GUI and backends. How else would you like to change this?

@tkelman
Copy link
Contributor

tkelman commented Sep 17, 2016

Bump. Try enabling Travis here too?

edit: and may as well add an appveyor.yml too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants