This replaces the issue #39 pull request
All additions are files in test
test_argparse_mocha.js - mocha test cases derived from test_argparse.py
These files might be handy if we want to extract more tests, or generate them in different form.
Being development code they might not belong in the test directory
test_argparse.py - Python original
test_argparse_convert.py - JSON serializes the tests that it can (76 'classes')
test_argparse.coffee - writes mocha test from the JSON object
files to convert test_argparse.py to JS mocha tests.
test_argparse_convert.py JSON serializes as many py test classes as it easily can.
test_argparse.coffee writes (to stdout) a mocha test file
alternatively it can run rests directly and display diagnostic output.
cleanup documentation of test_argparse* files
Also, already existing tests (not in this commit) became almost unmaintainable. I don't see logic in splitting by files and in file names. IMHO, that should be cleared before merging new tests.
I did partial cleanup, and now only files have to be reorganized. You can wait until @shkuropat do it, or suggest your own improvments. Then we could return to this pull-request.
PS. I'd like to add you to major contrubutors in argparse description. Could you tell me your First/Last name ?
PPS. Idea to atomate tests conversion from python to node is nice. Probably, that could be independent project - may be, someone will use it nex time, when convert another package to node.
my name: Paul Jacobson
I hope, this tests will be merged soon. Sorry for delay.
Restructure tests and add converted from python tests #40
Test processed, but still need rewrite text to single style.
My apologies about delay, too big load on work.
code cleanup, related to #40
Yeaaaahhh! you did it :) . I close issue, since consider goals reached:
There are couple or places, that can be improved, but are not blockers now:
If someone wish to do it - feel free to make pull requests. But even now, tests are good enougth for future development.