Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WIP ENH: Better test coverage - #910

Merged
dengemann merged 6 commits into
mne-tools:masterfrom
larsoner:better-test
Nov 22, 2013
Merged

WIP ENH: Better test coverage#910
dengemann merged 6 commits into
mne-tools:masterfrom
larsoner:better-test

Conversation

@larsoner

Copy link
Copy Markdown
Member

For 0.7 or not, either way is fine by me, but I vote 0.7 (I can probably get it done tomorrow). These changes make utils and fixes, and viz have better coverage.

Comment thread mne/fixes.py

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

By the way, these comparisons were not working for me. I have numpy 1.8, and this comparison was evaluating to True.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You did the right thing. Seeing this I also would have suggested using LooseVersion.

@agramfort

Copy link
Copy Markdown
Member

LG8TM

feel free to merge when you're done

@larsoner

Copy link
Copy Markdown
Member Author

@dengemann I added a test that I think should work that causes a failure in plot_epochs. Can you take a look when you get a chance?

FYI, I added some keypress tests for plot_raw. I'm working on how to extend them to click testing, since that's where the vast majority of the missed test lines are in test_viz.py -- hopefully someone can respond to this:

http://matplotlib.1069221.n5.nabble.com/Emulating-keypress-and-mouse-clicks-td42534.html

Comment thread mne/tests/test_viz.py

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This function wasn't tested before (tsk, tsk)

@larsoner

Copy link
Copy Markdown
Member Author

BTW so far, this PR takes the unaccounted-for lines in viz from 438 to 351, the bulk of which is due to button-press emulation. I think we'll be able to do much better once I figure out the click emulation.

@dengemann

Copy link
Copy Markdown
Member

@Eric89GXL PR sent

Comment thread mne/tests/test_fixes.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Interesting, I've never seen else in a try block, did not know this is valid Python.

dengemann pushed a commit that referenced this pull request Nov 22, 2013
WIP ENH: Better test coverage
@dengemann
dengemann merged commit c68ec95 into mne-tools:master Nov 22, 2013
@larsoner
larsoner deleted the better-test branch March 11, 2014 14:39
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