Re: Unit testing
"Tor Edvardsson @ Pike importm?te f?r mailinglistan" <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Thanks. Yes, I started rolling my own framrwork. I have never done a unit testing framework before and I'm not an expert on unit testing either, but here is a start https://github.com/tored/angler Each pike file is a test suite. Each method within a test suite that begins with the word test is considered a unit test. It can run against multiple folders with many test suites within them. It has support for adding more report generators, like HTML or JSON or whatever you want. However a bigger rewrite is probably necessary when I need to do more advanced stuff (on the fly creation of unique unit tests), but it works for now. At the moment I'm working on another pike project where I'm going to use this and then I know if it holds up. / Tor