Code manipulation library for vala: getting barked at will be a pleasure
Echo uses libvala-0.28
- returns a complete
code treefrom vala'sAST - handles packages
- provide completion
- full set of unit tests
./hen build
var loop = new MainLoop ();
var project = new Project ("testing");
project.add_external_package ("glib-2.0");
project.add_external_package ("gobject-2.0");
project.add_external_package ("clutter-gtk-1.0");
project.add_external_package ("granite");
// project.add_file ("./test.vala");
project.add_file ("./tests/files/main_namespace.vala");
project.update.begin (() => {
print ("UPDATE FINISHED\n");
try {
project.complete ("./tests/files/main_namespace.vala", 20, 10);
} catch (Error e) {
warning (e.message);
}
loop.quit ();
});
loop.run ();
./hen install
The unit tests are defined in the folder tests
./hen run test
Expected output :
/SymbolListingTestCase/list_symbols_in_simple_main: OK
<more tests> : OK