This is a nice pull request even, I've merged it.
Is there a simple way to automatically detect and fill the tests lists?
Also, what extra features would be nice to see in this template ?
Thanks!
On Fri, Feb 5, 2016 at 3:44 AM, Evan Nemerson wrote:
> You're missing
Please don't do that. If you want to force a Perl dependency for your
own project that's fine, but for a template project it's a bad idea.
People using the template will probably be unable to build on Windows.
Also, keep in mind that sometimes test names will be automatically
generated. For
These are nice suggestion Evan! I'll implement some of them in my main
project and then copy it to the template on the go, thank you vm!
BTW, I just wrote a perl script the find test names in the .vala files and
added to the template project.
On Fri, Feb 5, 2016 at 4:51 PM Evan Nemerson
On Fri, 2016-02-05 at 13:34 -0200, Felipe Lavratti wrote:
> This is a nice pull request even, I've merged it.
>
> Is there a simple way to automatically detect and fill the tests
> lists?
I don't think so. CMake requires knowledge of the test names at
configure time, so even if you could
You may also find the Gee.TestCase class suits your needs - it certainly
makes the tests easier to read and is more xUnit like in its approach than
the 'naked' GLib Test classes.
https://esite.ch/2012/06/writing-tests-for-vala/
Gives a good overview - and if I recall the GXml tests that Daniel
I'm in the process of implementing the gee test suite into my project. So far
so good. The test suite was easy to figure out. So far my biggest problem has
been trying to figure out how to setup CMake for it all to work.
Thank you,
Steven N. Oliver
On Thu, Feb 4, 2016 at 3:07 PM -0800,
- Original Message -
> From: Felipe Lavratti
> Sent: Thursday, 4 February 2016, 20:18
> Subject: [Vala] Using TestCase class: assert (this is Object) fails in
> method, but not in constructor
>
> Have a look at this code:
>
> public class Tests : Object {
>
Steven,
Since you brought it, I took the liberty to commit a project template
with my current setup of using Atom + Vala + Gee TestCase +
Cmake.
It is here: https://github.com/felipe-lavratti/vala-unittests-cmake
Hope it helps.
On Thu, Feb 4, 2016 at 9:09 PM, Steven Oliver
Hi Felipe,
I was just hoping someone would do exactly this! I don't know CMake very
well but would like to make Valadate work with it, and I needed a sample
project to get started. This is perfect.
I just have one question, does this run the compiled test binary through
gtester (or other test
You're missing support for `make test`.
This is a bit more complicated than it needs to be since recent
versions of CMake will complain if you try to create a "test" target;
they've decided to reserve it for their ctest framework, so the only
real choice is to use ctest.
ctest is really geared
Have a look at this code:
public class Tests : Object {
public Tests () {
assert (this is Object); // THIS ASSERTION PASSES
ts = new TestSuite ("dot_cap_dimmer") ;
ts.add (new TestCase ("construction", (TestFixtureFunc)
setup, (TestFixtureFunc)
11 matches
Mail list logo