How can I force python setup.py test to use the unittest2 package for testing instead of the built-in unittest package?
How to use unittest2 in python setup.py test
1.4k Views Asked by argentpepper At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in TESTING
- How does Robot's Telnet library work?
- Behat doesn't load extensions?
- Load additional CONFIG file with values
- rails controller test failing non-deterministicly wrt state leak (I think)
- Ordering tests using trial twisted
- Unexcepted failed Gavel/Dredd test
- How to use Jasmine and CucumberJS with Protractor
- Django login tests session problems
- How to mock specific RequireJs dependencies while unit testing
- Test case for WCF REST Service
- how to test this business logic
- Protractor - How to get first or last CHILD value
- Factory Not Registered in rspec but found in console
- Pick out certain lines from files
- Selenium stops running after click() function runs
Related Questions in SETUPTOOLS
- Module found in install mode but not in develop mode using setuptools
- adding --extra-index-url to setup.py setup_requires
- setuptools.setup can't find dylib library files but they are there
- Permission denied Setuptools
- Not able to import setuptools when using terminal but can do it from pycharm, how to fix this?
- Package a python project using batch scripts
- "python setup.py install" does not create entry points
- Creating deb or rpm with setuptools – data_files
- Python unittest __del__ behaviour wrt modules
- How to identify compiler before defining cython extensions?
- specify wheel cache when installing a package
- Cant Use Tkinter module in setuptools for python2
- What is the purpose of Python setuptools?
- pip uninstall fails for egg package
- What is the difference between `extras_require()` and `install_requires()` in setup.py?
Related Questions in SETUP.PY
- Module found in install mode but not in develop mode using setuptools
- setuptools.setup can't find dylib library files but they are there
- How to use setup.py to install dependencies only?
- Finding setup.py installation dir within setup.py
- "python setup.py install" does not create entry points
- What is the difference between `extras_require()` and `install_requires()` in setup.py?
- How to specify dependencies in Python
- Dynamically importing repository after running setup.py
- Upload to custom PyPi repo with Windows System User
- running python setup.py test pip not finding pip.conf to install internal requirements
- Python setup.py script isn't installing modules correctly
- In Python, can I monkeypatch upstream dependencies?
- Difference between setup.py install and setup.py develop
- how to create setup.py script for modules
- Python-module: #ifdef for setup.py
Related Questions in UNITTEST2
- Is it possible to mock the string module from Python?
- Mock object issue
- `python -m unittest discover` does not discover tests
- python nose from a script, gathers test classes from files and then runs tests
- renaming default python-unittest function names
- How to run specific test in Nose2
- python unit test - how to test function local JSON object has correct key value pairs?
- Django unittests - ImproperlyConfigured error
- easy_install on Cygwin: unittest2 causes SyntaxError
- No api proxy found for service "memcache" GAE unittest2
- Using Django DiscoverRunner with django_hstore
- How to assert that a method is decorated with python unittest?
- How to use unittest2 in python setup.py test
- How to test methods that compute relative time in python using unitttest?
- Running python unit test over LSF
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Let's assume you have a directory called
testswhich contains an__init__.pyfile which defines a function calledsuitewhich returns a test suite.My solution is to replace the default
python setup.py testcommand with my owntestcommand which usesunittest2:Now running
python setup.py testruns my customtestcommand.