资 源 简 介
Commandline tool to split camelCase in test names of PyUnit tests.
CamelCase is good if there are few components. When there are more than 4 it becomes annoyance to read. If you have the convention of using camelcase to name tests, you have some long camel cases in your project. One solution is to use underscores, but in case of PyUnit there is yet another solution. You can use docstrings. The good news is that if there is a doc string in the test method, PyUnit will display it instead of test name.
This program will go through every file it gets in the args. Each test name that has more than 4 components will be shrunk (taking care of not introducing duplicates) and the corresponding splitted name will be put into the doc string.
Moreover, it will check the corresponding module under test and build a dictionary of used words so that it will not split camelcase method names appearing in the module under test. The program assumes certain structure in the direc