alonho / nosecomplete Goto Github PK
View Code? Open in Web Editor NEWA nose plugin for completing test modules/classes/methods/functions from the command line
License: BSD 3-Clause "New" or "Revised" License
A nose plugin for completing test modules/classes/methods/functions from the command line
License: BSD 3-Clause "New" or "Revised" License
...since it stop nos completing to "nosetests".]
Any chance of a rename?
Awesome otherwise though :-)
Chris
was glad to see announcement on this little helper tool
I have been using my simple completion for zsh:
http://git.onerussian.com/?p=etc/zsh.git;a=blob;hb=HEAD;f=.zsh/func/_nosetests
which has
cons:
pros:
so thought to share to inspire more improvements ;)
Is it possible to add completion for nose command-line options, such as --processes, --process-timeout and so on?
I'm testing nosecomplete after your posting to the TIP mailing list and found that there is no context in the autocomplete feature:
nosetests --config=nose.cfg core/data/parsers/tests/test_swf.py:
...some seconds to process...
Display all 343 possibilities? (y or n)
BaseGoogleAPISearch TestErrorPages TestIsSourceFile TestSitemap
BaseMultiInTest TestEsmMultiIn TestIsVulnerableHelper TestSmartFill
BaseMultiReTest TestEsmreMultire TestKeepalive test_smb_config_files
BaseTemplateTest TestEval test_kerberos_config_files TestSourceforge
I would expect that tab to autocomplete to the only test class name that's defined in test_swf.py
Hello, @alonho! Thanks for such a handy tool!
Can you please tag the commits related to each revision? Such as 0.1.0
@472af40 โ e.g. git tag 0.1.0 472af40
.
Thanks!
This plugin is absolutely fantastic. I have one tiny suggestion - when tabbing "nosetests" itself from bash, it itself won't tab because the "nosecomplete" bash script in the virtualenv gets in way. (as it also begins with "nose...").
I would suggest altering the script the something else - I tried renaming it to "old.nosecomplete" and it worked fine.
To make it work with https://github.com/django/django and https://github.com/django-nose/django-nose I replaced:
complete -o nospace -F _nosetests nosetests
With:
complete -o nospace -F _nosetests python manage.py test
Is it the best way to do it?
3c37b65, for example, is not included in any revision on PyPI, rendering nosecomplete
useless on Python 3. Please bump a new 0.1.1
release, tag the respective commit and update PyPI.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.