Re: [Vala] Adding unitary test support to Autovala

2014-11-18 Thread Alessandro Pellizzari
On 2014-11-17 22:07, rastersoft wrote: The first one is how to define each unitary test; my original idea was: one file, one test, so inside a folder called unitests will be as many .vala files as unitary tests (even in subfolders). But then I considered that, maybe, some tests are so big

[Vala] Adding unitary test support to Autovala

2014-11-17 Thread rastersoft
Hi all: I'm working on adding unitary test support to autovala, but have some doubts that I want to comment here, to ensure that the implementation is right. The first one is how to define each unitary test; my original idea was: one file, one test, so inside a folder called unitests will

Re: [Vala] Adding unitary test support to Autovala

2014-11-17 Thread Craig
Not exactly sure what you mean, but a very common pattern is one unit test file for each class (unit) you want to test. This has worked fine for me in every language I've worked with. On Nov 17, 2014 4:07 PM, rastersoft ras...@rastersoft.com wrote: Hi all: I'm working on adding unitary test

Re: [Vala] Adding unitary test support to Autovala

2014-11-17 Thread Steven Oliver
I would suggest one test per file. That seems to be the most common use case in my opinion. I also don't see why you couldn't in theory do both. All files in the top directory are one test per file. Anything in a sub directory is treated as all files are compiled to a test. On Mon, Nov 17, 2014