Feature: multi-language support As a Researcher or Practioneer I want to be able to analyze software in different languages In order do compare them Scenario: dependency between modules Given I am in t/samples/hello_world/ When I run "analizo graph --modules ." Then analizo must report that "" depends on "" Examples: | language | main_module | hello_world_module | | c | main | hello_world | | cpp | main | HelloWorld | | java | Main | HelloWorld | | csharp | main | HelloWorld | Scenario: dependency between specific functions Given I am in t/samples/hello_world/ When I run "analizo graph ." Then analizo must report that "" depends on "" And analizo must report that "" depends on "" Examples: | language | main_function | hello_say | hello_destroy | | c | main::main() | hello_world::hello_world_say(hello_world *) | hello_world::hello_world_destroy(hello_world *) | | cpp | main::main() | HelloWorld::say() | HelloWorld::destroy() | | java | Main::main(String[]) | HelloWorld::say() | HelloWorld::destroy() | | csharp | main::Main() | HelloWorld::say() | HelloWorld::destroy() | Scenario: intra-module dependencies Given I am in t/samples/hello_world/ When I run "analizo graph ." Then analizo must report that "" depends on "" And analizo must report that "" depends on "" Examples: | language | hello_say | hello_destroy | hello_id | | c | hello_world::hello_world_say(hello_world *) | hello_world::hello_world_destroy(hello_world *) | hello_world::_hello_world::id | | cpp | HelloWorld::say() | HelloWorld::destroy() | HelloWorld::_id | | java | HelloWorld::say() | HelloWorld::destroy() | HelloWorld::_id | | csharp | HelloWorld::say() | HelloWorld::destroy() | HelloWorld::_id | Scenario: some metrics Given I am in t/samples/hello_world/ When I run "analizo metrics ." Then analizo must report that the project has total_modules = 2 And analizo must report that module has nom = 1 And analizo must report that module has npm = 3 And analizo must report that module has nom = And analizo must report that module has npa = Examples: | language | main_module | hello_world_module | total_methods | public_attributes | | c | main | hello_world | 3 | 2 | | cpp | main | HelloWorld | 4 | 1 | | java | Main | HelloWorld | 4 | 1 | | csharp | main | HelloWorld | 4 | 1 | Scenario: inheritance data Given I am in t/samples/animals/ When I run "analizo graph --modules ." Then analizo must report that "Cat" depends on "Mammal" And analizo must report that "Dog" depends on "Mammal" And analizo must report that "Mammal" depends on "Animal" When I run "analizo metrics ." Then analizo must report that module Cat has dit = 2 And analizo must report that module Dog has dit = 2 And analizo must report that module Mammal has dit = 1 And analizo must report that module Animal has dit = 0 Examples: | language | | cpp | | java | # not sure what to expect in this case Scenario: mixed Java and C Given I am in t/samples/mixed When I run "analizo metrics ." Then the output must match "_module: native_backend" And the output must match "_module: UI" And the output must match "_module: Backend"