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

Fast tests #2238

Merged
merged 2 commits into from Aug 3, 2012
Merged

Fast tests #2238

merged 2 commits into from Aug 3, 2012

Conversation

takluyver
Copy link
Member

See #2026.

As Min suggested, iptest by default will only run the faster tests, and iptest --all is necessary to run all of them. At present, it just cuts out IPython.parallel, but we can refine that if we want to.

test_pr is also updated so that you can pass extra arguments through to iptest.

@@ -22,7 +22,7 @@ def test():
# Do the import internally, so that this function doesn't increase total
# import time
from iptest import run_iptestall
run_iptestall()
run_iptestall(inc_slow=all)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inc_slow=all or inc_slow=True

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups sorry , read to fast never mind

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bikeshedding, but probably easier to understand in the negative, i.e skip_slow.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preferred shade of bikeshed is that it's logically consistent with the command line option (--all). But as a parameter to run_iptestall, all doesn't seem very descriptive, so it became inc_slow.

@takluyver
Copy link
Member Author

Test results for commit f19ae9e merged into master
Platform: linux2

  • python2.7: OK (libraries not available: oct2py rpy2)
  • python3.2: OK (libraries not available: cython oct2py pymongo rpy2 wx wx.aui)

Not available for testing: python2.6

@takluyver
Copy link
Member Author

That was just the fast tests - slow tests coming up.

@@ -156,6 +159,9 @@ def print_results(self):
print(" Test log:", result.get('log_url') or result.log_file)
if result.missing_libraries:
print(" Libraries not available:", result.missing_libraries)

if self.extra_args:
print("Extra args:", self.extra_args)
print("Not available for testing:", ", ".join(self.unavailable_pythons))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else : 
   print 'No extra Arguments' 

?
So that we are reminded that it is the slow one ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not very meaningful unless the users knows what arguments there are, though, and I'm aiming for test_pr to know as little as possible about the specifics of what it's testing. I think I prefer to keep the output cleaner.

I think the important thing is the entry in the Github comment, so that if a PR touches anything that could affect IPython.parallel, reviewers can see that it's got a test run with --all.

@takluyver
Copy link
Member Author

Test results for commit f19ae9e merged into master
Platform: linux2

  • python2.7: OK (libraries not available: oct2py rpy2)
  • python3.2: OK (libraries not available: cython oct2py pymongo rpy2 wx wx.aui)

Extra args: ['--all']
Not available for testing: python2.6

@Carreau
Copy link
Member

Carreau commented Aug 3, 2012

Damned, I'm not receiving the github notification anymore...
Merging then.
Do we want either shining panda and/or travis to run full test once a week ?

Carreau added a commit that referenced this pull request Aug 3, 2012
Fast Test

See #2026.

By default `iptest` will only run the faster tests, and `iptest --all` is necessary to run all of them. At present, it just cuts out `IPython.parallel`, but we can refine that if we want to.

`test_pr` is also updated so that you can pass extra arguments through to iptest.
@Carreau Carreau merged commit ecae5d1 into ipython:master Aug 3, 2012
@takluyver
Copy link
Member Author

For now, I'll tweak ShiningPanda to keep doing a full run every night. But we'll have the option handy if we want to free up some more time.

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Fast Test

See ipython#2026.

By default `iptest` will only run the faster tests, and `iptest --all` is necessary to run all of them. At present, it just cuts out `IPython.parallel`, but we can refine that if we want to.

`test_pr` is also updated so that you can pass extra arguments through to iptest.
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.

None yet

3 participants