"Avdi Grimm" <[EMAIL PROTECTED]> writes: > A few points, from someone with a decent amount of testing background:
Jippie! Please stay with us for a few days :-D > * As someone who has contributed to OS projects, the lack of a > pre-existing set of regression tests in org-mode is actually *the* > most significant blocker to my getting involved in org-mode > development. I do all of my coding - both professional and personal - > in the context of tests, and not having the existing framework means > that before I can start working on new features I first need to spend > time yak-shaving on testing infrastructure. > > * I think there's a lot of over-thinking going on here. Here's the > test-first coding discipline in a nutshell: > 1. Identify a problem/missing feature. > 2. Write a test (possibly using a unit-testing framework to help) > which will pass when the bug has been fixed or feature added. This can > be as simple as calling a function and validating its return value. > 3. Run the test. Verify it FAILS. > 4. Write code to make the test PASS. > 5. Refactor, if you introduced any code duplication in step 4. > 6. Run all the tests, to make sure you didn't break anything else. > 7. Commit. > > If someone would be so kind as to identify a small bug or feature, I > would be happy to demonstrate this workflow in the form of code, time > permitting. Sounds great! Not shure if we can provide a bug though :-D Bug anyone? Hm - how about: 1. A not yet existent elisp file test-worg.el, that defines a function hello-worg, and a variable lang, and simply puts "Hello Worg"into the minibuffer (if (string= lang "en")) and "Hallo Worg" (if (string= lang "de")) ? Did you work with unit-testing frameworks for elisp already? Which one? Recommendations? Could say something about the effort to get started with such a framework? Can we add it without changing Org's code? If understand 2. correctly - yes? If we can, would we loose quality/speed of tests? How much? Tell us all :-) Oha - I have an appointment (concert) - back tonight! All the best, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: [EMAIL PROTECTED], [EMAIL PROTECTED] Http: www.emma-stil.de _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode