Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-17 Thread Michael Meeks
On Tue, 2015-06-16 at 23:45 +0200, Zolnai Tamás wrote: > I didn't find any example code in this topic. It was just a sudden > idea deducted from the general rule: If you are bored doing things > manually do it automatically. :) Fair enough =) > I'm not sure what clang plugins capable of.

Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-17 Thread Zolnai Tamás
2015-06-16 23:52 GMT+02:00 Zolnai Tamás : > 2015-06-16 9:15 GMT+02:00 Stephan Bergmann : >> On 06/15/2015 03:51 PM, Zolnai Tamás wrote: >>> >>> I've got an idea too: automatically generated unit tests. >>> I think with a clang plugin we can generate unit tests for all >>> class/struct in the source

Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-16 Thread Zolnai Tamás
2015-06-16 9:15 GMT+02:00 Stephan Bergmann : > On 06/15/2015 03:51 PM, Zolnai Tamás wrote: >> >> I've got an idea too: automatically generated unit tests. >> I think with a clang plugin we can generate unit tests for all >> class/struct in the source code in build time. Build system can link >> it

Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-16 Thread Zolnai Tamás
2015-06-15 21:34 GMT+02:00 Michael Meeks : > Hi Tamas, > > On Mon, 2015-06-15 at 15:51 +0200, Zolnai Tamás wrote: >> I've got an idea too: automatically generated unit tests. > > Sounds interesting :-) are there some existing examples of clang > plugins that do this - or some papers / exist

Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-16 Thread Stephan Bergmann
On 06/15/2015 03:51 PM, Zolnai Tamás wrote: I've got an idea too: automatically generated unit tests. I think with a clang plugin we can generate unit tests for all class/struct in the source code in build time. Build system can link it as a simple unit test and run it directly after generation.

Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-15 Thread Michael Meeks
Hi Tamas, On Mon, 2015-06-15 at 15:51 +0200, Zolnai Tamás wrote: > I've got an idea too: automatically generated unit tests. Sounds interesting :-) are there some existing examples of clang plugins that do this - or some papers / existing code that does this ? I imagine we would want anno

Re: test infrastructure ideas appreciated ... -- automatically generated unit tests

2015-06-15 Thread Zolnai Tamás
Hi guys, I've got an idea too: automatically generated unit tests. I think with a clang plugin we can generate unit tests for all class/struct in the source code in build time. Build system can link it as a simple unit test and run it directly after generation. If it returns with no error it can b