Diff of the two buildlogs: -- --- b1/build.log 2024-11-18 13:25:52.272282913 +0000 +++ b2/build.log 2024-11-18 13:29:20.094877145 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Dec 21 07:46:48 -12 2025 -I: pbuilder-time-stamp: 1766346408 +I: Current time: Tue Nov 19 03:25:54 +14 2024 +I: pbuilder-time-stamp: 1731936354 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -31,54 +31,86 @@ dpkg-source: info: applying doxygen-1.9.8.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/103243/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Nov 18 13:26 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='dd32d6c296a54e31a0777a57ff0fc396' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='103243' - PS1='# ' - PS2='> ' + INVOCATION_ID=6054bc43ad3e40138f4b7b3ae5f98fe1 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3300 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.rqTA7jSa/pbuilderrc_Q0ny --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.rqTA7jSa/b1 --logfile b1/build.log analizo_1.25.5-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.rqTA7jSa/pbuilderrc_uDtK --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.rqTA7jSa/b2 --logfile b2/build.log analizo_1.25.5-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos6-i386 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/103243/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -405,7 +437,7 @@ Get: 223 http://deb.debian.org/debian unstable/main i386 libzmq5 i386 4.3.5-1+b3 [308 kB] Get: 224 http://deb.debian.org/debian unstable/main i386 libzmq3-dev i386 4.3.5-1+b3 [539 kB] Get: 225 http://deb.debian.org/debian unstable/main i386 libzmq-ffi-perl all 1.19-1 [31.5 kB] -Fetched 127 MB in 2s (56.3 MB/s) +Fetched 127 MB in 3s (43.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package netbase. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19952 files and directories currently installed.) @@ -1327,7 +1359,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/analizo-1.25.5/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../analizo_1.25.5-1_source.changes +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/analizo-1.25.5/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../analizo_1.25.5-1_source.changes dpkg-buildpackage: info: source package analizo dpkg-buildpackage: info: source version 1.25.5-1 dpkg-buildpackage: info: source distribution unstable @@ -1352,74 +1388,74 @@ Writing Makefile for Analizo Writing MYMETA.yml and MYMETA.json dh_auto_build - make -j22 + make -j10 make[1]: Entering directory '/build/reproducible-path/analizo-1.25.5' -cp share/README blib/lib/auto/share/dist/Analizo/README cp share/bash-completion/analizo blib/lib/auto/share/dist/Analizo/bash-completion/analizo -cp lib/Analizo/Extractor.pm blib/lib/Analizo/Extractor.pm -cp lib/Analizo/Extractor/Doxyparse.pm blib/lib/Analizo/Extractor/Doxyparse.pm -cp lib/Analizo/FilenameFilter.pm blib/lib/Analizo/FilenameFilter.pm -cp lib/Analizo/Command/metrics_batch.pm blib/lib/Analizo/Command/metrics_batch.pm -cp lib/Analizo/GlobalMetric/TotalAbstractClasses.pm blib/lib/Analizo/GlobalMetric/TotalAbstractClasses.pm -cp lib/Analizo/Batch/Output/DB.pm blib/lib/Analizo/Batch/Output/DB.pm +cp share/README blib/lib/auto/share/dist/Analizo/README cp lib/Analizo/LanguageFilter.pm blib/lib/Analizo/LanguageFilter.pm -cp lib/Analizo/Command/metrics.pm blib/lib/Analizo/Command/metrics.pm -cp lib/Analizo/Metric/AfferentConnections.pm blib/lib/Analizo/Metric/AfferentConnections.pm +cp lib/Analizo/GlobalMetric/MethodsPerAbstractClass.pm blib/lib/Analizo/GlobalMetric/MethodsPerAbstractClass.pm +cp lib/Analizo/Batch/Directories.pm blib/lib/Analizo/Batch/Directories.pm +cp lib/Analizo/Batch/Output/CSV.pm blib/lib/Analizo/Batch/Output/CSV.pm +cp lib/Analizo/Command/files_graph.pm blib/lib/Analizo/Command/files_graph.pm +cp lib/Analizo/Command.pm blib/lib/Analizo/Command.pm +cp lib/Analizo/GlobalMetric/TotalAbstractClasses.pm blib/lib/Analizo/GlobalMetric/TotalAbstractClasses.pm +cp lib/Analizo/Command/metrics_batch.pm blib/lib/Analizo/Command/metrics_batch.pm +cp lib/Analizo/GlobalMetrics.pm blib/lib/Analizo/GlobalMetrics.pm cp lib/Analizo/Batch/Runner.pm blib/lib/Analizo/Batch/Runner.pm -cp lib/Analizo/Batch/Git.pm blib/lib/Analizo/Batch/Git.pm -cp lib/Analizo/Batch/Job.pm blib/lib/Analizo/Batch/Job.pm -cp lib/Analizo/Filter/Client.pm blib/lib/Analizo/Filter/Client.pm -cp lib/Analizo/Batch/Job/Directories.pm blib/lib/Analizo/Batch/Job/Directories.pm -cp lib/Analizo/Batch/Output.pm blib/lib/Analizo/Batch/Output.pm -cp lib/Analizo/Command/tree_evolution.pm blib/lib/Analizo/Command/tree_evolution.pm -cp lib/Analizo/Command/help.pm blib/lib/Analizo/Command/help.pm -cp lib/Analizo/Batch/Job/Git.pm blib/lib/Analizo/Batch/Job/Git.pm -cp lib/Analizo/Batch/Runner/Parallel.pm blib/lib/Analizo/Batch/Runner/Parallel.pm -cp lib/Analizo/Metric/AverageMethodLinesOfCode.pm blib/lib/Analizo/Metric/AverageMethodLinesOfCode.pm -cp lib/Analizo/Batch.pm blib/lib/Analizo/Batch.pm cp lib/Analizo/GlobalMetric/ChangeCost.pm blib/lib/Analizo/GlobalMetric/ChangeCost.pm -cp lib/Analizo/GlobalMetrics.pm blib/lib/Analizo/GlobalMetrics.pm +cp lib/Analizo/Batch/Git.pm blib/lib/Analizo/Batch/Git.pm cp lib/Analizo/Metric/AverageCycloComplexity.pm blib/lib/Analizo/Metric/AverageCycloComplexity.pm -cp lib/Analizo/Metric/AverageNumberOfParameters.pm blib/lib/Analizo/Metric/AverageNumberOfParameters.pm +cp lib/Analizo/Command/help.pm blib/lib/Analizo/Command/help.pm +cp lib/Analizo/Batch/Output.pm blib/lib/Analizo/Batch/Output.pm +cp lib/Analizo/FilenameFilter.pm blib/lib/Analizo/FilenameFilter.pm cp lib/Analizo/Batch/Runner/Sequential.pm blib/lib/Analizo/Batch/Runner/Sequential.pm cp lib/Analizo/Command/metrics_history.pm blib/lib/Analizo/Command/metrics_history.pm -cp lib/Analizo/GlobalMetric/MethodsPerAbstractClass.pm blib/lib/Analizo/GlobalMetric/MethodsPerAbstractClass.pm -cp lib/Analizo/Command/graph.pm blib/lib/Analizo/Command/graph.pm -cp lib/Analizo/Batch/Directories.pm blib/lib/Analizo/Batch/Directories.pm -cp lib/Analizo/Command.pm blib/lib/Analizo/Command.pm +cp lib/Analizo/Filter/Client.pm blib/lib/Analizo/Filter/Client.pm +cp lib/Analizo/Extractor/Doxyparse.pm blib/lib/Analizo/Extractor/Doxyparse.pm cp lib/Analizo.pm blib/lib/Analizo.pm -cp lib/Analizo/Batch/Output/CSV.pm blib/lib/Analizo/Batch/Output/CSV.pm -cp lib/Analizo/Command/files_graph.pm blib/lib/Analizo/Command/files_graph.pm +cp lib/Analizo/Metric/AfferentConnections.pm blib/lib/Analizo/Metric/AfferentConnections.pm +cp lib/Analizo/Batch/Output/DB.pm blib/lib/Analizo/Batch/Output/DB.pm +cp lib/Analizo/Command/metrics.pm blib/lib/Analizo/Command/metrics.pm +cp lib/Analizo/Batch/Job/Directories.pm blib/lib/Analizo/Batch/Job/Directories.pm +cp lib/Analizo/Batch.pm blib/lib/Analizo/Batch.pm +cp lib/Analizo/Metric/AverageMethodLinesOfCode.pm blib/lib/Analizo/Metric/AverageMethodLinesOfCode.pm +cp lib/Analizo/Command/graph.pm blib/lib/Analizo/Command/graph.pm +cp lib/Analizo/Command/tree_evolution.pm blib/lib/Analizo/Command/tree_evolution.pm +cp lib/Analizo/Batch/Job.pm blib/lib/Analizo/Batch/Job.pm +cp lib/Analizo/Metric/AverageNumberOfParameters.pm blib/lib/Analizo/Metric/AverageNumberOfParameters.pm +cp lib/Analizo/Batch/Runner/Parallel.pm blib/lib/Analizo/Batch/Runner/Parallel.pm +cp lib/Analizo/Batch/Job/Git.pm blib/lib/Analizo/Batch/Job/Git.pm +cp lib/Analizo/Extractor.pm blib/lib/Analizo/Extractor.pm +cp lib/Analizo/Metric/DepthOfInheritanceTree.pm blib/lib/Analizo/Metric/DepthOfInheritanceTree.pm +cp lib/Analizo/Metric/MaximumMethodLinesOfCode.pm blib/lib/Analizo/Metric/MaximumMethodLinesOfCode.pm +cp lib/Analizo/Metrics.pm blib/lib/Analizo/Metrics.pm +cp lib/Analizo/Metric/CouplingBetweenObjects.pm blib/lib/Analizo/Metric/CouplingBetweenObjects.pm +cp profile.pl blib/lib/profile.pl +cp lib/Analizo/Metric/StructuralComplexity.pm blib/lib/Analizo/Metric/StructuralComplexity.pm +cp lib/Analizo/Metric/NumberOfMethods.pm blib/lib/Analizo/Metric/NumberOfMethods.pm +cp lib/Test/Analizo/BDD/Cucumber/Extension.pm blib/lib/Test/Analizo/BDD/Cucumber/Extension.pm cp lib/Test/Analizo/Git.pm blib/lib/Test/Analizo/Git.pm cp lib/Analizo/Metric/NumberOfPublicMethods.pm blib/lib/Analizo/Metric/NumberOfPublicMethods.pm -cp lib/Analizo/Metric/NumberOfMethods.pm blib/lib/Analizo/Metric/NumberOfMethods.pm -cp lib/Analizo/ModuleMetric.pm blib/lib/Analizo/ModuleMetric.pm -cp lib/Analizo/Metric/LinesOfCode.pm blib/lib/Analizo/Metric/LinesOfCode.pm -cp lib/Analizo/Metric/StructuralComplexity.pm blib/lib/Analizo/Metric/StructuralComplexity.pm -cp lib/Analizo/Metric/NumberOfPublicAttributes.pm blib/lib/Analizo/Metric/NumberOfPublicAttributes.pm -cp profile.pl blib/lib/profile.pl cp lib/Analizo/Metric/NumberOfAttributes.pm blib/lib/Analizo/Metric/NumberOfAttributes.pm -cp lib/Test/Analizo/Class.pm blib/lib/Test/Analizo/Class.pm -cp lib/Analizo/ModuleMetrics.pm blib/lib/Analizo/ModuleMetrics.pm -cp lib/Analizo/Model.pm blib/lib/Analizo/Model.pm +cp lib/Analizo/Metric/NumberOfPublicAttributes.pm blib/lib/Analizo/Metric/NumberOfPublicAttributes.pm cp lib/Analizo/Metric/LackOfCohesionOfMethods.pm blib/lib/Analizo/Metric/LackOfCohesionOfMethods.pm -cp lib/Analizo/Metric/DepthOfInheritanceTree.pm blib/lib/Analizo/Metric/DepthOfInheritanceTree.pm -cp lib/Test/Analizo/BDD/Cucumber/Extension.pm blib/lib/Test/Analizo/BDD/Cucumber/Extension.pm -cp lib/Analizo/Metrics.pm blib/lib/Analizo/Metrics.pm cp lib/Analizo/Metric/NumberOfChildren.pm blib/lib/Analizo/Metric/NumberOfChildren.pm -cp lib/Analizo/Metric/MaximumMethodLinesOfCode.pm blib/lib/Analizo/Metric/MaximumMethodLinesOfCode.pm +cp lib/Analizo/Metric/LinesOfCode.pm blib/lib/Analizo/Metric/LinesOfCode.pm +cp lib/Analizo/ModuleMetric.pm blib/lib/Analizo/ModuleMetric.pm cp lib/Test/Analizo.pm blib/lib/Test/Analizo.pm +cp lib/Test/Analizo/Class.pm blib/lib/Test/Analizo/Class.pm +cp lib/Analizo/ModuleMetrics.pm blib/lib/Analizo/ModuleMetrics.pm +cp lib/Analizo/Model.pm blib/lib/Analizo/Model.pm cp lib/Analizo/Metric/ResponseForClass.pm blib/lib/Analizo/Metric/ResponseForClass.pm -cp lib/Analizo/Metric/CouplingBetweenObjects.pm blib/lib/Analizo/Metric/CouplingBetweenObjects.pm cp bin/analizo blib/script/analizo "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/analizo Manifying 26 pod documents make[1]: Leaving directory '/build/reproducible-path/analizo-1.25.5' dh_auto_test - make -j22 test TEST_VERBOSE=1 + make -j10 test TEST_VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/analizo-1.25.5' -Skip blib/lib/auto/share/dist/Analizo/README (unchanged) Skip blib/lib/auto/share/dist/Analizo/bash-completion/analizo (unchanged) +Skip blib/lib/auto/share/dist/Analizo/README (unchanged) PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/Analizo/*.t t/Analizo/Batch/*.t t/Analizo/Batch/Job/*.t t/Analizo/Batch/Output/*.t t/Analizo/Batch/Runner/*.t t/Analizo/Command/*.t t/Analizo/Extractor/*.t t/Analizo/GlobalMetric/*.t t/Analizo/Metric/*.t t/Analizo/Metric/AfferentConnections/*.t # # t::Analizo->constructor @@ -1503,8 +1539,8 @@ ok 8 - must not analyze commit containing only (prog.cc) ok 9 - must not analyze commit containing only (prog.cc) ok 10 - must not analyze commit containing only (prog.cc) -ok 11 - must not analyze commit containing only (output.h,output.cc,prog.cc) -ok 12 - must not analyze commit containing only (input.h,input.cc,prog.cc) +ok 11 - must not analyze commit containing only (prog.cc,output.cc,output.h) +ok 12 - must not analyze commit containing only (input.h,prog.cc,input.cc) ok 13 - must not analyze commit containing only (prog.cc) ok 14 - find commit ok 15 - An object of class 'Analizo::Batch::Job::Git' isa 'Analizo::Batch::Job::Git' @@ -2832,2316 +2868,2316 @@ t/author-pod-spell.t ..................................................... skipped: these tests are for testing by the author t/author-pod-syntax.t .................................................... skipped: these tests are for testing by the author t/features.t ............................................................. -# Feature analizo wrapper script -# Scenario invoking a tool -ok 1 - When I run "analizo metrics lib t" +# Feature storing VCS data in a database +# As a software engineering researcher I want to store data about the changes in a project So that I can analyze the development process +# Scenario basics +ok 1 - When I explode t/samples/evolution.tar.gz # -ok 2 - Then analizo must emit a warning matching "Usage:" +ok 2 - And I run "analizo metrics-history -f db -o data.db" # -ok 3 - And analizo must emit a warning matching "analizo.metrics" +ok 3 - Then the exit status must be 0 # -ok 4 - And the exit status must not be 0 +ok 4 - When I run "select * from modules" on database "data.db" # -# Scenario must not pass --version ahead -ok 5 - When I run "analizo metrics --version" +ok 5 - Then the output must match "Input" # -ok 6 - Then analizo must emit a warning matching "Invalid option: --version" +ok 6 - And the output must match "Output" # -ok 7 - And the exit status must not be 0 +ok 7 - And the output must match "prog" # -# Scenario display help -ok 8 - When I run "analizo --help" +# Feature exclude directories from the analysis +# As a software developer in a large project I want to exclude some directories from the source code analysis In order to not analyse non-production code such as tests +# Scenario excluding test directory +ok 8 - Given I am in t/samples/multidir/cpp # -ok 9 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo\s" +ok 9 - When I run "analizo metrics --exclude test ." # -ok 10 - And the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo\s" +ok 10 - Then the output must match "module: HelloWorld" # -ok 11 - And the exit status must be 0 +ok 11 - And the output must not match "module: hello_test" # -# Scenario display version -ok 12 - When I run "analizo --version" +# Scenario excluding test directory +ok 12 - Given I am in t/samples/multidir/csharp # -ok 13 - Then the output must match "^analizo version [0-9]+.[0-9]+.[0-9]+" +ok 13 - When I run "analizo metrics --exclude test ." # -ok 14 - And the exit status must be 0 +ok 14 - Then the output must match "module: HelloWorld" # -# Scenario invalid option -ok 15 - When I run "analizo --invalid-option" +ok 15 - And the output must not match "module: hello_test" # -ok 16 - Then the output must match "Unrecognized command" +# Scenario excluding a list of directories +ok 16 - Given I am in t/samples/multidir/cpp # -ok 17 - And the exit status must not be 0 +ok 17 - When I run "analizo metrics --exclude test:src ." # -# Feature doxyparse extractor external tool -# As a Analizo developer I want to guarantee that doxyparse deal with any source code To provide reliability for Analizo users -# Scenario don't die parsing MCLinker.cpp from android 5.1.1 -ok 18 - Given I am in t/samples/android-framework/android-5.1.1_r38 +ok 18 - Then the output must not match "module: HelloWorld" # -ok 19 - When I run "analizo metrics ." +ok 19 - And the output must not match "module: hello_test" # -ok 20 - Then the exit status must be 0 +# Scenario excluding a list of directories +ok 20 - Given I am in t/samples/multidir/csharp # -# Scenario don't duplicate YAML keys parsing AudioTrackShared.cpp from android 5.1.1 -ok 21 - Given I am in t/samples/android-framework/android-5.1.1_r38 +ok 21 - When I run "analizo metrics --exclude test:src ." # -ok 22 - When I run "analizo metrics ." +ok 22 - Then the output must not match "module: HelloWorld" # -ok 23 - Then analizo must not emit a warning matching "YAML_LOAD_WARN_DUPLICATE_KEY" +ok 23 - And the output must not match "module: hello_test" # -# Scenario don't abort parsing mlpack 3.0.0 -ok 24 - Given I am in t/samples/mlpack-3.0.0 +# Scenario excluding src directory +ok 24 - Given I am in t/samples/multidir/cpp # -ok 25 - When I run "analizo metrics ." +ok 25 - When I run "analizo metrics --exclude src ." # -ok 26 - Then analizo must not emit a warning matching "Aborted" +ok 26 - Then the output must match "module: hello_test" # -ok 27 - And the exit status must be 0 +ok 27 - And the output must not match "module: HelloWorld" # -# Scenario don't die parsing kdelibs warning about unknown escape character -ok 28 - Given I am in t/samples/kdelibs +# Scenario excluding src directory +ok 28 - Given I am in t/samples/multidir/csharp # -ok 29 - When I run "analizo metrics ." +ok 29 - When I run "analizo metrics --exclude src ." # -ok 30 - Then analizo must not emit a warning matching "Error" +ok 30 - Then the output must match "module: hello_test" # -ok 31 - And the exit status must be 0 +ok 31 - And the output must not match "module: HelloWorld" # -# Scenario don't die parsing mod_suexec.h from http 2.4.38 -ok 32 - Given I am in t/samples/httpd-2.4.38 +# Feature metrics batch +# As a software engineering researcher I want to analyze several different projects So I can compare their metrics +# Scenario "hello, world" +ok 32 - Given I am in t/samples/hello_world/ # -ok 33 - When I run "analizo metrics ." +ok 33 - When I run "analizo metrics-batch" # -ok 34 - Then analizo must not emit a warning matching "Not a HASH reference" +ok 34 - Then the output must match "I: Processed c." # -ok 35 - And the exit status must be 0 +ok 35 - And the output must match "I: Processed cpp." # -# Scenario allow dot on module filename -ok 36 - Given I am in t/samples/sample_basic/c +ok 36 - And the output must match "I: Processed java." # -ok 37 - When I run "analizo metrics ." +# Scenario summarizing +ok 37 - Given I am in t/samples/hello_world/ # -ok 38 - Then analizo must report that file module1.c declares module module1 +ok 38 - When I run "analizo metrics-batch --quiet -o data.csv && cat data.csv && rm -f *.csv" # -# Feature storing VCS data in a database -# As a software engineering researcher I want to store data about the changes in a project So that I can analyze the development process -# Scenario basics -ok 39 - When I explode t/samples/evolution.tar.gz +ok 39 - Then the output must match "^id," # -ok 40 - And I run "analizo metrics-history -f db -o data.db" +ok 40 - And the output must not match ",---," # -ok 41 - Then the exit status must be 0 +ok 41 - And the output must match "c," # -ok 42 - When I run "select * from modules" on database "data.db" +ok 42 - And the output must match "cpp," # -ok 43 - Then the output must match "Input" +ok 43 - And the output must match "java," # -ok 44 - And the output must match "Output" +ok 44 - And the output must not match "I: Processed" # -ok 45 - And the output must match "prog" +# Scenario support for parallel processing +ok 45 - Given I copy t/samples/hello_world/* into a temporary directory # -# Feature analizo metrics-history -# As a software engineering researcher I want to analyse the entire history of a project To understand its development process -# Scenario listing merge commits with code changes that should be analyzed -ok 46 - When I explode t/samples/evolution.tar.gz +ok 46 - When I run "analizo metrics-batch -q -o sequential.csv" # -ok 47 - And I run "analizo metrics-history --list ." +ok 47 - And I run "analizo metrics-batch -q -o parallel.csv -p 2" # -ok 48 - Then the output must match "0a06a6fcc2e7b4fe56d134e89d74ad028bb122ed" +ok 48 - And I run "sort sequential.csv > sequential-sorted.csv" # -ok 49 - And the output must match "eb67c27055293e835049b58d7d73ce3664d3f90e" +ok 49 - And I run "sort parallel.csv > parallel-sorted.csv" # -ok 50 - And the output must match "aa2d0fcb7879485d5ff1cd189743f91f04bea8ce" +ok 50 - And I run "diff -u sequential-sorted.csv parallel-sorted.csv" # -ok 51 - And the output must match "e8faf88f0e20a193d700b6c68eeb31897dd85e53" +ok 51 - Then the output must not match "---" # -ok 52 - And the output must match "d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00" +ok 52 - Then the exit status must be 0 # -ok 53 - And the output must match "0d3c023120ad4e9f519a03fff275d048c52671ad" +# Scenario passing two input directories as argument +ok 53 - Given I copy t/samples/hello_world/* into a temporary directory # -# Scenario non-code commits should not be analyzed -ok 54 - When I explode t/samples/evolution.tar.gz +ok 54 - When I run "analizo metrics-batch --quiet -o data.csv cpp java" # -ok 55 - And I run "analizo metrics-history --list ." +ok 55 - Then the exit status must be 0 # -ok 56 - Then the output must not match "ba62278e976944c0334103aa0044535169e1a51e" +ok 56 - And the file "c-details.csv" should not exist # -# Scenario merge commits without code change should not be analyzed -ok 57 - When I explode t/samples/evolution.tar.gz +ok 57 - And the file "cpp-details.csv" should exist # -ok 58 - And I run "analizo metrics-history --list ." +ok 58 - And the file "java-details.csv" should exist # -ok 59 - Then the output must not match "0fdaaa7dcc8073332a957024fafc8c98f165e725" +# Scenario passing one input directory as argument +ok 59 - Given I copy t/samples/hello_world/* into a temporary directory # -# Scenario actually processing merge commits -ok 60 - When I explode t/samples/evolution.tar.gz +ok 60 - When I run "analizo metrics-batch --quiet -o data.csv cpp" # -ok 61 - And I run "analizo metrics-history -o metrics.csv . && cat metrics.csv" +ok 61 - Then the exit status must be 0 # -ok 62 - Then the output must match "^id,previous_commit_id,author_date,author_name,author_email,.*,sc_mean" +ok 62 - And the file "c-details.csv" should not exist # -ok 63 - And the output must match "0a06a6fcc2e7b4fe56d134e89d74ad028bb122ed,eb67c27055293e835049b58d7d73ce3664d3f90e" +ok 63 - And the file "cpp-details.csv" should exist # -ok 64 - And the output must match "eb67c27055293e835049b58d7d73ce3664d3f90e,," +ok 64 - And the file "java-details.csv" should not exist # -ok 65 - And the output must match "aa2d0fcb7879485d5ff1cd189743f91f04bea8ce,d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00" +# 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 +ok 65 - Given I am in t/samples/hello_world/c # -ok 66 - And the output must match "e8faf88f0e20a193d700b6c68eeb31897dd85e53,d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00" +ok 66 - When I run "analizo graph --modules ." # -ok 67 - And the output must match "d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00,0d3c023120ad4e9f519a03fff275d048c52671ad" +ok 67 - Then analizo must report that "main" depends on "hello_world" # -# Scenario actually processing initial commit and first commit after a non-relevant merge -ok 68 - When I explode t/samples/evolution.tar.gz +# Scenario dependency between modules +ok 68 - Given I am in t/samples/hello_world/cpp # -ok 69 - And I run "analizo metrics-history -o metrics.csv . && cat metrics.csv" +ok 69 - When I run "analizo graph --modules ." # -ok 70 - Then the output must match "0d3c023120ad4e9f519a03fff275d048c52671ad,," +ok 70 - Then analizo must report that "main" depends on "HelloWorld" # -ok 71 - And the output must match "8183eafad3a0f3eff6e8869f1bdbfd255e86825a,0a06a6fcc2e7b4fe56d134e89d74ad028bb122ed" +# Scenario dependency between modules +ok 71 - Given I am in t/samples/hello_world/java # -# Scenario support for parallel processing -ok 72 - Given I copy t/samples/evolution.tar.gz into a temporary directory +ok 72 - When I run "analizo graph --modules ." # -ok 73 - When I run "tar xzf evolution.tar.gz" +ok 73 - Then analizo must report that "Main" depends on "HelloWorld" # -ok 74 - And I run "cd evolution && analizo metrics-history -o ../sequential.csv" +# Scenario dependency between modules +ok 74 - Given I am in t/samples/hello_world/csharp # -ok 75 - And I run "cd evolution && analizo metrics-history -p 2 -o ../parallel.csv" +ok 75 - When I run "analizo graph --modules ." # -ok 76 - Then the exit status must be 0 +ok 76 - Then analizo must report that "main" depends on "HelloWorld" # -ok 77 - When I run "sort sequential.csv > sequential-sorted.csv" +# Scenario dependency between specific functions +ok 77 - Given I am in t/samples/hello_world/c # -ok 78 - And I run "sort parallel.csv > parallel-sorted.csv" +ok 78 - When I run "analizo graph ." # -ok 79 - And I run "diff -u sequential-sorted.csv parallel-sorted.csv" +ok 79 - Then analizo must report that "main::main()" depends on "hello_world::hello_world_say(hello_world *)" # -ok 80 - Then the output must not match "---" +ok 80 - And analizo must report that "main::main()" depends on "hello_world::hello_world_destroy(hello_world *)" # -ok 81 - And the exit status must be 0 +# Scenario dependency between specific functions +ok 81 - Given I am in t/samples/hello_world/cpp # -# Scenario parsing git log format containing renamed files among status of changed files -ok 82 - Given I copy t/samples/evolution.tar.gz into a temporary directory +ok 82 - When I run "analizo graph ." # -ok 83 - When I run "tar xzf evolution.tar.gz" +ok 83 - Then analizo must report that "main::main()" depends on "HelloWorld::say()" # -ok 84 - And I run "cd evolution && git checkout doc && analizo metrics-history ." +ok 84 - And analizo must report that "main::main()" depends on "HelloWorld::destroy()" # -ok 85 - Then the exit status must be 0 +# Scenario dependency between specific functions +ok 85 - Given I am in t/samples/hello_world/java # -# Scenario language filters -ok 86 - Given I copy t/samples/mixed into a temporary directory +ok 86 - When I run "analizo graph ." # -ok 87 - When I run "(cd mixed && git init && git add * && git commit -m 'initial commit')" +ok 87 - Then analizo must report that "Main::main(String[])" depends on "HelloWorld::say()" # -ok 88 - And I run "analizo metrics-history --language java mixed" +ok 88 - And analizo must report that "Main::main(String[])" depends on "HelloWorld::destroy()" # -ok 89 - Then the output must not match "native_backend.c" +# Scenario dependency between specific functions +ok 89 - Given I am in t/samples/hello_world/csharp # -# Feature metrics batch -# As a software engineering researcher I want to analyze several different projects So I can compare their metrics -# Scenario "hello, world" -ok 90 - Given I am in t/samples/hello_world/ +ok 90 - When I run "analizo graph ." # -ok 91 - When I run "analizo metrics-batch" +ok 91 - Then analizo must report that "main::Main()" depends on "HelloWorld::say()" # -ok 92 - Then the output must match "I: Processed c." +ok 92 - And analizo must report that "main::Main()" depends on "HelloWorld::destroy()" # -ok 93 - And the output must match "I: Processed cpp." +# Scenario intra-module dependencies +ok 93 - Given I am in t/samples/hello_world/c # -ok 94 - And the output must match "I: Processed java." +ok 94 - When I run "analizo graph ." # -# Scenario summarizing -ok 95 - Given I am in t/samples/hello_world/ +ok 95 - Then analizo must report that "hello_world::hello_world_say(hello_world *)" depends on "hello_world::_hello_world::id" # -ok 96 - When I run "analizo metrics-batch --quiet -o data.csv && cat data.csv && rm -f *.csv" +ok 96 - And analizo must report that "hello_world::hello_world_destroy(hello_world *)" depends on "hello_world::_hello_world::id" # -ok 97 - Then the output must match "^id," +# Scenario intra-module dependencies +ok 97 - Given I am in t/samples/hello_world/cpp # -ok 98 - And the output must not match ",---," +ok 98 - When I run "analizo graph ." # -ok 99 - And the output must match "c," +ok 99 - Then analizo must report that "HelloWorld::say()" depends on "HelloWorld::_id" # -ok 100 - And the output must match "cpp," +ok 100 - And analizo must report that "HelloWorld::destroy()" depends on "HelloWorld::_id" # -ok 101 - And the output must match "java," +# Scenario intra-module dependencies +ok 101 - Given I am in t/samples/hello_world/java # -ok 102 - And the output must not match "I: Processed" +ok 102 - When I run "analizo graph ." # -# Scenario support for parallel processing -ok 103 - Given I copy t/samples/hello_world/* into a temporary directory +ok 103 - Then analizo must report that "HelloWorld::say()" depends on "HelloWorld::_id" # -ok 104 - When I run "analizo metrics-batch -q -o sequential.csv" +ok 104 - And analizo must report that "HelloWorld::destroy()" depends on "HelloWorld::_id" # -ok 105 - And I run "analizo metrics-batch -q -o parallel.csv -p 2" +# Scenario intra-module dependencies +ok 105 - Given I am in t/samples/hello_world/csharp # -ok 106 - And I run "sort sequential.csv > sequential-sorted.csv" +ok 106 - When I run "analizo graph ." # -ok 107 - And I run "sort parallel.csv > parallel-sorted.csv" +ok 107 - Then analizo must report that "HelloWorld::say()" depends on "HelloWorld::_id" # -ok 108 - And I run "diff -u sequential-sorted.csv parallel-sorted.csv" +ok 108 - And analizo must report that "HelloWorld::destroy()" depends on "HelloWorld::_id" # -ok 109 - Then the output must not match "---" +# Scenario some metrics +ok 109 - Given I am in t/samples/hello_world/c # -ok 110 - Then the exit status must be 0 +ok 110 - When I run "analizo metrics ." # -# Scenario passing two input directories as argument -ok 111 - Given I copy t/samples/hello_world/* into a temporary directory +ok 111 - Then analizo must report that the project has total_modules = 2 # -ok 112 - When I run "analizo metrics-batch --quiet -o data.csv cpp java" +ok 112 - And analizo must report that module main has nom = 1 # -ok 113 - Then the exit status must be 0 +ok 113 - And analizo must report that module hello_world has npm = 3 # -ok 114 - And the file "c-details.csv" should not exist +ok 114 - And analizo must report that module hello_world has nom = 3 # -ok 115 - And the file "cpp-details.csv" should exist +ok 115 - And analizo must report that module hello_world has npa = 2 # -ok 116 - And the file "java-details.csv" should exist +# Scenario some metrics +ok 116 - Given I am in t/samples/hello_world/cpp # -# Scenario passing one input directory as argument -ok 117 - Given I copy t/samples/hello_world/* into a temporary directory +ok 117 - When I run "analizo metrics ." # -ok 118 - When I run "analizo metrics-batch --quiet -o data.csv cpp" +ok 118 - Then analizo must report that the project has total_modules = 2 # -ok 119 - Then the exit status must be 0 +ok 119 - And analizo must report that module main has nom = 1 # -ok 120 - And the file "c-details.csv" should not exist +ok 120 - And analizo must report that module HelloWorld has npm = 3 # -ok 121 - And the file "cpp-details.csv" should exist +ok 121 - And analizo must report that module HelloWorld has nom = 4 # -ok 122 - And the file "java-details.csv" should not exist +ok 122 - And analizo must report that module HelloWorld has npa = 1 # -# Feature dependency graph among files -# As a software engineering reasearcher I want to know the all relationships between all files on project So that I can run analizo files-graph to produces a DOT graph from source-code -# Scenario relation between function call -ok 123 - Given I am in t/samples/animals/cpp +# Scenario some metrics +ok 123 - Given I am in t/samples/hello_world/java # -ok 124 - When I run "analizo files-graph ." +ok 124 - When I run "analizo metrics ." # -ok 125 - Then analizo must report that "main" depends on "animal" +ok 125 - Then analizo must report that the project has total_modules = 2 # -# Scenario relation between function call -ok 126 - Given I am in t/samples/animals/java +ok 126 - And analizo must report that module Main has nom = 1 # -ok 127 - When I run "analizo files-graph ." +ok 127 - And analizo must report that module HelloWorld has npm = 3 # -ok 128 - Then analizo must report that "Main" depends on "Animal" +ok 128 - And analizo must report that module HelloWorld has nom = 4 # -# Scenario relation between function call -ok 129 - Given I am in t/samples/animals/csharp +ok 129 - And analizo must report that module HelloWorld has npa = 1 # -ok 130 - When I run "analizo files-graph ." +# Scenario some metrics +ok 130 - Given I am in t/samples/hello_world/csharp # -ok 131 - Then analizo must report that "Main" depends on "Animal" +ok 131 - When I run "analizo metrics ." # -# Scenario relation between inheritance -ok 132 - Given I am in t/samples/animals/cpp +ok 132 - Then analizo must report that the project has total_modules = 2 # -ok 133 - When I run "analizo files-graph ." +ok 133 - And analizo must report that module main has nom = 1 # -ok 134 - Then analizo must report that "dog" depends on "mammal" +ok 134 - And analizo must report that module HelloWorld has npm = 3 # -# Scenario relation between inheritance -ok 135 - Given I am in t/samples/animals/java +ok 135 - And analizo must report that module HelloWorld has nom = 4 # -ok 136 - When I run "analizo files-graph ." +ok 136 - And analizo must report that module HelloWorld has npa = 1 # -ok 137 - Then analizo must report that "Dog" depends on "Mammal" +# Scenario inheritance data +ok 137 - Given I am in t/samples/animals/cpp # -# Scenario relation between inheritance -ok 138 - Given I am in t/samples/animals/csharp +ok 138 - When I run "analizo graph --modules ." # -ok 139 - When I run "analizo files-graph ." +ok 139 - Then analizo must report that "Cat" depends on "Mammal" # -ok 140 - Then analizo must report that "Dog" depends on "Mammal" +ok 140 - And analizo must report that "Dog" depends on "Mammal" # -# Scenario relation between inheritance -ok 141 - Given I am in t/samples/animals/cpp +ok 141 - And analizo must report that "Mammal" depends on "Animal" # -ok 142 - When I run "analizo files-graph ." +ok 142 - When I run "analizo metrics ." # -ok 143 - Then analizo must report that "mammal" depends on "animal" +ok 143 - Then analizo must report that module Cat has dit = 2 # -# Scenario relation between inheritance -ok 144 - Given I am in t/samples/animals/java +ok 144 - And analizo must report that module Dog has dit = 2 # -ok 145 - When I run "analizo files-graph ." +ok 145 - And analizo must report that module Mammal has dit = 1 # -ok 146 - Then analizo must report that "Mammal" depends on "Animal" +ok 146 - And analizo must report that module Animal has dit = 0 # -# Scenario relation between inheritance -ok 147 - Given I am in t/samples/animals/csharp +# Scenario inheritance data +ok 147 - Given I am in t/samples/animals/java # -ok 148 - When I run "analizo files-graph ." +ok 148 - When I run "analizo graph --modules ." # -ok 149 - Then analizo must report that "Mammal" depends on "Animal" +ok 149 - Then analizo must report that "Cat" depends on "Mammal" # -# Feature loading command line options from .analizo -# As a analizo user I want to store command line options in a file called .analizo inside my project So that I don't need to alway pass all those options on the command line -# Scenario analizo metrics -ok 150 - Given I copy t/samples/mixed into a temporary directory +ok 150 - And analizo must report that "Dog" depends on "Mammal" +# +ok 151 - And analizo must report that "Mammal" depends on "Animal" # -ok 151 - And I create a file called .analizo with the following content -# """metrics: --language java""" ok 152 - When I run "analizo metrics ." # -ok 153 - Then the output must not match "native_backend.c" +ok 153 - Then analizo must report that module Cat has dit = 2 # -ok 154 - And the output must match "UI.java" +ok 154 - And analizo must report that module Dog has dit = 2 # -ok 155 - And the exit status must be 0 +ok 155 - And analizo must report that module Mammal has dit = 1 # -# Scenario all others -ok 156 - Given I change to an empty temporary directory +ok 156 - And analizo must report that module Animal has dit = 0 # -ok 157 - And I create a file called .analizo with the following content -# """: --help""" -ok 158 - When I run "analizo graph" +# Scenario mixed Java and C +ok 157 - Given I am in t/samples/mixed # -ok 159 - Then the output must match "analizo graph is part of the analizo suite." +ok 158 - When I run "analizo metrics ." # -# Scenario all others -ok 160 - Given I change to an empty temporary directory +ok 159 - Then the output must match "_module: native_backend" # -ok 161 - And I create a file called .analizo with the following content -# """: --help""" -ok 162 - When I run "analizo metrics" +ok 160 - And the output must match "_module: UI" # -ok 163 - Then the output must match "analizo metrics is part of the analizo suite." +ok 161 - And the output must match "_module: Backend" # -# Scenario all others -ok 164 - Given I change to an empty temporary directory +# Feature give manpage on --help +# As a user I want to read the manpage when passing --help command line option In order to get instructions on how to use the tools +# Scenario display manpage for `analizo graph` +ok 162 - When I run "analizo graph --help" # -ok 165 - And I create a file called .analizo with the following content -# """: --help""" -ok 166 - When I run "analizo metrics-batch" +ok 163 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-graph" # -ok 167 - Then the output must match "analizo metrics-batch is part of the analizo suite." +ok 164 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo graph \[OPTIONS\]" # -# Scenario all others -ok 168 - Given I change to an empty temporary directory +# Scenario display manpage for `analizo metrics` +ok 165 - When I run "analizo metrics --help" # -ok 169 - And I create a file called .analizo with the following content -# """: --help""" -ok 170 - When I run "analizo metrics-history" +ok 166 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-metrics" # -ok 171 - Then the output must match "analizo metrics-history is part of the analizo suite." +ok 167 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo metrics \[OPTIONS\]" # -# Scenario all others -ok 172 - Given I change to an empty temporary directory +# Scenario display manpage for `analizo metrics-batch` +ok 168 - When I run "analizo metrics-batch --help" # -ok 173 - And I create a file called .analizo with the following content -# """: --help""" -ok 174 - When I run "analizo tree-evolution" +ok 169 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-metrics-batch" # -ok 175 - Then the output must match "analizo tree-evolution is part of the analizo suite." +ok 170 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo metrics-batch \[OPTIONS\]" # -# Scenario all others -ok 176 - Given I change to an empty temporary directory -# -ok 177 - And I create a file called .analizo with the following content -# """: --help""" -ok 178 - When I run "analizo files-graph" +# Scenario display manpage for `analizo metrics-history` +ok 171 - When I run "analizo metrics-history --help" # -ok 179 - Then the output must match "analizo files-graph is part of the analizo suite." +ok 172 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-metrics-history" # -# Scenario all others -ok 180 - Given I change to an empty temporary directory +ok 173 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo metrics-history \[OPTIONS\]" # -ok 181 - And I create a file called .analizo with the following content -# """: --help""" -ok 182 - When I run "analizo help" +# Scenario display manpage for `analizo tree-evolution` +ok 174 - When I run "analizo tree-evolution --help" # -ok 183 - Then the output must match "analizo help is part of the analizo suite." +ok 175 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-tree-evolution" # -# Feature tree evolution -# As a software engineering reasearcher I want to know what directories existed during the project lifetime So that I can analyze only the production code (and not tests etc) -# Scenario sample git repository -ok 184 - When I explode t/samples/tree-evolution.tar.gz +ok 176 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo tree-evolution \[OPTIONS\]" # -ok 185 - And I run "analizo tree-evolution" +# Scenario display manpage for `analizo files-graph` +ok 177 - When I run "analizo files-graph --help" # -ok 186 - Then the output lines must match "\# 073290fbad0254793bd3ecfb97654c04368d0039\\nsrc\\n\#" +ok 178 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-files-graph" # -ok 187 - Then the output lines must match "\# 85f7db08f7b7b0b62e3c0023b2743d529b0d5b4b\\nsrc\\nsrc/input\\n\#" +ok 179 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo files-graph \[OPTIONS\]" # -ok 188 - Then the output lines must match "\# f41cf7d0351e812285efd60c6d957c330b1f61a1\\nsrc\\nsrc/input\\nsrc/output" +# Feature dependency graph among files +# As a software engineering reasearcher I want to know the all relationships between all files on project So that I can run analizo files-graph to produces a DOT graph from source-code +# Scenario relation between function call +ok 180 - Given I am in t/samples/animals/cpp # -# Feature mapping modules to filenames -# As a software engineering resesearcher I want to know in which file each module is declared So that I can compare that with data from the VCS -# Scenario C++, runing against some directory -ok 189 - When I run "analizo metrics t/samples/animals/cpp" +ok 181 - When I run "analizo files-graph ." # -ok 190 - Then analizo must report that file animal.h declares module Animal +ok 182 - Then analizo must report that "main" depends on "animal" # -ok 191 - And analizo must report that file cat.cc declares module Cat +# Scenario relation between function call +ok 183 - Given I am in t/samples/animals/java # -ok 192 - And analizo must report that file cat.h declares module Cat +ok 184 - When I run "analizo files-graph ." # -ok 193 - And analizo must report that file cat.cc not declares module Dog +ok 185 - Then analizo must report that "Main" depends on "Animal" # -ok 194 - And analizo must report that file cat.h not declares module Dog +# Scenario relation between function call +ok 186 - Given I am in t/samples/animals/csharp # -# Scenario C++, running against current directory -ok 195 - Given I am in t/samples/animals/cpp +ok 187 - When I run "analizo files-graph ." # -ok 196 - When I run "analizo metrics ." +ok 188 - Then analizo must report that "Main" depends on "Animal" # -ok 197 - Then analizo must report that file animal.h declares module Animal +# Scenario relation between inheritance +ok 189 - Given I am in t/samples/animals/cpp # -ok 198 - And analizo must report that file cat.cc declares module Cat +ok 190 - When I run "analizo files-graph ." # -ok 199 - And analizo must report that file cat.h declares module Cat +ok 191 - Then analizo must report that "dog" depends on "mammal" # -# Scenario Java -ok 200 - When I run "analizo metrics t/samples/animals/java" +# Scenario relation between inheritance +ok 192 - Given I am in t/samples/animals/java # -ok 201 - Then analizo must report that file Animal.java declares module Animal +ok 193 - When I run "analizo files-graph ." # -# Scenario C -ok 202 - Given I am in t/samples/hello_world/c +ok 194 - Then analizo must report that "Dog" depends on "Mammal" # -ok 203 - When I run "analizo metrics ." +# Scenario relation between inheritance +ok 195 - Given I am in t/samples/animals/csharp # -ok 204 - Then analizo must report that module hello_world has _filename = [hello_world.c,hello_world.h] +ok 196 - When I run "analizo files-graph ." # -ok 205 - And analizo must report that file hello_world.c declares module hello_world +ok 197 - Then analizo must report that "Dog" depends on "Mammal" # -ok 206 - And analizo must report that file hello_world.h declares module hello_world +# Scenario relation between inheritance +ok 198 - Given I am in t/samples/animals/cpp # -# Scenario CSharp hello_world -ok 207 - Given I am in t/samples/hello_world/csharp +ok 199 - When I run "analizo files-graph ." # -ok 208 - When I run "analizo metrics ." +ok 200 - Then analizo must report that "mammal" depends on "animal" # -ok 209 - Then analizo must report that module HelloWorld has _filename = [HelloWorld.cs] +# Scenario relation between inheritance +ok 201 - Given I am in t/samples/animals/java # -# Scenario CSharp polygons -ok 210 - Given I am in t/samples/polygons/csharp +ok 202 - When I run "analizo files-graph ." # -ok 211 - When I run "analizo metrics ." +ok 203 - Then analizo must report that "Mammal" depends on "Animal" # -ok 212 - Then analizo must report that file Polygon.cs declares module Polygon +# Scenario relation between inheritance +ok 204 - Given I am in t/samples/animals/csharp # -ok 213 - And analizo must report that file Rect.cs declares module Rect +ok 205 - When I run "analizo files-graph ." # -ok 214 - And analizo must report that file Triangle.cs declares module Triangle +ok 206 - Then analizo must report that "Mammal" depends on "Animal" # -# Scenario Java Generics WildCard sample -ok 215 - Given I am in t/samples/wildcard +# Feature loading command line options from .analizo +# As a analizo user I want to store command line options in a file called .analizo inside my project So that I don't need to alway pass all those options on the command line +# Scenario analizo metrics +ok 207 - Given I copy t/samples/mixed into a temporary directory # -ok 216 - When I run "analizo metrics ." +ok 208 - And I create a file called .analizo with the following content +# """metrics: --language java""" +ok 209 - When I run "analizo metrics ." # -ok 217 - Then analizo must report that file WildcardClass.java declares module WildcardClass +ok 210 - Then the output must not match "native_backend.c" # -ok 218 - And analizo must report that file GenericClass.java declares module GenericClass +ok 211 - And the output must match "UI.java" # -# Scenario Java Enumeration sample -ok 219 - Given I am in t/samples/enumeration +ok 212 - And the exit status must be 0 # -ok 220 - When I run "analizo metrics ." +# Scenario all others +ok 213 - Given I change to an empty temporary directory # -ok 221 - Then analizo must report that file Main.java declares module Main::MyEnumeration +ok 214 - And I create a file called .analizo with the following content +# """: --help""" +ok 215 - When I run "analizo graph" # -ok 222 - And analizo must report that file Enumeration.java declares module Enumeration +ok 216 - Then the output must match "analizo graph is part of the analizo suite." # -# Feature exclude directories from the analysis -# As a software developer in a large project I want to exclude some directories from the source code analysis In order to not analyse non-production code such as tests -# Scenario excluding test directory -ok 223 - Given I am in t/samples/multidir/cpp +# Scenario all others +ok 217 - Given I change to an empty temporary directory # -ok 224 - When I run "analizo metrics --exclude test ." +ok 218 - And I create a file called .analizo with the following content +# """: --help""" +ok 219 - When I run "analizo metrics" # -ok 225 - Then the output must match "module: HelloWorld" +ok 220 - Then the output must match "analizo metrics is part of the analizo suite." # -ok 226 - And the output must not match "module: hello_test" +# Scenario all others +ok 221 - Given I change to an empty temporary directory # -# Scenario excluding test directory -ok 227 - Given I am in t/samples/multidir/csharp +ok 222 - And I create a file called .analizo with the following content +# """: --help""" +ok 223 - When I run "analizo metrics-batch" # -ok 228 - When I run "analizo metrics --exclude test ." +ok 224 - Then the output must match "analizo metrics-batch is part of the analizo suite." # -ok 229 - Then the output must match "module: HelloWorld" +# Scenario all others +ok 225 - Given I change to an empty temporary directory # -ok 230 - And the output must not match "module: hello_test" +ok 226 - And I create a file called .analizo with the following content +# """: --help""" +ok 227 - When I run "analizo metrics-history" # -# Scenario excluding a list of directories -ok 231 - Given I am in t/samples/multidir/cpp +ok 228 - Then the output must match "analizo metrics-history is part of the analizo suite." # -ok 232 - When I run "analizo metrics --exclude test:src ." +# Scenario all others +ok 229 - Given I change to an empty temporary directory # -ok 233 - Then the output must not match "module: HelloWorld" +ok 230 - And I create a file called .analizo with the following content +# """: --help""" +ok 231 - When I run "analizo tree-evolution" # -ok 234 - And the output must not match "module: hello_test" +ok 232 - Then the output must match "analizo tree-evolution is part of the analizo suite." # -# Scenario excluding a list of directories -ok 235 - Given I am in t/samples/multidir/csharp +# Scenario all others +ok 233 - Given I change to an empty temporary directory # -ok 236 - When I run "analizo metrics --exclude test:src ." +ok 234 - And I create a file called .analizo with the following content +# """: --help""" +ok 235 - When I run "analizo files-graph" # -ok 237 - Then the output must not match "module: HelloWorld" +ok 236 - Then the output must match "analizo files-graph is part of the analizo suite." # -ok 238 - And the output must not match "module: hello_test" +# Scenario all others +ok 237 - Given I change to an empty temporary directory # -# Scenario excluding src directory -ok 239 - Given I am in t/samples/multidir/cpp +ok 238 - And I create a file called .analizo with the following content +# """: --help""" +ok 239 - When I run "analizo help" # -ok 240 - When I run "analizo metrics --exclude src ." +ok 240 - Then the output must match "analizo help is part of the analizo suite." # -ok 241 - Then the output must match "module: hello_test" +# Feature c code with void argument +# As a software engineering reasearcher I want to know the arguments of each function on a project So that I can run analizo metrics calculate number of parameters +# Scenario calculate anpn on function with void argument +ok 241 - Given I am in t/samples/void/ # -ok 242 - And the output must not match "module: HelloWorld" +ok 242 - When I run "analizo metrics ." # -# Scenario excluding src directory -ok 243 - Given I am in t/samples/multidir/csharp +ok 243 - Then analizo must report that module main has anpm = 0 # -ok 244 - When I run "analizo metrics --exclude src ." +# Feature doxyparse extractor external tool +# As a Analizo developer I want to guarantee that doxyparse deal with any source code To provide reliability for Analizo users +# Scenario don't die parsing MCLinker.cpp from android 5.1.1 +ok 244 - Given I am in t/samples/android-framework/android-5.1.1_r38 # -ok 245 - Then the output must match "module: hello_test" +ok 245 - When I run "analizo metrics ." # -ok 246 - And the output must not match "module: HelloWorld" +ok 246 - Then the exit status must be 0 # -# 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 -ok 247 - Given I am in t/samples/hello_world/c +# Scenario don't duplicate YAML keys parsing AudioTrackShared.cpp from android 5.1.1 +ok 247 - Given I am in t/samples/android-framework/android-5.1.1_r38 # -ok 248 - When I run "analizo graph --modules ." +ok 248 - When I run "analizo metrics ." # -ok 249 - Then analizo must report that "main" depends on "hello_world" +ok 249 - Then analizo must not emit a warning matching "YAML_LOAD_WARN_DUPLICATE_KEY" # -# Scenario dependency between modules -ok 250 - Given I am in t/samples/hello_world/cpp +# Scenario don't abort parsing mlpack 3.0.0 +ok 250 - Given I am in t/samples/mlpack-3.0.0 # -ok 251 - When I run "analizo graph --modules ." +ok 251 - When I run "analizo metrics ." # -ok 252 - Then analizo must report that "main" depends on "HelloWorld" +ok 252 - Then analizo must not emit a warning matching "Aborted" # -# Scenario dependency between modules -ok 253 - Given I am in t/samples/hello_world/java +ok 253 - And the exit status must be 0 # -ok 254 - When I run "analizo graph --modules ." +# Scenario don't die parsing kdelibs warning about unknown escape character +ok 254 - Given I am in t/samples/kdelibs # -ok 255 - Then analizo must report that "Main" depends on "HelloWorld" +ok 255 - When I run "analizo metrics ." # -# Scenario dependency between modules -ok 256 - Given I am in t/samples/hello_world/csharp +ok 256 - Then analizo must not emit a warning matching "Error" # -ok 257 - When I run "analizo graph --modules ." +ok 257 - And the exit status must be 0 # -ok 258 - Then analizo must report that "main" depends on "HelloWorld" +# Scenario don't die parsing mod_suexec.h from http 2.4.38 +ok 258 - Given I am in t/samples/httpd-2.4.38 # -# Scenario dependency between specific functions -ok 259 - Given I am in t/samples/hello_world/c +ok 259 - When I run "analizo metrics ." # -ok 260 - When I run "analizo graph ." +ok 260 - Then analizo must not emit a warning matching "Not a HASH reference" # -ok 261 - Then analizo must report that "main::main()" depends on "hello_world::hello_world_say(hello_world *)" +ok 261 - And the exit status must be 0 # -ok 262 - And analizo must report that "main::main()" depends on "hello_world::hello_world_destroy(hello_world *)" +# Scenario allow dot on module filename +ok 262 - Given I am in t/samples/sample_basic/c # -# Scenario dependency between specific functions -ok 263 - Given I am in t/samples/hello_world/cpp +ok 263 - When I run "analizo metrics ." # -ok 264 - When I run "analizo graph ." +ok 264 - Then analizo must report that file module1.c declares module module1 # -ok 265 - Then analizo must report that "main::main()" depends on "HelloWorld::say()" +# Feature tree evolution +# As a software engineering reasearcher I want to know what directories existed during the project lifetime So that I can analyze only the production code (and not tests etc) +# Scenario sample git repository +ok 265 - When I explode t/samples/tree-evolution.tar.gz # -ok 266 - And analizo must report that "main::main()" depends on "HelloWorld::destroy()" +ok 266 - And I run "analizo tree-evolution" # -# Scenario dependency between specific functions -ok 267 - Given I am in t/samples/hello_world/java +ok 267 - Then the output lines must match "\# 073290fbad0254793bd3ecfb97654c04368d0039\\nsrc\\n\#" # -ok 268 - When I run "analizo graph ." +ok 268 - Then the output lines must match "\# 85f7db08f7b7b0b62e3c0023b2743d529b0d5b4b\\nsrc\\nsrc/input\\n\#" # -ok 269 - Then analizo must report that "Main::main(String[])" depends on "HelloWorld::say()" +ok 269 - Then the output lines must match "\# f41cf7d0351e812285efd60c6d957c330b1f61a1\\nsrc\\nsrc/input\\nsrc/output" # -ok 270 - And analizo must report that "Main::main(String[])" depends on "HelloWorld::destroy()" +# Feature analizo metrics-history +# As a software engineering researcher I want to analyse the entire history of a project To understand its development process +# Scenario listing merge commits with code changes that should be analyzed +ok 270 - When I explode t/samples/evolution.tar.gz # -# Scenario dependency between specific functions -ok 271 - Given I am in t/samples/hello_world/csharp +ok 271 - And I run "analizo metrics-history --list ." # -ok 272 - When I run "analizo graph ." +ok 272 - Then the output must match "0a06a6fcc2e7b4fe56d134e89d74ad028bb122ed" # -ok 273 - Then analizo must report that "main::Main()" depends on "HelloWorld::say()" +ok 273 - And the output must match "eb67c27055293e835049b58d7d73ce3664d3f90e" # -ok 274 - And analizo must report that "main::Main()" depends on "HelloWorld::destroy()" +ok 274 - And the output must match "aa2d0fcb7879485d5ff1cd189743f91f04bea8ce" # -# Scenario intra-module dependencies -ok 275 - Given I am in t/samples/hello_world/c +ok 275 - And the output must match "e8faf88f0e20a193d700b6c68eeb31897dd85e53" # -ok 276 - When I run "analizo graph ." +ok 276 - And the output must match "d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00" # -ok 277 - Then analizo must report that "hello_world::hello_world_say(hello_world *)" depends on "hello_world::_hello_world::id" +ok 277 - And the output must match "0d3c023120ad4e9f519a03fff275d048c52671ad" # -ok 278 - And analizo must report that "hello_world::hello_world_destroy(hello_world *)" depends on "hello_world::_hello_world::id" +# Scenario non-code commits should not be analyzed +ok 278 - When I explode t/samples/evolution.tar.gz # -# Scenario intra-module dependencies -ok 279 - Given I am in t/samples/hello_world/cpp +ok 279 - And I run "analizo metrics-history --list ." # -ok 280 - When I run "analizo graph ." +ok 280 - Then the output must not match "ba62278e976944c0334103aa0044535169e1a51e" # -ok 281 - Then analizo must report that "HelloWorld::say()" depends on "HelloWorld::_id" +# Scenario merge commits without code change should not be analyzed +ok 281 - When I explode t/samples/evolution.tar.gz # -ok 282 - And analizo must report that "HelloWorld::destroy()" depends on "HelloWorld::_id" +ok 282 - And I run "analizo metrics-history --list ." # -# Scenario intra-module dependencies -ok 283 - Given I am in t/samples/hello_world/java +ok 283 - Then the output must not match "0fdaaa7dcc8073332a957024fafc8c98f165e725" # -ok 284 - When I run "analizo graph ." +# Scenario actually processing merge commits +ok 284 - When I explode t/samples/evolution.tar.gz # -ok 285 - Then analizo must report that "HelloWorld::say()" depends on "HelloWorld::_id" +ok 285 - And I run "analizo metrics-history -o metrics.csv . && cat metrics.csv" # -ok 286 - And analizo must report that "HelloWorld::destroy()" depends on "HelloWorld::_id" +ok 286 - Then the output must match "^id,previous_commit_id,author_date,author_name,author_email,.*,sc_mean" # -# Scenario intra-module dependencies -ok 287 - Given I am in t/samples/hello_world/csharp +ok 287 - And the output must match "0a06a6fcc2e7b4fe56d134e89d74ad028bb122ed,eb67c27055293e835049b58d7d73ce3664d3f90e" # -ok 288 - When I run "analizo graph ." +ok 288 - And the output must match "eb67c27055293e835049b58d7d73ce3664d3f90e,," # -ok 289 - Then analizo must report that "HelloWorld::say()" depends on "HelloWorld::_id" +ok 289 - And the output must match "aa2d0fcb7879485d5ff1cd189743f91f04bea8ce,d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00" # -ok 290 - And analizo must report that "HelloWorld::destroy()" depends on "HelloWorld::_id" +ok 290 - And the output must match "e8faf88f0e20a193d700b6c68eeb31897dd85e53,d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00" # -# Scenario some metrics -ok 291 - Given I am in t/samples/hello_world/c +ok 291 - And the output must match "d7f52e74dc3d8f57640e83d41c5e9f8fcf621c00,0d3c023120ad4e9f519a03fff275d048c52671ad" # -ok 292 - When I run "analizo metrics ." +# Scenario actually processing initial commit and first commit after a non-relevant merge +ok 292 - When I explode t/samples/evolution.tar.gz # -ok 293 - Then analizo must report that the project has total_modules = 2 +ok 293 - And I run "analizo metrics-history -o metrics.csv . && cat metrics.csv" # -ok 294 - And analizo must report that module main has nom = 1 +ok 294 - Then the output must match "0d3c023120ad4e9f519a03fff275d048c52671ad,," # -ok 295 - And analizo must report that module hello_world has npm = 3 +ok 295 - And the output must match "8183eafad3a0f3eff6e8869f1bdbfd255e86825a,0a06a6fcc2e7b4fe56d134e89d74ad028bb122ed" # -ok 296 - And analizo must report that module hello_world has nom = 3 +# Scenario support for parallel processing +ok 296 - Given I copy t/samples/evolution.tar.gz into a temporary directory # -ok 297 - And analizo must report that module hello_world has npa = 2 +ok 297 - When I run "tar xzf evolution.tar.gz" # -# Scenario some metrics -ok 298 - Given I am in t/samples/hello_world/cpp +ok 298 - And I run "cd evolution && analizo metrics-history -o ../sequential.csv" # -ok 299 - When I run "analizo metrics ." +ok 299 - And I run "cd evolution && analizo metrics-history -p 2 -o ../parallel.csv" # -ok 300 - Then analizo must report that the project has total_modules = 2 +ok 300 - Then the exit status must be 0 # -ok 301 - And analizo must report that module main has nom = 1 +ok 301 - When I run "sort sequential.csv > sequential-sorted.csv" # -ok 302 - And analizo must report that module HelloWorld has npm = 3 +ok 302 - And I run "sort parallel.csv > parallel-sorted.csv" # -ok 303 - And analizo must report that module HelloWorld has nom = 4 +ok 303 - And I run "diff -u sequential-sorted.csv parallel-sorted.csv" # -ok 304 - And analizo must report that module HelloWorld has npa = 1 +ok 304 - Then the output must not match "---" # -# Scenario some metrics -ok 305 - Given I am in t/samples/hello_world/java +ok 305 - And the exit status must be 0 # -ok 306 - When I run "analizo metrics ." +# Scenario parsing git log format containing renamed files among status of changed files +ok 306 - Given I copy t/samples/evolution.tar.gz into a temporary directory # -ok 307 - Then analizo must report that the project has total_modules = 2 +ok 307 - When I run "tar xzf evolution.tar.gz" # -ok 308 - And analizo must report that module Main has nom = 1 +ok 308 - And I run "cd evolution && git checkout doc && analizo metrics-history ." # -ok 309 - And analizo must report that module HelloWorld has npm = 3 +ok 309 - Then the exit status must be 0 # -ok 310 - And analizo must report that module HelloWorld has nom = 4 +# Scenario language filters +ok 310 - Given I copy t/samples/mixed into a temporary directory # -ok 311 - And analizo must report that module HelloWorld has npa = 1 +ok 311 - When I run "(cd mixed && git init && git add * && git commit -m 'initial commit')" # -# Scenario some metrics -ok 312 - Given I am in t/samples/hello_world/csharp +ok 312 - And I run "analizo metrics-history --language java mixed" # -ok 313 - When I run "analizo metrics ." +ok 313 - Then the output must not match "native_backend.c" # -ok 314 - Then analizo must report that the project has total_modules = 2 +# Feature mapping modules to filenames +# As a software engineering resesearcher I want to know in which file each module is declared So that I can compare that with data from the VCS +# Scenario C++, runing against some directory +ok 314 - When I run "analizo metrics t/samples/animals/cpp" # -ok 315 - And analizo must report that module main has nom = 1 +ok 315 - Then analizo must report that file animal.h declares module Animal # -ok 316 - And analizo must report that module HelloWorld has npm = 3 +ok 316 - And analizo must report that file cat.cc declares module Cat # -ok 317 - And analizo must report that module HelloWorld has nom = 4 +ok 317 - And analizo must report that file cat.h declares module Cat # -ok 318 - And analizo must report that module HelloWorld has npa = 1 +ok 318 - And analizo must report that file cat.cc not declares module Dog # -# Scenario inheritance data -ok 319 - Given I am in t/samples/animals/cpp +ok 319 - And analizo must report that file cat.h not declares module Dog # -ok 320 - When I run "analizo graph --modules ." +# Scenario C++, running against current directory +ok 320 - Given I am in t/samples/animals/cpp # -ok 321 - Then analizo must report that "Cat" depends on "Mammal" +ok 321 - When I run "analizo metrics ." # -ok 322 - And analizo must report that "Dog" depends on "Mammal" +ok 322 - Then analizo must report that file animal.h declares module Animal # -ok 323 - And analizo must report that "Mammal" depends on "Animal" +ok 323 - And analizo must report that file cat.cc declares module Cat # -ok 324 - When I run "analizo metrics ." +ok 324 - And analizo must report that file cat.h declares module Cat # -ok 325 - Then analizo must report that module Cat has dit = 2 +# Scenario Java +ok 325 - When I run "analizo metrics t/samples/animals/java" # -ok 326 - And analizo must report that module Dog has dit = 2 +ok 326 - Then analizo must report that file Animal.java declares module Animal # -ok 327 - And analizo must report that module Mammal has dit = 1 +# Scenario C +ok 327 - Given I am in t/samples/hello_world/c # -ok 328 - And analizo must report that module Animal has dit = 0 +ok 328 - When I run "analizo metrics ." # -# Scenario inheritance data -ok 329 - Given I am in t/samples/animals/java +ok 329 - Then analizo must report that module hello_world has _filename = [hello_world.c,hello_world.h] # -ok 330 - When I run "analizo graph --modules ." +ok 330 - And analizo must report that file hello_world.c declares module hello_world # -ok 331 - Then analizo must report that "Cat" depends on "Mammal" +ok 331 - And analizo must report that file hello_world.h declares module hello_world # -ok 332 - And analizo must report that "Dog" depends on "Mammal" +# Scenario CSharp hello_world +ok 332 - Given I am in t/samples/hello_world/csharp # -ok 333 - And analizo must report that "Mammal" depends on "Animal" +ok 333 - When I run "analizo metrics ." # -ok 334 - When I run "analizo metrics ." +ok 334 - Then analizo must report that module HelloWorld has _filename = [HelloWorld.cs] # -ok 335 - Then analizo must report that module Cat has dit = 2 +# Scenario CSharp polygons +ok 335 - Given I am in t/samples/polygons/csharp # -ok 336 - And analizo must report that module Dog has dit = 2 +ok 336 - When I run "analizo metrics ." # -ok 337 - And analizo must report that module Mammal has dit = 1 +ok 337 - Then analizo must report that file Polygon.cs declares module Polygon # -ok 338 - And analizo must report that module Animal has dit = 0 +ok 338 - And analizo must report that file Rect.cs declares module Rect # -# Scenario mixed Java and C -ok 339 - Given I am in t/samples/mixed +ok 339 - And analizo must report that file Triangle.cs declares module Triangle # -ok 340 - When I run "analizo metrics ." +# Scenario Java Generics WildCard sample +ok 340 - Given I am in t/samples/wildcard # -ok 341 - Then the output must match "_module: native_backend" +ok 341 - When I run "analizo metrics ." # -ok 342 - And the output must match "_module: UI" +ok 342 - Then analizo must report that file WildcardClass.java declares module WildcardClass # -ok 343 - And the output must match "_module: Backend" +ok 343 - And analizo must report that file GenericClass.java declares module GenericClass # -# Feature c code with void argument -# As a software engineering reasearcher I want to know the arguments of each function on a project So that I can run analizo metrics calculate number of parameters -# Scenario calculate anpn on function with void argument -ok 344 - Given I am in t/samples/void/ +# Scenario Java Enumeration sample +ok 344 - Given I am in t/samples/enumeration # ok 345 - When I run "analizo metrics ." # -ok 346 - Then analizo must report that module main has anpm = 0 +ok 346 - Then analizo must report that file Main.java declares module Main::MyEnumeration # -# Feature give manpage on --help -# As a user I want to read the manpage when passing --help command line option In order to get instructions on how to use the tools -# Scenario display manpage for `analizo graph` -ok 347 - When I run "analizo graph --help" +ok 347 - And analizo must report that file Enumeration.java declares module Enumeration +# +# Feature analizo wrapper script +# Scenario invoking a tool +ok 348 - When I run "analizo metrics lib t" # -ok 348 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-graph" +ok 349 - Then analizo must emit a warning matching "Usage:" # -ok 349 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo graph \[OPTIONS\]" +ok 350 - And analizo must emit a warning matching "analizo.metrics" # -# Scenario display manpage for `analizo metrics` -ok 350 - When I run "analizo metrics --help" +ok 351 - And the exit status must not be 0 # -ok 351 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-metrics" +# Scenario must not pass --version ahead +ok 352 - When I run "analizo metrics --version" # -ok 352 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo metrics \[OPTIONS\]" +ok 353 - Then analizo must emit a warning matching "Invalid option: --version" # -# Scenario display manpage for `analizo metrics-batch` -ok 353 - When I run "analizo metrics-batch --help" +ok 354 - And the exit status must not be 0 +# +# Scenario display help +ok 355 - When I run "analizo --help" # -ok 354 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-metrics-batch" +ok 356 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo\s" # -ok 355 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo metrics-batch \[OPTIONS\]" +ok 357 - And the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo\s" # -# Scenario display manpage for `analizo metrics-history` -ok 356 - When I run "analizo metrics-history --help" +ok 358 - And the exit status must be 0 # -ok 357 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-metrics-history" +# Scenario display version +ok 359 - When I run "analizo --version" # -ok 358 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo metrics-history \[OPTIONS\]" +ok 360 - Then the output must match "^analizo version [0-9]+.[0-9]+.[0-9]+" # -# Scenario display manpage for `analizo tree-evolution` -ok 359 - When I run "analizo tree-evolution --help" +ok 361 - And the exit status must be 0 # -ok 360 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-tree-evolution" +# Scenario invalid option +ok 362 - When I run "analizo --invalid-option" # -ok 361 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo tree-evolution \[OPTIONS\]" +ok 363 - Then the output must match "Unrecognized command" # -# Scenario display manpage for `analizo files-graph` -ok 362 - When I run "analizo files-graph --help" +ok 364 - And the exit status must not be 0 # -ok 363 - Then the output must match "[NAME|N^HNA^HAM^HME^HE]\s+analizo-files-graph" +# Feature displaying version +# Scenario running without any arguments +ok 365 - When I run "analizo graph" # -ok 364 - Then the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\s+analizo files-graph \[OPTIONS\]" +ok 366 - Then analizo must emit a warning matching "Usage:" # -# Feature functions calls -# Scenario detect function calls among classes -ok 365 - Given I am in t/samples/animals/cpp +ok 367 - And the exit status must not be 0 # -ok 366 - When I run "analizo graph ." +# Feature clustering subroutines in the same module together +# Scenario clustering dependencies +ok 368 - Given I am in t/samples/sample_basic/c/ # -ok 367 - Then analizo must report that "Cat::Cat(char *)" depends on "Cat::_name" +ok 369 - When I run "analizo graph --cluster ." # -ok 368 - And analizo must not report that "Cat::Cat(char *)" depends on "Cat::name()" +ok 370 - Then analizo must report that "module1::main()" is part of "module1" # -ok 369 - And the exit status must be 0 +ok 371 - Then analizo must report that "module2::say_hello()" is part of "module2" # -# Feature displaying version -# Scenario running without any arguments -ok 370 - When I run "analizo graph" +ok 372 - Then analizo must report that "module2::say_bye()" is part of "module2" # -ok 371 - Then analizo must emit a warning matching "Usage:" +ok 373 - Then analizo must report that "module3::variable" is part of "module3" # -ok 372 - And the exit status must not be 0 +ok 374 - Then analizo must report that "module3::callback()" is part of "module3" # -# Feature clustering subroutines in the same module together -# Scenario clustering dependencies -ok 373 - Given I am in t/samples/sample_basic/c/ +# Feature plain analizo graph run +# Scenario simply running analizo +ok 375 - Given I am in t/samples/sample_basic/c/ # -ok 374 - When I run "analizo graph --cluster ." +ok 376 - When I run "analizo graph ." # -ok 375 - Then analizo must report that "module1::main()" is part of "module1" +ok 377 - Then analizo must report that "module1::main()" depends on "module3::variable" # -ok 376 - Then analizo must report that "module2::say_hello()" is part of "module2" +ok 378 - Then analizo must report that "module1::main()" depends on "module3::callback()" # -ok 377 - Then analizo must report that "module2::say_bye()" is part of "module2" +ok 379 - Then analizo must report that "module1::main()" depends on "module2::say_bye()" # -ok 378 - Then analizo must report that "module3::variable" is part of "module3" +ok 380 - Then analizo must report that "module1::main()" depends on "module2::say_hello()" # -ok 379 - Then analizo must report that "module3::callback()" is part of "module3" +ok 381 - And the exit status must be 0 +# +# Feature functions calls +# Scenario detect function calls among classes +ok 382 - Given I am in t/samples/animals/cpp +# +ok 383 - When I run "analizo graph ." +# +ok 384 - Then analizo must report that "Cat::Cat(char *)" depends on "Cat::_name" +# +ok 385 - And analizo must not report that "Cat::Cat(char *)" depends on "Cat::name()" +# +ok 386 - And the exit status must be 0 # # Feature output file for graph tool # Scenario passing output file in the command line -ok 380 - Given I am in . +ok 387 - Given I am in . # -ok 381 - When I run "analizo graph --output output.dot.tmp t/samples/sample_basic/c/" +ok 388 - When I run "analizo graph --output output.dot.tmp t/samples/sample_basic/c/" # -ok 382 - Then the contents of "output.dot.tmp" must match "module1" +ok 389 - Then the contents of "output.dot.tmp" must match "module1" # -ok 383 - And the exit status must be 0 +ok 390 - And the exit status must be 0 # # Scenario passing output file in an unexisting directory -ok 384 - Given I am in . +ok 391 - Given I am in . # -ok 385 - When I run "analizo graph --output /this/directory/must/not/exists/output.dot t/samples/sample_basic/c/" +ok 392 - When I run "analizo graph --output /this/directory/must/not/exists/output.dot t/samples/sample_basic/c/" # -ok 386 - Then analizo must emit a warning matching "No such file or directory" +ok 393 - Then analizo must emit a warning matching "No such file or directory" # -ok 387 - And the exit status must not be 0 +ok 394 - And the exit status must not be 0 # # Scenario passing output file without permission to write -ok 388 - Given I am in . +ok 395 - Given I am in . # -ok 389 - When I run "touch output.tmp" +ok 396 - When I run "touch output.tmp" # -ok 390 - And I run "chmod 000 output.tmp" +ok 397 - And I run "chmod 000 output.tmp" # -ok 391 - And I run "analizo graph --output output.tmp t/samples/sample_basic/c/" +ok 398 - And I run "analizo graph --output output.tmp t/samples/sample_basic/c/" # -ok 392 - Then the exit status must not be 0 +ok 399 - Then the exit status must not be 0 # -ok 393 - And analizo must emit a warning matching "Permission denied" +ok 400 - And analizo must emit a warning matching "Permission denied" # # Feature input files for graph tool # Scenario passing specific files in the command line -ok 394 - Given I am in t/samples/sample_basic/c +ok 401 - Given I am in t/samples/sample_basic/c # -ok 395 - When I run "analizo graph module1.c module2.c" +ok 402 - When I run "analizo graph module1.c module2.c" # -ok 396 - Then the output must match "module1" +ok 403 - Then the output must match "module1" # -ok 397 - And the output must match "module2" +ok 404 - And the output must match "module2" # -ok 398 - And the output must not match "module3" +ok 405 - And the output must not match "module3" # # Scenario passing unexisting file -ok 399 - Given I am in t/samples/sample_basic/c +ok 406 - Given I am in t/samples/sample_basic/c # -ok 400 - When I run "analizo graph unexisting-file.c" +ok 407 - When I run "analizo graph unexisting-file.c" # -ok 401 - Then analizo must emit a warning matching "is not readable" +ok 408 - Then analizo must emit a warning matching "is not readable" # # Feature group by modules # Scenario sample project -ok 402 - Given I am in t/samples/sample_basic/c/ +ok 409 - Given I am in t/samples/sample_basic/c/ # -ok 403 - When I run "analizo graph --modules ." +ok 410 - When I run "analizo graph --modules ." # -ok 404 - Then analizo must report that "module1" depends on "module2" +ok 411 - Then analizo must report that "module1" depends on "module2" # -ok 405 - Then analizo must report that "module1" depends on "module3" +ok 412 - Then analizo must report that "module1" depends on "module3" # # Feature omitting certain modules # Scenario omitting say_bye -ok 406 - Given I am in t/samples/sample_basic/ +ok 413 - Given I am in t/samples/sample_basic/ # -ok 407 - When I run "analizo graph --omit 'module2::say_bye()' ." +ok 414 - When I run "analizo graph --omit 'module2::say_bye()' ." # -ok 408 - Then the output must not match "module2::say_bye()" +ok 415 - Then the output must not match "module2::say_bye()" # # Scenario omitting two functions -ok 409 - Given I am in t/samples/sample_basic/ +ok 416 - Given I am in t/samples/sample_basic/ # -ok 410 - When I run "analizo graph --omit 'module2::say_bye()','module2::say_hello()' ." +ok 417 - When I run "analizo graph --omit 'module2::say_bye()','module2::say_hello()' ." # -ok 411 - Then the output must not match "module2::say_bye()" +ok 418 - Then the output must not match "module2::say_bye()" # -ok 412 - Then the output must not match "module2::say_hello()" +ok 419 - Then the output must not match "module2::say_hello()" # # Scenario omitting depending functions -ok 413 - Given I am in t/samples/sample_basic/ -# -ok 414 - When I run "analizo graph --omit 'module1::main()' ." -# -ok 415 - Then the output must not match "module1::main()" -# -# Feature plain analizo graph run -# Scenario simply running analizo -ok 416 - Given I am in t/samples/sample_basic/c/ -# -ok 417 - When I run "analizo graph ." -# -ok 418 - Then analizo must report that "module1::main()" depends on "module3::variable" -# -ok 419 - Then analizo must report that "module1::main()" depends on "module3::callback()" -# -ok 420 - Then analizo must report that "module1::main()" depends on "module2::say_bye()" +ok 420 - Given I am in t/samples/sample_basic/ # -ok 421 - Then analizo must report that "module1::main()" depends on "module2::say_hello()" +ok 421 - When I run "analizo graph --omit 'module1::main()' ." # -ok 422 - And the exit status must be 0 +ok 422 - Then the output must not match "module1::main()" # -# Feature afferent connections with deep inheritance -# As a software developer I want analizo to report the afferent connections of each module So that I can evaluate it -# Scenario afferent connections of the dog family java sample -ok 423 - Given I am in t/samples/deep_inheritance/java +# Feature number of abstract classes +# As a software developer I want analizo to report the number of modules with at least a defined method in my code So that I can evaluate it +# Scenario "Hello, world" project +ok 423 - Given I am in t/samples/hello_world/cpp # ok 424 - When I run "analizo metrics ." # -ok 425 - Then analizo must report that module Dog has acc = 7 +ok 425 - Then analizo must report that the project has total_modules_with_defined_attributes = 1 # -# Scenario afferent connections of the dog family java sample -ok 426 - Given I am in t/samples/deep_inheritance/java +# Scenario "Hello, world" project +ok 426 - Given I am in t/samples/hello_world/java # ok 427 - When I run "analizo metrics ." # -ok 428 - Then analizo must report that module DogFirstGreatGrandson has acc = 1 +ok 428 - Then analizo must report that the project has total_modules_with_defined_attributes = 1 # -# Scenario afferent connections of the dog family java sample -ok 429 - Given I am in t/samples/deep_inheritance/java +# Scenario "Hello, world" project +ok 429 - Given I am in t/samples/hello_world/csharp # ok 430 - When I run "analizo metrics ." # -ok 431 - Then analizo must report that module DogFirstPuppy has acc = 4 +ok 431 - Then analizo must report that the project has total_modules_with_defined_attributes = 1 # -# Scenario afferent connections of the dog family java sample -ok 432 - Given I am in t/samples/deep_inheritance/java +# Scenario "Animals" project +ok 432 - Given I am in t/samples/animals/cpp # ok 433 - When I run "analizo metrics ." # -ok 434 - Then analizo must report that module DogGrandson has acc = 3 +ok 434 - Then analizo must report that the project has total_modules_with_defined_attributes = 2 # -# Scenario afferent connections of the dog family java sample -ok 435 - Given I am in t/samples/deep_inheritance/java +# Scenario "Animals" project +ok 435 - Given I am in t/samples/animals/java # ok 436 - When I run "analizo metrics ." # -ok 437 - Then analizo must report that module DogSecondGreatGrandson has acc = 0 +ok 437 - Then analizo must report that the project has total_modules_with_defined_attributes = 2 # -# Scenario afferent connections of the dog family java sample -ok 438 - Given I am in t/samples/deep_inheritance/java +# Scenario "Animals" project +ok 438 - Given I am in t/samples/animals/csharp # ok 439 - When I run "analizo metrics ." # -ok 440 - Then analizo must report that module DogSecondPuppy has acc = 0 +ok 440 - Then analizo must report that the project has total_modules_with_defined_attributes = 2 # -# Scenario afferent connections of the dog family java sample -ok 441 - Given I am in t/samples/deep_inheritance/java +# Feature total number of methods per abstract class +# As a software developer I want analizo to report the number of abstract classes in my code So that I can evaluate it +# Scenario "Hello, world" project +ok 441 - Given I am in t/samples/hello_world/cpp # ok 442 - When I run "analizo metrics ." # -ok 443 - Then analizo must report that module DogSuperYoung has acc = 0 +ok 443 - Then analizo must report that the project has total_methods_per_abstract_class = 0 # -# Scenario afferent connections of the dog family java sample -ok 444 - Given I am in t/samples/deep_inheritance/java +# Scenario "Hello, world" project +ok 444 - Given I am in t/samples/hello_world/java # ok 445 - When I run "analizo metrics ." # -ok 446 - Then analizo must report that module Human has acc = 2 +ok 446 - Then analizo must report that the project has total_methods_per_abstract_class = 0 # -# Scenario afferent connections of the dog family java sample -ok 447 - Given I am in t/samples/deep_inheritance/java +# Scenario "Hello, world" project +ok 447 - Given I am in t/samples/hello_world/csharp # ok 448 - When I run "analizo metrics ." # -ok 449 - Then analizo must report that module ShopController has acc = 0 +ok 449 - Then analizo must report that the project has total_methods_per_abstract_class = 0 # -# Scenario afferent connections of the dog family java sample -ok 450 - Given I am in t/samples/deep_inheritance/java +# Scenario "Animals" project +ok 450 - Given I am in t/samples/animals/cpp # ok 451 - When I run "analizo metrics ." # -ok 452 - Then analizo must report that module VenderShop has acc = 1 +ok 452 - Then analizo must report that the project has total_methods_per_abstract_class = 1 # -# Feature number of abstract classes -# As a software developer I want analizo to report the number of abstract classes in my code So that I can evaluate it -# Scenario "Hello, world" project -ok 453 - Given I am in t/samples/hello_world/cpp +# Scenario "Animals" project +ok 453 - Given I am in t/samples/animals/java # ok 454 - When I run "analizo metrics ." # -ok 455 - Then analizo must report that the project has total_abstract_classes = 0 +ok 455 - Then analizo must report that the project has total_methods_per_abstract_class = 1 # -# Scenario "Hello, world" project -ok 456 - Given I am in t/samples/hello_world/java +# Scenario "Animals" project +ok 456 - Given I am in t/samples/animals/csharp # ok 457 - When I run "analizo metrics ." # -ok 458 - Then analizo must report that the project has total_abstract_classes = 0 +ok 458 - Then analizo must report that the project has total_methods_per_abstract_class = 1 # -# Scenario "Hello, world" project -ok 459 - Given I am in t/samples/hello_world/csharp +# Scenario "Polygons" project +ok 459 - Given I am in t/samples/polygons/cpp # ok 460 - When I run "analizo metrics ." # -ok 461 - Then analizo must report that the project has total_abstract_classes = 0 +ok 461 - Then analizo must report that the project has total_methods_per_abstract_class = 2.5 # -# Scenario "Animals" project -ok 462 - Given I am in t/samples/animals/cpp +# Scenario "Polygons" project +ok 462 - Given I am in t/samples/polygons/java # ok 463 - When I run "analizo metrics ." # -ok 464 - Then analizo must report that the project has total_abstract_classes = 2 +ok 464 - Then analizo must report that the project has total_methods_per_abstract_class = 2 # -# Scenario "Animals" project -ok 465 - Given I am in t/samples/animals/java +# Scenario "Polygons" project +ok 465 - Given I am in t/samples/polygons/csharp # ok 466 - When I run "analizo metrics ." # -ok 467 - Then analizo must report that the project has total_abstract_classes = 2 +ok 467 - Then analizo must report that the project has total_methods_per_abstract_class = 2 # -# Scenario "Animals" project -ok 468 - Given I am in t/samples/animals/csharp +# Feature number of methods +# As a software developer I want analizo to report the number of methods of each module So that I can evaluate it +# Scenario number of methods of the polygon java sample +ok 468 - Given I am in t/samples/polygons/cpp # ok 469 - When I run "analizo metrics ." # -ok 470 - Then analizo must report that the project has total_abstract_classes = 2 +ok 470 - Then analizo must report that module CPolygon has nom = 3 # -# Scenario "Polygons" project +# Scenario number of methods of the polygon java sample ok 471 - Given I am in t/samples/polygons/cpp # ok 472 - When I run "analizo metrics ." # -ok 473 - Then analizo must report that the project has total_abstract_classes = 2 +ok 473 - Then analizo must report that module CTetragon has nom = 2 # -# Scenario "Polygons" project +# Scenario number of methods of the polygon java sample ok 474 - Given I am in t/samples/polygons/java # ok 475 - When I run "analizo metrics ." # -ok 476 - Then analizo must report that the project has total_abstract_classes = 2 +ok 476 - Then analizo must report that module Polygon has nom = 3 # -# Scenario "Polygons" project +# Scenario number of methods of the polygon java sample ok 477 - Given I am in t/samples/polygons/csharp # ok 478 - When I run "analizo metrics ." # -ok 479 - Then analizo must report that the project has total_abstract_classes = 2 +ok 479 - Then analizo must report that module Polygon has nom = 2 # -# Scenario "AbstractClass" project -ok 480 - Given I am in t/samples/abstract_class/java +# Scenario number of methods of the polygon java sample +ok 480 - Given I am in t/samples/polygons/csharp # ok 481 - When I run "analizo metrics ." # -ok 482 - Then analizo must report that the project has total_abstract_classes = 1 +ok 482 - Then analizo must report that module Tetragon has nom = 2 # -ok 483 - And analizo must report that the project has total_methods_per_abstract_class = 6 +# Scenario number of methods of the polygon java sample +ok 483 - Given I am in t/samples/animals/cpp # -# Scenario "AbstractClass" project -ok 484 - Given I am in t/samples/abstract_class/csharp +ok 484 - When I run "analizo metrics ." # -ok 485 - When I run "analizo metrics ." +ok 485 - Then analizo must report that module Animal has nom = 1 # -ok 486 - Then analizo must report that the project has total_abstract_classes = 1 +# Scenario number of methods of the polygon java sample +ok 486 - Given I am in t/samples/animals/cpp # -ok 487 - And analizo must report that the project has total_methods_per_abstract_class = 1 +ok 487 - When I run "analizo metrics ." # -# Feature language filters -# As a software developer in a multi-language project I want to analyze only one programming language So that the results are as correct as possible -# Scenario filtering for C code -ok 488 - Given I am in t/samples/mixed +ok 488 - Then analizo must report that module Cat has nom = 2 # -ok 489 - When I run "analizo metrics --language c ." +# Scenario number of methods of the polygon java sample +ok 489 - Given I am in t/samples/animals/cpp # -ok 490 - Then the output must match "native_backend" +ok 490 - When I run "analizo metrics ." # -ok 491 - And the output must not match "UI" +ok 491 - Then analizo must report that module Dog has nom = 2 # -ok 492 - And the output must not match "Backend" +# Scenario number of methods of the polygon java sample +ok 492 - Given I am in t/samples/animals/java # -ok 493 - And the output must not match "CSharp_Backend" +ok 493 - When I run "analizo metrics ." # -# Scenario filtering for Java code -ok 494 - Given I am in t/samples/mixed +ok 494 - Then analizo must report that module Animal has nom = 1 # -ok 495 - When I run "analizo metrics --language java ." +# Scenario number of methods of the polygon java sample +ok 495 - Given I am in t/samples/animals/java # -ok 496 - Then the output must match "UI" +ok 496 - When I run "analizo metrics ." # -ok 497 - And the output must match "Backend" +ok 497 - Then analizo must report that module Cat has nom = 2 # -ok 498 - And the output must not match "native_backend" +# Scenario number of methods of the polygon java sample +ok 498 - Given I am in t/samples/animals/java # -ok 499 - And the output must not match "CSharp_Backend" +ok 499 - When I run "analizo metrics ." # -# Scenario filtering for CSharp code -ok 500 - Given I am in t/samples/mixed +ok 500 - Then analizo must report that module Dog has nom = 2 # -ok 501 - When I run "analizo metrics --language csharp ." +# Scenario number of methods of the polygon java sample +ok 501 - Given I am in t/samples/animals/csharp # -ok 502 - Then the output must match "CSharp_Backend" +ok 502 - When I run "analizo metrics ." # -ok 503 - And the output must not match "UI" +ok 503 - Then analizo must report that module Animal has nom = 1 # -ok 504 - And the output must not match "native_backend" +# Scenario number of methods of the polygon java sample +ok 504 - Given I am in t/samples/animals/csharp # -# Scenario listing languages -ok 505 - When I run "analizo metrics --language list" +ok 505 - When I run "analizo metrics ." # -ok 506 - Then analizo must present a list of languages +ok 506 - Then analizo must report that module Cat has nom = 2 # -# Feature average number of parameters metric -# As a software developer I want to calculate the average number of arguments per method metric So that I can evaluate my code -# Scenario number of parameters in the "Animals" project -ok 507 - Given I am in t/samples/animals/cpp +# Scenario number of methods of the polygon java sample +ok 507 - Given I am in t/samples/animals/csharp # ok 508 - When I run "analizo metrics ." # -ok 509 - Then analizo must report that module Dog has anpm = 0.5 +ok 509 - Then analizo must report that module Dog has nom = 2 # -ok 510 - And analizo must report that module Cat has anpm = 0.5 +# Scenario not computes macro on C code as method definition +ok 510 - Given I am in t/samples/macro # -ok 511 - And analizo must report that module main has anpm = 0 +ok 511 - When I run "analizo metrics ." # -# Scenario number of parameters in the "Animals" project -ok 512 - Given I am in t/samples/animals/java +ok 512 - Then analizo must report that module using_macro has nom = 1 # -ok 513 - When I run "analizo metrics ." +# Feature language filters +# As a software developer in a multi-language project I want to analyze only one programming language So that the results are as correct as possible +# Scenario filtering for C code +ok 513 - Given I am in t/samples/mixed # -ok 514 - Then analizo must report that module Dog has anpm = 0.5 +ok 514 - When I run "analizo metrics --language c ." # -ok 515 - And analizo must report that module Cat has anpm = 0.5 +ok 515 - Then the output must match "native_backend" # -ok 516 - And analizo must report that module Main has anpm = 1 +ok 516 - And the output must not match "UI" # -# Scenario number of parameters in the "Animals" project -ok 517 - Given I am in t/samples/animals/csharp +ok 517 - And the output must not match "Backend" # -ok 518 - When I run "analizo metrics ." +ok 518 - And the output must not match "CSharp_Backend" # -ok 519 - Then analizo must report that module Dog has anpm = 0.5 +# Scenario filtering for Java code +ok 519 - Given I am in t/samples/mixed # -ok 520 - And analizo must report that module Cat has anpm = 0.5 +ok 520 - When I run "analizo metrics --language java ." # -ok 521 - And analizo must report that module main has anpm = 1 +ok 521 - Then the output must match "UI" # -# Feature total number of methods per abstract class -# As a software developer I want analizo to report the number of abstract classes in my code So that I can evaluate it -# Scenario "Hello, world" project -ok 522 - Given I am in t/samples/hello_world/cpp +ok 522 - And the output must match "Backend" # -ok 523 - When I run "analizo metrics ." +ok 523 - And the output must not match "native_backend" # -ok 524 - Then analizo must report that the project has total_methods_per_abstract_class = 0 +ok 524 - And the output must not match "CSharp_Backend" # -# Scenario "Hello, world" project -ok 525 - Given I am in t/samples/hello_world/java +# Scenario filtering for CSharp code +ok 525 - Given I am in t/samples/mixed # -ok 526 - When I run "analizo metrics ." +ok 526 - When I run "analizo metrics --language csharp ." # -ok 527 - Then analizo must report that the project has total_methods_per_abstract_class = 0 +ok 527 - Then the output must match "CSharp_Backend" # -# Scenario "Hello, world" project -ok 528 - Given I am in t/samples/hello_world/csharp +ok 528 - And the output must not match "UI" # -ok 529 - When I run "analizo metrics ." +ok 529 - And the output must not match "native_backend" # -ok 530 - Then analizo must report that the project has total_methods_per_abstract_class = 0 +# Scenario listing languages +ok 530 - When I run "analizo metrics --language list" # -# Scenario "Animals" project -ok 531 - Given I am in t/samples/animals/cpp +ok 531 - Then analizo must present a list of languages # -ok 532 - When I run "analizo metrics ." +# Feature number of attributes metric +# As a software developer I want to calculate the number of attributes per module metric So that I can evaluate my code +# Scenario number of attributes in the "Animals" project +ok 532 - Given I am in t/samples/animals/cpp # -ok 533 - Then analizo must report that the project has total_methods_per_abstract_class = 1 +ok 533 - When I run "analizo metrics ." # -# Scenario "Animals" project -ok 534 - Given I am in t/samples/animals/java +ok 534 - Then analizo must report that module Dog has noa = 1 # -ok 535 - When I run "analizo metrics ." +ok 535 - And analizo must report that module Cat has noa = 1 # -ok 536 - Then analizo must report that the project has total_methods_per_abstract_class = 1 +ok 536 - And analizo must report that module main has noa = 0 # -# Scenario "Animals" project -ok 537 - Given I am in t/samples/animals/csharp +# Scenario number of attributes in the "Animals" project +ok 537 - Given I am in t/samples/animals/java # ok 538 - When I run "analizo metrics ." # -ok 539 - Then analizo must report that the project has total_methods_per_abstract_class = 1 +ok 539 - Then analizo must report that module Dog has noa = 1 # -# Scenario "Polygons" project -ok 540 - Given I am in t/samples/polygons/cpp +ok 540 - And analizo must report that module Cat has noa = 1 # -ok 541 - When I run "analizo metrics ." +ok 541 - And analizo must report that module Main has noa = 0 # -ok 542 - Then analizo must report that the project has total_methods_per_abstract_class = 2.5 +# Scenario number of attributes in the "Animals" project +ok 542 - Given I am in t/samples/animals/csharp # -# Scenario "Polygons" project -ok 543 - Given I am in t/samples/polygons/java +ok 543 - When I run "analizo metrics ." # -ok 544 - When I run "analizo metrics ." +ok 544 - Then analizo must report that module Dog has noa = 1 # -ok 545 - Then analizo must report that the project has total_methods_per_abstract_class = 2 +ok 545 - And analizo must report that module Cat has noa = 1 # -# Scenario "Polygons" project -ok 546 - Given I am in t/samples/polygons/csharp +ok 546 - And analizo must report that module main has noa = 0 # -ok 547 - When I run "analizo metrics ." +# Feature average number of parameters metric +# As a software developer I want to calculate the average number of arguments per method metric So that I can evaluate my code +# Scenario number of parameters in the "Animals" project +ok 547 - Given I am in t/samples/animals/cpp # -ok 548 - Then analizo must report that the project has total_methods_per_abstract_class = 2 +ok 548 - When I run "analizo metrics ." # -# Feature change cost degree -# As a software developer I want analizo to report the degree of change cost in my code So that I can evaluate it -# Scenario "Hello, world" project -ok 549 - Given I am in t/samples/hello_world/cpp +ok 549 - Then analizo must report that module Dog has anpm = 0.5 # -ok 550 - When I run "analizo metrics ." +ok 550 - And analizo must report that module Cat has anpm = 0.5 # -ok 551 - Then analizo must report that the project has change_cost = 0.75 +ok 551 - And analizo must report that module main has anpm = 0 # -# Scenario "Hello, world" project -ok 552 - Given I am in t/samples/hello_world/java +# Scenario number of parameters in the "Animals" project +ok 552 - Given I am in t/samples/animals/java # ok 553 - When I run "analizo metrics ." # -ok 554 - Then analizo must report that the project has change_cost = 0.75 -# -# Scenario "Hello, world" project -ok 555 - Given I am in t/samples/hello_world/csharp -# -ok 556 - When I run "analizo metrics ." -# -ok 557 - Then analizo must report that the project has change_cost = 0.75 -# -# Scenario "Animals" project -ok 558 - Given I am in t/samples/animals/cpp -# -ok 559 - When I run "analizo metrics ." +ok 554 - Then analizo must report that module Dog has anpm = 0.5 # -ok 560 - Then analizo must report that the project has change_cost = 0.44 +ok 555 - And analizo must report that module Cat has anpm = 0.5 # -# Scenario "Animals" project -ok 561 - Given I am in t/samples/animals/java +ok 556 - And analizo must report that module Main has anpm = 1 # -ok 562 - When I run "analizo metrics ." +# Scenario number of parameters in the "Animals" project +ok 557 - Given I am in t/samples/animals/csharp # -ok 563 - Then analizo must report that the project has change_cost = 0.44 +ok 558 - When I run "analizo metrics ." # -# Scenario "Animals" project -ok 564 - Given I am in t/samples/animals/csharp +ok 559 - Then analizo must report that module Dog has anpm = 0.5 # -ok 565 - When I run "analizo metrics ." +ok 560 - And analizo must report that module Cat has anpm = 0.5 # -ok 566 - Then analizo must report that the project has change_cost = 0.44 +ok 561 - And analizo must report that module main has anpm = 1 # -# Scenario "Hieracchical Graph" project -ok 567 - Given I am in t/samples/hierarchical_graph/c +# Feature number of abstract classes +# As a software developer I want analizo to report the number of modules with at least a defined method in my code So that I can evaluate it +# Scenario "Hello, world" project +ok 562 - Given I am in t/samples/hello_world/cpp # -ok 568 - When I run "analizo metrics ." +ok 563 - When I run "analizo metrics ." # -ok 569 - Then analizo must report that the project has change_cost = 0.42 +ok 564 - Then analizo must report that the project has total_modules_with_defined_methods = 2 # -# Scenario "Hieracchical Graph" project -ok 570 - Given I am in t/samples/hierarchical_graph/csharp +# Scenario "Hello, world" project +ok 565 - Given I am in t/samples/hello_world/java # -ok 571 - When I run "analizo metrics ." +ok 566 - When I run "analizo metrics ." # -ok 572 - Then analizo must report that the project has change_cost = 0.28 +ok 567 - Then analizo must report that the project has total_modules_with_defined_methods = 2 # -# Scenario "Cyclical Graph" project -ok 573 - Given I am in t/samples/cyclical_graph/c +# Scenario "Hello, world" project +ok 568 - Given I am in t/samples/hello_world/csharp # -ok 574 - When I run "analizo metrics ." +ok 569 - When I run "analizo metrics ." # -ok 575 - Then analizo must report that the project has change_cost = 0.5 +ok 570 - Then analizo must report that the project has total_modules_with_defined_methods = 2 # -# Scenario "Cyclical Graph" project -ok 576 - Given I am in t/samples/cyclical_graph/csharp +# Scenario "Animals" project +ok 571 - Given I am in t/samples/animals/cpp # -ok 577 - When I run "analizo metrics ." +ok 572 - When I run "analizo metrics ." # -ok 578 - Then analizo must report that the project has change_cost = 0.36 +ok 573 - Then analizo must report that the project has total_modules_with_defined_methods = 5 # -# Feature output only global metrics -# As a researcher I want to ouput only the global metrics So that I can evaluate several projects at once -# Scenario simple case -ok 579 - Given I am in t/samples/sample_basic/c/ -# -ok 580 - When I run "analizo metrics --global-only ." -# -ok 581 - Then the output must match "cbo_mean:" +# Scenario "Animals" project +ok 574 - Given I am in t/samples/animals/java # -ok 582 - And the output must not match "_module:" +ok 575 - When I run "analizo metrics ." # -# Scenario short version -ok 583 - Given I am in t/samples/sample_basic/c/ +ok 576 - Then analizo must report that the project has total_modules_with_defined_methods = 5 # -ok 584 - When I run "analizo metrics -g ." +# Scenario "Animals" project +ok 577 - Given I am in t/samples/animals/csharp # -ok 585 - Then the output must match "cbo_mean:" +ok 578 - When I run "analizo metrics ." # -ok 586 - And the output must not match "_module:" +ok 579 - Then analizo must report that the project has total_modules_with_defined_methods = 5 # # Feature output statistics values of metrics # As a researcher I want to ouput statistics values of metrics So that I can evaluate a project at once # Scenario "Hello, world" project -ok 587 - Given I am in t/samples/hello_world/ +ok 580 - Given I am in t/samples/hello_world/ # -ok 588 - When I run "analizo metrics ." +ok 581 - When I run "analizo metrics ." # -ok 589 - Then the output must match "acc_mean:" +ok 582 - Then the output must match "acc_mean:" # -ok 590 - Then the output must match "acc_mode:" +ok 583 - Then the output must match "acc_mode:" # -ok 591 - Then the output must match "acc_standard_deviation:" +ok 584 - Then the output must match "acc_standard_deviation:" # -ok 592 - Then the output must match "acc_sum:" +ok 585 - Then the output must match "acc_sum:" # -ok 593 - Then the output must match "acc_variance:" +ok 586 - Then the output must match "acc_variance:" # -ok 594 - Then the output must match "acc_quantile_min:" +ok 587 - Then the output must match "acc_quantile_min:" # -ok 595 - Then the output must match "acc_quantile_lower:" +ok 588 - Then the output must match "acc_quantile_lower:" # -ok 596 - Then the output must match "acc_quantile_median:" +ok 589 - Then the output must match "acc_quantile_median:" # -ok 597 - Then the output must match "acc_quantile_upper:" +ok 590 - Then the output must match "acc_quantile_upper:" # -ok 598 - Then the output must match "acc_quantile_max:" +ok 591 - Then the output must match "acc_quantile_max:" # -ok 599 - Then the output must match "acc_kurtosis:" +ok 592 - Then the output must match "acc_kurtosis:" # -ok 600 - Then the output must match "acc_skewness:" +ok 593 - Then the output must match "acc_skewness:" # # Scenario "Hello, world" project -ok 601 - Given I am in t/samples/hello_world/ +ok 594 - Given I am in t/samples/hello_world/ # -ok 602 - When I run "analizo metrics ." +ok 595 - When I run "analizo metrics ." # -ok 603 - Then the output must match "accm_mean:" +ok 596 - Then the output must match "accm_mean:" # -ok 604 - Then the output must match "accm_mode:" +ok 597 - Then the output must match "accm_mode:" # -ok 605 - Then the output must match "accm_standard_deviation:" +ok 598 - Then the output must match "accm_standard_deviation:" # -ok 606 - Then the output must match "accm_sum:" +ok 599 - Then the output must match "accm_sum:" # -ok 607 - Then the output must match "accm_variance:" +ok 600 - Then the output must match "accm_variance:" # -ok 608 - Then the output must match "accm_quantile_min:" +ok 601 - Then the output must match "accm_quantile_min:" # -ok 609 - Then the output must match "accm_quantile_lower:" +ok 602 - Then the output must match "accm_quantile_lower:" # -ok 610 - Then the output must match "accm_quantile_median:" +ok 603 - Then the output must match "accm_quantile_median:" # -ok 611 - Then the output must match "accm_quantile_upper:" +ok 604 - Then the output must match "accm_quantile_upper:" # -ok 612 - Then the output must match "accm_quantile_max:" +ok 605 - Then the output must match "accm_quantile_max:" # -ok 613 - Then the output must match "accm_kurtosis:" +ok 606 - Then the output must match "accm_kurtosis:" # -ok 614 - Then the output must match "accm_skewness:" +ok 607 - Then the output must match "accm_skewness:" # # Scenario "Hello, world" project -ok 615 - Given I am in t/samples/hello_world/ +ok 608 - Given I am in t/samples/hello_world/ # -ok 616 - When I run "analizo metrics ." +ok 609 - When I run "analizo metrics ." # -ok 617 - Then the output must match "amloc_mean:" +ok 610 - Then the output must match "amloc_mean:" # -ok 618 - Then the output must match "amloc_mode:" +ok 611 - Then the output must match "amloc_mode:" # -ok 619 - Then the output must match "amloc_standard_deviation:" +ok 612 - Then the output must match "amloc_standard_deviation:" # -ok 620 - Then the output must match "amloc_sum:" +ok 613 - Then the output must match "amloc_sum:" # -ok 621 - Then the output must match "amloc_variance:" +ok 614 - Then the output must match "amloc_variance:" # -ok 622 - Then the output must match "amloc_quantile_min:" +ok 615 - Then the output must match "amloc_quantile_min:" # -ok 623 - Then the output must match "amloc_quantile_lower:" +ok 616 - Then the output must match "amloc_quantile_lower:" # -ok 624 - Then the output must match "amloc_quantile_median:" +ok 617 - Then the output must match "amloc_quantile_median:" # -ok 625 - Then the output must match "amloc_quantile_upper:" +ok 618 - Then the output must match "amloc_quantile_upper:" # -ok 626 - Then the output must match "amloc_quantile_max:" +ok 619 - Then the output must match "amloc_quantile_max:" # -ok 627 - Then the output must match "amloc_kurtosis:" +ok 620 - Then the output must match "amloc_kurtosis:" # -ok 628 - Then the output must match "amloc_skewness:" +ok 621 - Then the output must match "amloc_skewness:" # # Scenario "Hello, world" project -ok 629 - Given I am in t/samples/hello_world/ +ok 622 - Given I am in t/samples/hello_world/ # -ok 630 - When I run "analizo metrics ." +ok 623 - When I run "analizo metrics ." # -ok 631 - Then the output must match "anpm_mean:" +ok 624 - Then the output must match "anpm_mean:" # -ok 632 - Then the output must match "anpm_mode:" +ok 625 - Then the output must match "anpm_mode:" # -ok 633 - Then the output must match "anpm_standard_deviation:" +ok 626 - Then the output must match "anpm_standard_deviation:" # -ok 634 - Then the output must match "anpm_sum:" +ok 627 - Then the output must match "anpm_sum:" # -ok 635 - Then the output must match "anpm_variance:" +ok 628 - Then the output must match "anpm_variance:" # -ok 636 - Then the output must match "anpm_quantile_min:" +ok 629 - Then the output must match "anpm_quantile_min:" # -ok 637 - Then the output must match "anpm_quantile_lower:" +ok 630 - Then the output must match "anpm_quantile_lower:" # -ok 638 - Then the output must match "anpm_quantile_median:" +ok 631 - Then the output must match "anpm_quantile_median:" # -ok 639 - Then the output must match "anpm_quantile_upper:" +ok 632 - Then the output must match "anpm_quantile_upper:" # -ok 640 - Then the output must match "anpm_quantile_max:" +ok 633 - Then the output must match "anpm_quantile_max:" # -ok 641 - Then the output must match "anpm_kurtosis:" +ok 634 - Then the output must match "anpm_kurtosis:" # -ok 642 - Then the output must match "anpm_skewness:" +ok 635 - Then the output must match "anpm_skewness:" # # Scenario "Hello, world" project -ok 643 - Given I am in t/samples/hello_world/ +ok 636 - Given I am in t/samples/hello_world/ # -ok 644 - When I run "analizo metrics ." +ok 637 - When I run "analizo metrics ." # -ok 645 - Then the output must match "cbo_mean:" +ok 638 - Then the output must match "cbo_mean:" # -ok 646 - Then the output must match "cbo_mode:" +ok 639 - Then the output must match "cbo_mode:" # -ok 647 - Then the output must match "cbo_standard_deviation:" +ok 640 - Then the output must match "cbo_standard_deviation:" # -ok 648 - Then the output must match "cbo_sum:" +ok 641 - Then the output must match "cbo_sum:" # -ok 649 - Then the output must match "cbo_variance:" +ok 642 - Then the output must match "cbo_variance:" # -ok 650 - Then the output must match "cbo_quantile_min:" +ok 643 - Then the output must match "cbo_quantile_min:" # -ok 651 - Then the output must match "cbo_quantile_lower:" +ok 644 - Then the output must match "cbo_quantile_lower:" # -ok 652 - Then the output must match "cbo_quantile_median:" +ok 645 - Then the output must match "cbo_quantile_median:" # -ok 653 - Then the output must match "cbo_quantile_upper:" +ok 646 - Then the output must match "cbo_quantile_upper:" # -ok 654 - Then the output must match "cbo_quantile_max:" +ok 647 - Then the output must match "cbo_quantile_max:" # -ok 655 - Then the output must match "cbo_kurtosis:" +ok 648 - Then the output must match "cbo_kurtosis:" # -ok 656 - Then the output must match "cbo_skewness:" +ok 649 - Then the output must match "cbo_skewness:" # # Scenario "Hello, world" project -ok 657 - Given I am in t/samples/hello_world/ +ok 650 - Given I am in t/samples/hello_world/ # -ok 658 - When I run "analizo metrics ." +ok 651 - When I run "analizo metrics ." # -ok 659 - Then the output must match "dit_mean:" +ok 652 - Then the output must match "dit_mean:" # -ok 660 - Then the output must match "dit_mode:" +ok 653 - Then the output must match "dit_mode:" # -ok 661 - Then the output must match "dit_standard_deviation:" +ok 654 - Then the output must match "dit_standard_deviation:" # -ok 662 - Then the output must match "dit_sum:" +ok 655 - Then the output must match "dit_sum:" # -ok 663 - Then the output must match "dit_variance:" +ok 656 - Then the output must match "dit_variance:" # -ok 664 - Then the output must match "dit_quantile_min:" +ok 657 - Then the output must match "dit_quantile_min:" # -ok 665 - Then the output must match "dit_quantile_lower:" +ok 658 - Then the output must match "dit_quantile_lower:" # -ok 666 - Then the output must match "dit_quantile_median:" +ok 659 - Then the output must match "dit_quantile_median:" # -ok 667 - Then the output must match "dit_quantile_upper:" +ok 660 - Then the output must match "dit_quantile_upper:" # -ok 668 - Then the output must match "dit_quantile_max:" +ok 661 - Then the output must match "dit_quantile_max:" # -ok 669 - Then the output must match "dit_kurtosis:" +ok 662 - Then the output must match "dit_kurtosis:" # -ok 670 - Then the output must match "dit_skewness:" +ok 663 - Then the output must match "dit_skewness:" # # Scenario "Hello, world" project -ok 671 - Given I am in t/samples/hello_world/ +ok 664 - Given I am in t/samples/hello_world/ # -ok 672 - When I run "analizo metrics ." +ok 665 - When I run "analizo metrics ." # -ok 673 - Then the output must match "lcom4_mean:" +ok 666 - Then the output must match "lcom4_mean:" # -ok 674 - Then the output must match "lcom4_mode:" +ok 667 - Then the output must match "lcom4_mode:" # -ok 675 - Then the output must match "lcom4_standard_deviation:" +ok 668 - Then the output must match "lcom4_standard_deviation:" # -ok 676 - Then the output must match "lcom4_sum:" +ok 669 - Then the output must match "lcom4_sum:" # -ok 677 - Then the output must match "lcom4_variance:" +ok 670 - Then the output must match "lcom4_variance:" # -ok 678 - Then the output must match "lcom4_quantile_min:" +ok 671 - Then the output must match "lcom4_quantile_min:" # -ok 679 - Then the output must match "lcom4_quantile_lower:" +ok 672 - Then the output must match "lcom4_quantile_lower:" # -ok 680 - Then the output must match "lcom4_quantile_median:" +ok 673 - Then the output must match "lcom4_quantile_median:" # -ok 681 - Then the output must match "lcom4_quantile_upper:" +ok 674 - Then the output must match "lcom4_quantile_upper:" # -ok 682 - Then the output must match "lcom4_quantile_max:" +ok 675 - Then the output must match "lcom4_quantile_max:" # -ok 683 - Then the output must match "lcom4_kurtosis:" +ok 676 - Then the output must match "lcom4_kurtosis:" # -ok 684 - Then the output must match "lcom4_skewness:" +ok 677 - Then the output must match "lcom4_skewness:" # # Scenario "Hello, world" project -ok 685 - Given I am in t/samples/hello_world/ +ok 678 - Given I am in t/samples/hello_world/ # -ok 686 - When I run "analizo metrics ." +ok 679 - When I run "analizo metrics ." # -ok 687 - Then the output must match "loc_mean:" +ok 680 - Then the output must match "loc_mean:" # -ok 688 - Then the output must match "loc_mode:" +ok 681 - Then the output must match "loc_mode:" # -ok 689 - Then the output must match "loc_standard_deviation:" +ok 682 - Then the output must match "loc_standard_deviation:" # -ok 690 - Then the output must match "loc_sum:" +ok 683 - Then the output must match "loc_sum:" # -ok 691 - Then the output must match "loc_variance:" +ok 684 - Then the output must match "loc_variance:" # -ok 692 - Then the output must match "loc_quantile_min:" +ok 685 - Then the output must match "loc_quantile_min:" # -ok 693 - Then the output must match "loc_quantile_lower:" +ok 686 - Then the output must match "loc_quantile_lower:" # -ok 694 - Then the output must match "loc_quantile_median:" +ok 687 - Then the output must match "loc_quantile_median:" # -ok 695 - Then the output must match "loc_quantile_upper:" +ok 688 - Then the output must match "loc_quantile_upper:" # -ok 696 - Then the output must match "loc_quantile_max:" +ok 689 - Then the output must match "loc_quantile_max:" # -ok 697 - Then the output must match "loc_kurtosis:" +ok 690 - Then the output must match "loc_kurtosis:" # -ok 698 - Then the output must match "loc_skewness:" +ok 691 - Then the output must match "loc_skewness:" # # Scenario "Hello, world" project -ok 699 - Given I am in t/samples/hello_world/ +ok 692 - Given I am in t/samples/hello_world/ # -ok 700 - When I run "analizo metrics ." +ok 693 - When I run "analizo metrics ." # -ok 701 - Then the output must match "mmloc_mean:" +ok 694 - Then the output must match "mmloc_mean:" # -ok 702 - Then the output must match "mmloc_mode:" +ok 695 - Then the output must match "mmloc_mode:" # -ok 703 - Then the output must match "mmloc_standard_deviation:" +ok 696 - Then the output must match "mmloc_standard_deviation:" # -ok 704 - Then the output must match "mmloc_sum:" +ok 697 - Then the output must match "mmloc_sum:" # -ok 705 - Then the output must match "mmloc_variance:" +ok 698 - Then the output must match "mmloc_variance:" # -ok 706 - Then the output must match "mmloc_quantile_min:" +ok 699 - Then the output must match "mmloc_quantile_min:" # -ok 707 - Then the output must match "mmloc_quantile_lower:" +ok 700 - Then the output must match "mmloc_quantile_lower:" # -ok 708 - Then the output must match "mmloc_quantile_median:" +ok 701 - Then the output must match "mmloc_quantile_median:" # -ok 709 - Then the output must match "mmloc_quantile_upper:" +ok 702 - Then the output must match "mmloc_quantile_upper:" # -ok 710 - Then the output must match "mmloc_quantile_max:" +ok 703 - Then the output must match "mmloc_quantile_max:" # -ok 711 - Then the output must match "mmloc_kurtosis:" +ok 704 - Then the output must match "mmloc_kurtosis:" # -ok 712 - Then the output must match "mmloc_skewness:" +ok 705 - Then the output must match "mmloc_skewness:" # # Scenario "Hello, world" project -ok 713 - Given I am in t/samples/hello_world/ +ok 706 - Given I am in t/samples/hello_world/ # -ok 714 - When I run "analizo metrics ." +ok 707 - When I run "analizo metrics ." # -ok 715 - Then the output must match "noa_mean:" +ok 708 - Then the output must match "noa_mean:" # -ok 716 - Then the output must match "noa_mode:" +ok 709 - Then the output must match "noa_mode:" # -ok 717 - Then the output must match "noa_standard_deviation:" +ok 710 - Then the output must match "noa_standard_deviation:" # -ok 718 - Then the output must match "noa_sum:" +ok 711 - Then the output must match "noa_sum:" # -ok 719 - Then the output must match "noa_variance:" +ok 712 - Then the output must match "noa_variance:" # -ok 720 - Then the output must match "noa_quantile_min:" +ok 713 - Then the output must match "noa_quantile_min:" # -ok 721 - Then the output must match "noa_quantile_lower:" +ok 714 - Then the output must match "noa_quantile_lower:" # -ok 722 - Then the output must match "noa_quantile_median:" +ok 715 - Then the output must match "noa_quantile_median:" # -ok 723 - Then the output must match "noa_quantile_upper:" +ok 716 - Then the output must match "noa_quantile_upper:" # -ok 724 - Then the output must match "noa_quantile_max:" +ok 717 - Then the output must match "noa_quantile_max:" # -ok 725 - Then the output must match "noa_kurtosis:" +ok 718 - Then the output must match "noa_kurtosis:" # -ok 726 - Then the output must match "noa_skewness:" +ok 719 - Then the output must match "noa_skewness:" # # Scenario "Hello, world" project -ok 727 - Given I am in t/samples/hello_world/ +ok 720 - Given I am in t/samples/hello_world/ # -ok 728 - When I run "analizo metrics ." +ok 721 - When I run "analizo metrics ." # -ok 729 - Then the output must match "noc_mean:" +ok 722 - Then the output must match "noc_mean:" # -ok 730 - Then the output must match "noc_mode:" +ok 723 - Then the output must match "noc_mode:" # -ok 731 - Then the output must match "noc_standard_deviation:" +ok 724 - Then the output must match "noc_standard_deviation:" # -ok 732 - Then the output must match "noc_sum:" +ok 725 - Then the output must match "noc_sum:" # -ok 733 - Then the output must match "noc_variance:" +ok 726 - Then the output must match "noc_variance:" # -ok 734 - Then the output must match "noc_quantile_min:" +ok 727 - Then the output must match "noc_quantile_min:" # -ok 735 - Then the output must match "noc_quantile_lower:" +ok 728 - Then the output must match "noc_quantile_lower:" # -ok 736 - Then the output must match "noc_quantile_median:" +ok 729 - Then the output must match "noc_quantile_median:" # -ok 737 - Then the output must match "noc_quantile_upper:" +ok 730 - Then the output must match "noc_quantile_upper:" # -ok 738 - Then the output must match "noc_quantile_max:" +ok 731 - Then the output must match "noc_quantile_max:" # -ok 739 - Then the output must match "noc_kurtosis:" +ok 732 - Then the output must match "noc_kurtosis:" # -ok 740 - Then the output must match "noc_skewness:" +ok 733 - Then the output must match "noc_skewness:" # # Scenario "Hello, world" project -ok 741 - Given I am in t/samples/hello_world/ +ok 734 - Given I am in t/samples/hello_world/ # -ok 742 - When I run "analizo metrics ." +ok 735 - When I run "analizo metrics ." # -ok 743 - Then the output must match "nom_mean:" +ok 736 - Then the output must match "nom_mean:" # -ok 744 - Then the output must match "nom_mode:" +ok 737 - Then the output must match "nom_mode:" # -ok 745 - Then the output must match "nom_standard_deviation:" +ok 738 - Then the output must match "nom_standard_deviation:" # -ok 746 - Then the output must match "nom_sum:" +ok 739 - Then the output must match "nom_sum:" # -ok 747 - Then the output must match "nom_variance:" +ok 740 - Then the output must match "nom_variance:" # -ok 748 - Then the output must match "nom_quantile_min:" +ok 741 - Then the output must match "nom_quantile_min:" # -ok 749 - Then the output must match "nom_quantile_lower:" +ok 742 - Then the output must match "nom_quantile_lower:" # -ok 750 - Then the output must match "nom_quantile_median:" +ok 743 - Then the output must match "nom_quantile_median:" # -ok 751 - Then the output must match "nom_quantile_upper:" +ok 744 - Then the output must match "nom_quantile_upper:" # -ok 752 - Then the output must match "nom_quantile_max:" +ok 745 - Then the output must match "nom_quantile_max:" # -ok 753 - Then the output must match "nom_kurtosis:" +ok 746 - Then the output must match "nom_kurtosis:" # -ok 754 - Then the output must match "nom_skewness:" +ok 747 - Then the output must match "nom_skewness:" # # Scenario "Hello, world" project -ok 755 - Given I am in t/samples/hello_world/ +ok 748 - Given I am in t/samples/hello_world/ # -ok 756 - When I run "analizo metrics ." +ok 749 - When I run "analizo metrics ." # -ok 757 - Then the output must match "npm_mean:" +ok 750 - Then the output must match "npm_mean:" # -ok 758 - Then the output must match "npm_mode:" +ok 751 - Then the output must match "npm_mode:" # -ok 759 - Then the output must match "npm_standard_deviation:" +ok 752 - Then the output must match "npm_standard_deviation:" # -ok 760 - Then the output must match "npm_sum:" +ok 753 - Then the output must match "npm_sum:" # -ok 761 - Then the output must match "npm_variance:" +ok 754 - Then the output must match "npm_variance:" # -ok 762 - Then the output must match "npm_quantile_min:" +ok 755 - Then the output must match "npm_quantile_min:" # -ok 763 - Then the output must match "npm_quantile_lower:" +ok 756 - Then the output must match "npm_quantile_lower:" # -ok 764 - Then the output must match "npm_quantile_median:" +ok 757 - Then the output must match "npm_quantile_median:" # -ok 765 - Then the output must match "npm_quantile_upper:" +ok 758 - Then the output must match "npm_quantile_upper:" # -ok 766 - Then the output must match "npm_quantile_max:" +ok 759 - Then the output must match "npm_quantile_max:" # -ok 767 - Then the output must match "npm_kurtosis:" +ok 760 - Then the output must match "npm_kurtosis:" # -ok 768 - Then the output must match "npm_skewness:" +ok 761 - Then the output must match "npm_skewness:" # # Scenario "Hello, world" project -ok 769 - Given I am in t/samples/hello_world/ +ok 762 - Given I am in t/samples/hello_world/ # -ok 770 - When I run "analizo metrics ." +ok 763 - When I run "analizo metrics ." # -ok 771 - Then the output must match "npa_mean:" +ok 764 - Then the output must match "npa_mean:" # -ok 772 - Then the output must match "npa_mode:" +ok 765 - Then the output must match "npa_mode:" # -ok 773 - Then the output must match "npa_standard_deviation:" +ok 766 - Then the output must match "npa_standard_deviation:" # -ok 774 - Then the output must match "npa_sum:" +ok 767 - Then the output must match "npa_sum:" # -ok 775 - Then the output must match "npa_variance:" +ok 768 - Then the output must match "npa_variance:" # -ok 776 - Then the output must match "npa_quantile_min:" +ok 769 - Then the output must match "npa_quantile_min:" # -ok 777 - Then the output must match "npa_quantile_lower:" +ok 770 - Then the output must match "npa_quantile_lower:" # -ok 778 - Then the output must match "npa_quantile_median:" +ok 771 - Then the output must match "npa_quantile_median:" # -ok 779 - Then the output must match "npa_quantile_upper:" +ok 772 - Then the output must match "npa_quantile_upper:" # -ok 780 - Then the output must match "npa_quantile_max:" +ok 773 - Then the output must match "npa_quantile_max:" # -ok 781 - Then the output must match "npa_kurtosis:" +ok 774 - Then the output must match "npa_kurtosis:" # -ok 782 - Then the output must match "npa_skewness:" +ok 775 - Then the output must match "npa_skewness:" # # Scenario "Hello, world" project -ok 783 - Given I am in t/samples/hello_world/ +ok 776 - Given I am in t/samples/hello_world/ # -ok 784 - When I run "analizo metrics ." +ok 777 - When I run "analizo metrics ." # -ok 785 - Then the output must match "rfc_mean:" +ok 778 - Then the output must match "rfc_mean:" # -ok 786 - Then the output must match "rfc_mode:" +ok 779 - Then the output must match "rfc_mode:" # -ok 787 - Then the output must match "rfc_standard_deviation:" +ok 780 - Then the output must match "rfc_standard_deviation:" # -ok 788 - Then the output must match "rfc_sum:" +ok 781 - Then the output must match "rfc_sum:" # -ok 789 - Then the output must match "rfc_variance:" +ok 782 - Then the output must match "rfc_variance:" # -ok 790 - Then the output must match "rfc_quantile_min:" +ok 783 - Then the output must match "rfc_quantile_min:" # -ok 791 - Then the output must match "rfc_quantile_lower:" +ok 784 - Then the output must match "rfc_quantile_lower:" # -ok 792 - Then the output must match "rfc_quantile_median:" +ok 785 - Then the output must match "rfc_quantile_median:" # -ok 793 - Then the output must match "rfc_quantile_upper:" +ok 786 - Then the output must match "rfc_quantile_upper:" # -ok 794 - Then the output must match "rfc_quantile_max:" +ok 787 - Then the output must match "rfc_quantile_max:" # -ok 795 - Then the output must match "rfc_kurtosis:" +ok 788 - Then the output must match "rfc_kurtosis:" # -ok 796 - Then the output must match "rfc_skewness:" +ok 789 - Then the output must match "rfc_skewness:" # # Scenario "Hello, world" project -ok 797 - Given I am in t/samples/hello_world/ +ok 790 - Given I am in t/samples/hello_world/ # -ok 798 - When I run "analizo metrics ." +ok 791 - When I run "analizo metrics ." # -ok 799 - Then the output must match "sc_mean:" +ok 792 - Then the output must match "sc_mean:" # -ok 800 - Then the output must match "sc_mode:" +ok 793 - Then the output must match "sc_mode:" # -ok 801 - Then the output must match "sc_standard_deviation:" +ok 794 - Then the output must match "sc_standard_deviation:" # -ok 802 - Then the output must match "sc_sum:" +ok 795 - Then the output must match "sc_sum:" # -ok 803 - Then the output must match "sc_variance:" +ok 796 - Then the output must match "sc_variance:" # -ok 804 - Then the output must match "sc_quantile_min:" +ok 797 - Then the output must match "sc_quantile_min:" # -ok 805 - Then the output must match "sc_quantile_lower:" +ok 798 - Then the output must match "sc_quantile_lower:" # -ok 806 - Then the output must match "sc_quantile_median:" +ok 799 - Then the output must match "sc_quantile_median:" # -ok 807 - Then the output must match "sc_quantile_upper:" +ok 800 - Then the output must match "sc_quantile_upper:" # -ok 808 - Then the output must match "sc_quantile_max:" +ok 801 - Then the output must match "sc_quantile_max:" # -ok 809 - Then the output must match "sc_kurtosis:" +ok 802 - Then the output must match "sc_kurtosis:" # -ok 810 - Then the output must match "sc_skewness:" +ok 803 - Then the output must match "sc_skewness:" # -# Feature list metrics -# As a Research or Practioner I want to extract metrics from source code So that I can learn, understand and evaluate it -# Scenario listing metrics -ok 811 - When I run "analizo metrics --list" +# Feature output file for metrics tool +# Scenario passing output file in the command line +ok 804 - Given I am in . # -ok 812 - Then analizo must present a list of metrics +ok 805 - When I run "analizo metrics --output output.yml.tmp t/samples/sample_basic/" # -# Scenario listing metrics -ok 813 - When I run "analizo metrics -l" +ok 806 - Then the contents of "output.yml.tmp" must match "module2" # -ok 814 - Then analizo must present a list of metrics +ok 807 - And the exit status must be 0 # -# Feature number of attributes metric -# As a software developer I want to calculate the number of attributes per module metric So that I can evaluate my code -# Scenario number of attributes in the "Animals" project -ok 815 - Given I am in t/samples/animals/cpp +# Scenario passing output file without permission to write +ok 808 - Given I am in . # -ok 816 - When I run "analizo metrics ." +ok 809 - When I run "touch output.tmp" # -ok 817 - Then analizo must report that module Dog has noa = 1 +ok 810 - And I run "chmod 000 output.tmp" # -ok 818 - And analizo must report that module Cat has noa = 1 +ok 811 - And I run "analizo metrics --output output.tmp t/samples/sample_basic/" # -ok 819 - And analizo must report that module main has noa = 0 +ok 812 - Then the exit status must not be 0 # -# Scenario number of attributes in the "Animals" project -ok 820 - Given I am in t/samples/animals/java +ok 813 - And analizo must emit a warning matching "Permission denied" # -ok 821 - When I run "analizo metrics ." +# Scenario passing output file in an unexisting directory +ok 814 - Given I am in . # -ok 822 - Then analizo must report that module Dog has noa = 1 +ok 815 - When I run "analizo metrics --output /this/directory/must/not/exists/output.yml t/samples" # -ok 823 - And analizo must report that module Cat has noa = 1 +ok 816 - Then the exit status must not be 0 # -ok 824 - And analizo must report that module Main has noa = 0 +ok 817 - And analizo must emit a warning matching "No such file or directory" # -# Scenario number of attributes in the "Animals" project -ok 825 - Given I am in t/samples/animals/csharp +# Feature average cyclomatic complexity per method +# As a software developer I want to calculate the average cyclomatic complexity per method of my code So that I can spot the more complex modules and refactor them +# Scenario my "conditionals" C project +ok 818 - Given I am in t/samples/conditionals/c # -ok 826 - When I run "analizo metrics ." +ok 819 - When I run "analizo metrics ." # -ok 827 - Then analizo must report that module Dog has noa = 1 +ok 820 - Then analizo must report that module cc1 has accm = 1 # -ok 828 - And analizo must report that module Cat has noa = 1 +ok 821 - Then analizo must report that module cc2 has accm = 2 # -ok 829 - And analizo must report that module main has noa = 0 +ok 822 - Then analizo must report that module cc3 has accm = 3 # -# Feature number of methods -# As a software developer I want analizo to report the number of methods of each module So that I can evaluate it -# Scenario number of methods of the polygon java sample -ok 830 - Given I am in t/samples/polygons/cpp +ok 823 - Then analizo must report that module cc4 has accm = 4 # -ok 831 - When I run "analizo metrics ." +# Scenario my "conditionals" C project +ok 824 - Given I am in t/samples/conditionals/csharp # -ok 832 - Then analizo must report that module CPolygon has nom = 3 +ok 825 - When I run "analizo metrics ." # -# Scenario number of methods of the polygon java sample -ok 833 - Given I am in t/samples/polygons/cpp +ok 826 - Then analizo must report that module cc1 has accm = 1 # -ok 834 - When I run "analizo metrics ." +ok 827 - Then analizo must report that module cc2 has accm = 2 # -ok 835 - Then analizo must report that module CTetragon has nom = 2 +ok 828 - Then analizo must report that module cc3 has accm = 3 # -# Scenario number of methods of the polygon java sample -ok 836 - Given I am in t/samples/polygons/java +ok 829 - Then analizo must report that module cc4 has accm = 4 # -ok 837 - When I run "analizo metrics ." +# Feature list metrics +# As a Research or Practioner I want to extract metrics from source code So that I can learn, understand and evaluate it +# Scenario listing metrics +ok 830 - When I run "analizo metrics --list" # -ok 838 - Then analizo must report that module Polygon has nom = 3 +ok 831 - Then analizo must present a list of metrics # -# Scenario number of methods of the polygon java sample -ok 839 - Given I am in t/samples/polygons/csharp +# Scenario listing metrics +ok 832 - When I run "analizo metrics -l" # -ok 840 - When I run "analizo metrics ." +ok 833 - Then analizo must present a list of metrics # -ok 841 - Then analizo must report that module Polygon has nom = 2 +# Feature output only global metrics +# As a researcher I want to ouput only the global metrics So that I can evaluate several projects at once +# Scenario simple case +ok 834 - Given I am in t/samples/sample_basic/c/ # -# Scenario number of methods of the polygon java sample -ok 842 - Given I am in t/samples/polygons/csharp +ok 835 - When I run "analizo metrics --global-only ." +# +ok 836 - Then the output must match "cbo_mean:" +# +ok 837 - And the output must not match "_module:" +# +# Scenario short version +ok 838 - Given I am in t/samples/sample_basic/c/ +# +ok 839 - When I run "analizo metrics -g ." +# +ok 840 - Then the output must match "cbo_mean:" +# +ok 841 - And the output must not match "_module:" +# +# Feature number of public methods metric +# As a software developer I want to calculate the number of public methods per module metric So that I can evaluate my code +# Scenario number of attributes in the "Animals" project +ok 842 - Given I am in t/samples/polygons/cpp # ok 843 - When I run "analizo metrics ." # -ok 844 - Then analizo must report that module Tetragon has nom = 2 +ok 844 - Then analizo must report that module CPolygon has npm = 2 # -# Scenario number of methods of the polygon java sample -ok 845 - Given I am in t/samples/animals/cpp +# Scenario number of attributes in the "Animals" project +ok 845 - Given I am in t/samples/polygons/cpp # ok 846 - When I run "analizo metrics ." # -ok 847 - Then analizo must report that module Animal has nom = 1 +ok 847 - Then analizo must report that module CTetragon has npm = 1 # -# Scenario number of methods of the polygon java sample -ok 848 - Given I am in t/samples/animals/cpp +# Scenario number of attributes in the "Animals" project +ok 848 - Given I am in t/samples/polygons/java # ok 849 - When I run "analizo metrics ." # -ok 850 - Then analizo must report that module Cat has nom = 2 +ok 850 - Then analizo must report that module Polygon has npm = 3 # -# Scenario number of methods of the polygon java sample -ok 851 - Given I am in t/samples/animals/cpp +# Scenario number of attributes in the "Animals" project +ok 851 - Given I am in t/samples/polygons/csharp # ok 852 - When I run "analizo metrics ." # -ok 853 - Then analizo must report that module Dog has nom = 2 +ok 853 - Then analizo must report that module Polygon has npm = 2 # -# Scenario number of methods of the polygon java sample -ok 854 - Given I am in t/samples/animals/java +# Scenario number of attributes in the "Animals" project +ok 854 - Given I am in t/samples/animals/cpp # ok 855 - When I run "analizo metrics ." # -ok 856 - Then analizo must report that module Animal has nom = 1 +ok 856 - Then analizo must report that module Animal has npm = 1 # -# Scenario number of methods of the polygon java sample -ok 857 - Given I am in t/samples/animals/java +# Scenario number of attributes in the "Animals" project +ok 857 - Given I am in t/samples/animals/cpp # ok 858 - When I run "analizo metrics ." # -ok 859 - Then analizo must report that module Cat has nom = 2 +ok 859 - Then analizo must report that module Cat has npm = 2 # -# Scenario number of methods of the polygon java sample -ok 860 - Given I am in t/samples/animals/java +# Scenario number of attributes in the "Animals" project +ok 860 - Given I am in t/samples/animals/cpp # ok 861 - When I run "analizo metrics ." # -ok 862 - Then analizo must report that module Dog has nom = 2 +ok 862 - Then analizo must report that module Dog has npm = 2 # -# Scenario number of methods of the polygon java sample -ok 863 - Given I am in t/samples/animals/csharp +# Scenario number of attributes in the "Animals" project +ok 863 - Given I am in t/samples/animals/java # ok 864 - When I run "analizo metrics ." # -ok 865 - Then analizo must report that module Animal has nom = 1 +ok 865 - Then analizo must report that module Animal has npm = 1 # -# Scenario number of methods of the polygon java sample -ok 866 - Given I am in t/samples/animals/csharp +# Scenario number of attributes in the "Animals" project +ok 866 - Given I am in t/samples/animals/java # ok 867 - When I run "analizo metrics ." # -ok 868 - Then analizo must report that module Cat has nom = 2 +ok 868 - Then analizo must report that module Cat has npm = 2 # -# Scenario number of methods of the polygon java sample -ok 869 - Given I am in t/samples/animals/csharp +# Scenario number of attributes in the "Animals" project +ok 869 - Given I am in t/samples/animals/java # ok 870 - When I run "analizo metrics ." # -ok 871 - Then analizo must report that module Dog has nom = 2 +ok 871 - Then analizo must report that module Dog has npm = 2 # -# Scenario not computes macro on C code as method definition -ok 872 - Given I am in t/samples/macro +# Scenario number of attributes in the "Animals" project +ok 872 - Given I am in t/samples/animals/csharp # ok 873 - When I run "analizo metrics ." # -ok 874 - Then analizo must report that module using_macro has nom = 1 +ok 874 - Then analizo must report that module Animal has npm = 1 # -# Feature coupling between objects -# As a software developer I want analizo to report the value of CBO metric in my code So that I can evaluate it -# Scenario "Hello, world" project -ok 875 - Given I am in t/samples/hello_world/c +# Scenario number of attributes in the "Animals" project +ok 875 - Given I am in t/samples/animals/csharp # ok 876 - When I run "analizo metrics ." # -ok 877 - Then analizo must report that module main has cbo = 1 +ok 877 - Then analizo must report that module Cat has npm = 2 # -# Scenario "Hello, world" project -ok 878 - Given I am in t/samples/hello_world/cpp +# Scenario number of attributes in the "Animals" project +ok 878 - Given I am in t/samples/animals/csharp # ok 879 - When I run "analizo metrics ." # -ok 880 - Then analizo must report that module main has cbo = 1 +ok 880 - Then analizo must report that module Dog has npm = 2 # +# Feature change cost degree +# As a software developer I want analizo to report the degree of change cost in my code So that I can evaluate it # Scenario "Hello, world" project -ok 881 - Given I am in t/samples/hello_world/java +ok 881 - Given I am in t/samples/hello_world/cpp # ok 882 - When I run "analizo metrics ." # -ok 883 - Then analizo must report that module Main has cbo = 1 +ok 883 - Then analizo must report that the project has change_cost = 0.75 # # Scenario "Hello, world" project -ok 884 - Given I am in t/samples/hello_world/csharp +ok 884 - Given I am in t/samples/hello_world/java # ok 885 - When I run "analizo metrics ." # -ok 886 - Then analizo must report that module main has cbo = 1 +ok 886 - Then analizo must report that the project has change_cost = 0.75 # -# Scenario "Animals" project -ok 887 - Given I am in t/samples/animals/cpp +# Scenario "Hello, world" project +ok 887 - Given I am in t/samples/hello_world/csharp # ok 888 - When I run "analizo metrics ." # -ok 889 - Then analizo must report that module main has cbo = 1 +ok 889 - Then analizo must report that the project has change_cost = 0.75 # # Scenario "Animals" project ok 890 - Given I am in t/samples/animals/cpp # ok 891 - When I run "analizo metrics ." # -ok 892 - Then analizo must report that module mammal has cbo = 0 +ok 892 - Then analizo must report that the project has change_cost = 0.44 # # Scenario "Animals" project ok 893 - Given I am in t/samples/animals/java # ok 894 - When I run "analizo metrics ." # -ok 895 - Then analizo must report that module Main has cbo = 1 +ok 895 - Then analizo must report that the project has change_cost = 0.44 # # Scenario "Animals" project -ok 896 - Given I am in t/samples/animals/java +ok 896 - Given I am in t/samples/animals/csharp # ok 897 - When I run "analizo metrics ." # -ok 898 - Then analizo must report that module Mammal has cbo = 0 +ok 898 - Then analizo must report that the project has change_cost = 0.44 # -# Scenario "Animals" project -ok 899 - Given I am in t/samples/animals/csharp +# Scenario "Hieracchical Graph" project +ok 899 - Given I am in t/samples/hierarchical_graph/c # ok 900 - When I run "analizo metrics ." # -ok 901 - Then analizo must report that module main has cbo = 1 +ok 901 - Then analizo must report that the project has change_cost = 0.42 # -# Scenario "Animals" project -ok 902 - Given I am in t/samples/animals/csharp +# Scenario "Hieracchical Graph" project +ok 902 - Given I am in t/samples/hierarchical_graph/csharp # ok 903 - When I run "analizo metrics ." # -ok 904 - Then analizo must report that module Mammal has cbo = 0 +ok 904 - Then analizo must report that the project has change_cost = 0.28 # -# Feature total modules -# As a software developer I want analizo to report the total number of modules in my code So that I can evaluate it -# Scenario Java Enumeration sample -ok 905 - Given I am in t/samples/enumeration +# Scenario "Cyclical Graph" project +ok 905 - Given I am in t/samples/cyclical_graph/c # ok 906 - When I run "analizo metrics ." # -ok 907 - Then analizo must report that the project has total_modules = 3 +ok 907 - Then analizo must report that the project has change_cost = 0.5 # -# Feature output file for metrics tool -# Scenario passing output file in the command line -ok 908 - Given I am in . +# Scenario "Cyclical Graph" project +ok 908 - Given I am in t/samples/cyclical_graph/csharp # -ok 909 - When I run "analizo metrics --output output.yml.tmp t/samples/sample_basic/" +ok 909 - When I run "analizo metrics ." # -ok 910 - Then the contents of "output.yml.tmp" must match "module2" +ok 910 - Then analizo must report that the project has change_cost = 0.36 # -ok 911 - And the exit status must be 0 +# Feature number of abstract classes +# As a software developer I want analizo to report the number of abstract classes in my code So that I can evaluate it +# Scenario "Hello, world" project +ok 911 - Given I am in t/samples/hello_world/cpp # -# Scenario passing output file without permission to write -ok 912 - Given I am in . +ok 912 - When I run "analizo metrics ." # -ok 913 - When I run "touch output.tmp" +ok 913 - Then analizo must report that the project has total_abstract_classes = 0 # -ok 914 - And I run "chmod 000 output.tmp" +# Scenario "Hello, world" project +ok 914 - Given I am in t/samples/hello_world/java # -ok 915 - And I run "analizo metrics --output output.tmp t/samples/sample_basic/" +ok 915 - When I run "analizo metrics ." # -ok 916 - Then the exit status must not be 0 +ok 916 - Then analizo must report that the project has total_abstract_classes = 0 # -ok 917 - And analizo must emit a warning matching "Permission denied" +# Scenario "Hello, world" project +ok 917 - Given I am in t/samples/hello_world/csharp # -# Scenario passing output file in an unexisting directory -ok 918 - Given I am in . +ok 918 - When I run "analizo metrics ." # -ok 919 - When I run "analizo metrics --output /this/directory/must/not/exists/output.yml t/samples" +ok 919 - Then analizo must report that the project has total_abstract_classes = 0 # -ok 920 - Then the exit status must not be 0 +# Scenario "Animals" project +ok 920 - Given I am in t/samples/animals/cpp # -ok 921 - And analizo must emit a warning matching "No such file or directory" +ok 921 - When I run "analizo metrics ." # -# Feature number of abstract classes -# As a software developer I want analizo to report the number of modules with at least a defined method in my code So that I can evaluate it -# Scenario "Hello, world" project -ok 922 - Given I am in t/samples/hello_world/cpp +ok 922 - Then analizo must report that the project has total_abstract_classes = 2 # -ok 923 - When I run "analizo metrics ." +# Scenario "Animals" project +ok 923 - Given I am in t/samples/animals/java # -ok 924 - Then analizo must report that the project has total_modules_with_defined_methods = 2 +ok 924 - When I run "analizo metrics ." # -# Scenario "Hello, world" project -ok 925 - Given I am in t/samples/hello_world/java +ok 925 - Then analizo must report that the project has total_abstract_classes = 2 # -ok 926 - When I run "analizo metrics ." +# Scenario "Animals" project +ok 926 - Given I am in t/samples/animals/csharp # -ok 927 - Then analizo must report that the project has total_modules_with_defined_methods = 2 +ok 927 - When I run "analizo metrics ." # -# Scenario "Hello, world" project -ok 928 - Given I am in t/samples/hello_world/csharp +ok 928 - Then analizo must report that the project has total_abstract_classes = 2 # -ok 929 - When I run "analizo metrics ." +# Scenario "Polygons" project +ok 929 - Given I am in t/samples/polygons/cpp # -ok 930 - Then analizo must report that the project has total_modules_with_defined_methods = 2 +ok 930 - When I run "analizo metrics ." # -# Scenario "Animals" project -ok 931 - Given I am in t/samples/animals/cpp +ok 931 - Then analizo must report that the project has total_abstract_classes = 2 # -ok 932 - When I run "analizo metrics ." +# Scenario "Polygons" project +ok 932 - Given I am in t/samples/polygons/java # -ok 933 - Then analizo must report that the project has total_modules_with_defined_methods = 5 +ok 933 - When I run "analizo metrics ." # -# Scenario "Animals" project -ok 934 - Given I am in t/samples/animals/java +ok 934 - Then analizo must report that the project has total_abstract_classes = 2 # -ok 935 - When I run "analizo metrics ." +# Scenario "Polygons" project +ok 935 - Given I am in t/samples/polygons/csharp # -ok 936 - Then analizo must report that the project has total_modules_with_defined_methods = 5 +ok 936 - When I run "analizo metrics ." # -# Scenario "Animals" project -ok 937 - Given I am in t/samples/animals/csharp +ok 937 - Then analizo must report that the project has total_abstract_classes = 2 # -ok 938 - When I run "analizo metrics ." +# Scenario "AbstractClass" project +ok 938 - Given I am in t/samples/abstract_class/java # -ok 939 - Then analizo must report that the project has total_modules_with_defined_methods = 5 +ok 939 - When I run "analizo metrics ." # -# Feature number of abstract classes -# As a software developer I want analizo to report the number of modules with at least a defined method in my code So that I can evaluate it -# Scenario "Hello, world" project -ok 940 - Given I am in t/samples/hello_world/cpp +ok 940 - Then analizo must report that the project has total_abstract_classes = 1 # -ok 941 - When I run "analizo metrics ." +ok 941 - And analizo must report that the project has total_methods_per_abstract_class = 6 # -ok 942 - Then analizo must report that the project has total_modules_with_defined_attributes = 1 +# Scenario "AbstractClass" project +ok 942 - Given I am in t/samples/abstract_class/csharp # -# Scenario "Hello, world" project -ok 943 - Given I am in t/samples/hello_world/java +ok 943 - When I run "analizo metrics ." # -ok 944 - When I run "analizo metrics ." +ok 944 - Then analizo must report that the project has total_abstract_classes = 1 # -ok 945 - Then analizo must report that the project has total_modules_with_defined_attributes = 1 +ok 945 - And analizo must report that the project has total_methods_per_abstract_class = 1 # +# Feature coupling between objects +# As a software developer I want analizo to report the value of CBO metric in my code So that I can evaluate it # Scenario "Hello, world" project -ok 946 - Given I am in t/samples/hello_world/csharp +ok 946 - Given I am in t/samples/hello_world/c # ok 947 - When I run "analizo metrics ." # -ok 948 - Then analizo must report that the project has total_modules_with_defined_attributes = 1 +ok 948 - Then analizo must report that module main has cbo = 1 # -# Scenario "Animals" project -ok 949 - Given I am in t/samples/animals/cpp +# Scenario "Hello, world" project +ok 949 - Given I am in t/samples/hello_world/cpp # ok 950 - When I run "analizo metrics ." # -ok 951 - Then analizo must report that the project has total_modules_with_defined_attributes = 2 +ok 951 - Then analizo must report that module main has cbo = 1 # -# Scenario "Animals" project -ok 952 - Given I am in t/samples/animals/java +# Scenario "Hello, world" project +ok 952 - Given I am in t/samples/hello_world/java # ok 953 - When I run "analizo metrics ." # -ok 954 - Then analizo must report that the project has total_modules_with_defined_attributes = 2 +ok 954 - Then analizo must report that module Main has cbo = 1 # -# Scenario "Animals" project -ok 955 - Given I am in t/samples/animals/csharp +# Scenario "Hello, world" project +ok 955 - Given I am in t/samples/hello_world/csharp # ok 956 - When I run "analizo metrics ." # -ok 957 - Then analizo must report that the project has total_modules_with_defined_attributes = 2 +ok 957 - Then analizo must report that module main has cbo = 1 # -# Feature number of public methods metric -# As a software developer I want to calculate the number of public methods per module metric So that I can evaluate my code -# Scenario number of attributes in the "Animals" project -ok 958 - Given I am in t/samples/polygons/cpp +# Scenario "Animals" project +ok 958 - Given I am in t/samples/animals/cpp # ok 959 - When I run "analizo metrics ." # -ok 960 - Then analizo must report that module CPolygon has npm = 2 +ok 960 - Then analizo must report that module main has cbo = 1 # -# Scenario number of attributes in the "Animals" project -ok 961 - Given I am in t/samples/polygons/cpp +# Scenario "Animals" project +ok 961 - Given I am in t/samples/animals/cpp # ok 962 - When I run "analizo metrics ." # -ok 963 - Then analizo must report that module CTetragon has npm = 1 +ok 963 - Then analizo must report that module mammal has cbo = 0 # -# Scenario number of attributes in the "Animals" project -ok 964 - Given I am in t/samples/polygons/java +# Scenario "Animals" project +ok 964 - Given I am in t/samples/animals/java # ok 965 - When I run "analizo metrics ." # -ok 966 - Then analizo must report that module Polygon has npm = 3 +ok 966 - Then analizo must report that module Main has cbo = 1 # -# Scenario number of attributes in the "Animals" project -ok 967 - Given I am in t/samples/polygons/csharp +# Scenario "Animals" project +ok 967 - Given I am in t/samples/animals/java # ok 968 - When I run "analizo metrics ." # -ok 969 - Then analizo must report that module Polygon has npm = 2 +ok 969 - Then analizo must report that module Mammal has cbo = 0 # -# Scenario number of attributes in the "Animals" project -ok 970 - Given I am in t/samples/animals/cpp +# Scenario "Animals" project +ok 970 - Given I am in t/samples/animals/csharp # ok 971 - When I run "analizo metrics ." # -ok 972 - Then analizo must report that module Animal has npm = 1 +ok 972 - Then analizo must report that module main has cbo = 1 # -# Scenario number of attributes in the "Animals" project -ok 973 - Given I am in t/samples/animals/cpp +# Scenario "Animals" project +ok 973 - Given I am in t/samples/animals/csharp # ok 974 - When I run "analizo metrics ." # -ok 975 - Then analizo must report that module Cat has npm = 2 +ok 975 - Then analizo must report that module Mammal has cbo = 0 # -# Scenario number of attributes in the "Animals" project -ok 976 - Given I am in t/samples/animals/cpp +# Feature total modules +# As a software developer I want analizo to report the total number of modules in my code So that I can evaluate it +# Scenario Java Enumeration sample +ok 976 - Given I am in t/samples/enumeration # ok 977 - When I run "analizo metrics ." # -ok 978 - Then analizo must report that module Dog has npm = 2 +ok 978 - Then analizo must report that the project has total_modules = 3 # -# Scenario number of attributes in the "Animals" project -ok 979 - Given I am in t/samples/animals/java +# Feature afferent connections with deep inheritance +# As a software developer I want analizo to report the afferent connections of each module So that I can evaluate it +# Scenario afferent connections of the dog family java sample +ok 979 - Given I am in t/samples/deep_inheritance/java # ok 980 - When I run "analizo metrics ." # -ok 981 - Then analizo must report that module Animal has npm = 1 +ok 981 - Then analizo must report that module Dog has acc = 7 # -# Scenario number of attributes in the "Animals" project -ok 982 - Given I am in t/samples/animals/java +# Scenario afferent connections of the dog family java sample +ok 982 - Given I am in t/samples/deep_inheritance/java # ok 983 - When I run "analizo metrics ." # -ok 984 - Then analizo must report that module Cat has npm = 2 +ok 984 - Then analizo must report that module DogFirstGreatGrandson has acc = 1 # -# Scenario number of attributes in the "Animals" project -ok 985 - Given I am in t/samples/animals/java +# Scenario afferent connections of the dog family java sample +ok 985 - Given I am in t/samples/deep_inheritance/java # ok 986 - When I run "analizo metrics ." # -ok 987 - Then analizo must report that module Dog has npm = 2 +ok 987 - Then analizo must report that module DogFirstPuppy has acc = 4 # -# Scenario number of attributes in the "Animals" project -ok 988 - Given I am in t/samples/animals/csharp +# Scenario afferent connections of the dog family java sample +ok 988 - Given I am in t/samples/deep_inheritance/java # ok 989 - When I run "analizo metrics ." # -ok 990 - Then analizo must report that module Animal has npm = 1 +ok 990 - Then analizo must report that module DogGrandson has acc = 3 # -# Scenario number of attributes in the "Animals" project -ok 991 - Given I am in t/samples/animals/csharp +# Scenario afferent connections of the dog family java sample +ok 991 - Given I am in t/samples/deep_inheritance/java # ok 992 - When I run "analizo metrics ." # -ok 993 - Then analizo must report that module Cat has npm = 2 +ok 993 - Then analizo must report that module DogSecondGreatGrandson has acc = 0 # -# Scenario number of attributes in the "Animals" project -ok 994 - Given I am in t/samples/animals/csharp +# Scenario afferent connections of the dog family java sample +ok 994 - Given I am in t/samples/deep_inheritance/java # ok 995 - When I run "analizo metrics ." # -ok 996 - Then analizo must report that module Dog has npm = 2 +ok 996 - Then analizo must report that module DogSecondPuppy has acc = 0 # -# Feature average cyclomatic complexity per method -# As a software developer I want to calculate the average cyclomatic complexity per method of my code So that I can spot the more complex modules and refactor them -# Scenario my "conditionals" C project -ok 997 - Given I am in t/samples/conditionals/c +# Scenario afferent connections of the dog family java sample +ok 997 - Given I am in t/samples/deep_inheritance/java # ok 998 - When I run "analizo metrics ." # -ok 999 - Then analizo must report that module cc1 has accm = 1 +ok 999 - Then analizo must report that module DogSuperYoung has acc = 0 # -ok 1000 - Then analizo must report that module cc2 has accm = 2 +# Scenario afferent connections of the dog family java sample +ok 1000 - Given I am in t/samples/deep_inheritance/java # -ok 1001 - Then analizo must report that module cc3 has accm = 3 +ok 1001 - When I run "analizo metrics ." # -ok 1002 - Then analizo must report that module cc4 has accm = 4 +ok 1002 - Then analizo must report that module Human has acc = 2 # -# Scenario my "conditionals" C project -ok 1003 - Given I am in t/samples/conditionals/csharp +# Scenario afferent connections of the dog family java sample +ok 1003 - Given I am in t/samples/deep_inheritance/java # ok 1004 - When I run "analizo metrics ." # -ok 1005 - Then analizo must report that module cc1 has accm = 1 +ok 1005 - Then analizo must report that module ShopController has acc = 0 # -ok 1006 - Then analizo must report that module cc2 has accm = 2 +# Scenario afferent connections of the dog family java sample +ok 1006 - Given I am in t/samples/deep_inheritance/java # -ok 1007 - Then analizo must report that module cc3 has accm = 3 +ok 1007 - When I run "analizo metrics ." # -ok 1008 - Then analizo must report that module cc4 has accm = 4 +ok 1008 - Then analizo must report that module VenderShop has acc = 1 # 1..1008 ok All tests successful. -Files=54, Tests=1627, 84 wallclock secs ( 0.42 usr 0.10 sys + 72.42 cusr 11.90 csys = 84.84 CPU) +Files=54, Tests=1627, 147 wallclock secs ( 0.42 usr 0.16 sys + 125.96 cusr 22.30 csys = 148.84 CPU) Result: PASS make[1]: Leaving directory '/build/reproducible-path/analizo-1.25.5' create-stamp debian/debhelper-build-stamp @@ -5150,103 +5186,103 @@ debian/rules override_dh_auto_install make[1]: Entering directory '/build/reproducible-path/analizo-1.25.5' dh_auto_install - make -j22 install DESTDIR=/build/reproducible-path/analizo-1.25.5/debian/analizo AM_UPDATE_INFO_DIR=no PREFIX=/usr + make -j10 install DESTDIR=/build/reproducible-path/analizo-1.25.5/debian/analizo AM_UPDATE_INFO_DIR=no PREFIX=/usr make[2]: Entering directory '/build/reproducible-path/analizo-1.25.5' Skip blib/lib/auto/share/dist/Analizo/bash-completion/analizo (unchanged) Skip blib/lib/auto/share/dist/Analizo/README (unchanged) Manifying 26 pod documents Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/profile.pl +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Class.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Git.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/BDD/Cucumber/Extension.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/auto/share/dist/Analizo/README +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/auto/share/dist/Analizo/bash-completion/analizo +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metrics.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Extractor.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/ModuleMetric.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metrics.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/FilenameFilter.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetrics.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/LanguageFilter.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Model.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Extractor.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/LanguageFilter.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetrics.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/ModuleMetrics.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetric/MethodsPerAbstractClass.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetric/TotalAbstractClasses.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetric/ChangeCost.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfPublicAttributes.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AverageMethodLinesOfCode.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/LackOfCohesionOfMethods.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/LinesOfCode.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/CouplingBetweenObjects.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AverageNumberOfParameters.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/MaximumMethodLinesOfCode.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AverageCycloComplexity.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfChildren.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/DepthOfInheritanceTree.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/StructuralComplexity.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/ResponseForClass.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfPublicMethods.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfAttributes.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AfferentConnections.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfMethods.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/FilenameFilter.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Extractor/Doxyparse.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/metrics.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/graph.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/tree_evolution.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/help.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/metrics_history.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/files_graph.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/metrics_batch.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Filter/Client.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Job.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Directories.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Git.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Output.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Runner.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Output/DB.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Output/CSV.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Git.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Runner/Parallel.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Runner/Sequential.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Job/Directories.pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Job/Git.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Filter/Client.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Git.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Class.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/BDD/Cucumber/Extension.pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/auto/share/dist/Analizo/README -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/auto/share/dist/Analizo/bash-completion/analizo -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfChildren.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Output/CSV.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Batch/Output/DB.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/ResponseForClass.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/StructuralComplexity.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfPublicAttributes.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfChildren.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/LinesOfCode.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/LackOfCohesionOfMethods.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/MaximumMethodLinesOfCode.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/CouplingBetweenObjects.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfPublicMethods.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfAttributes.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/NumberOfMethods.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/DepthOfInheritanceTree.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AverageNumberOfParameters.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AverageCycloComplexity.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AverageMethodLinesOfCode.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Metric/AfferentConnections.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetric/MethodsPerAbstractClass.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetric/TotalAbstractClasses.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/GlobalMetric/ChangeCost.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/metrics_history.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/help.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/graph.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/metrics_batch.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/tree_evolution.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/files_graph.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Analizo/Command/metrics.pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metrics.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::LackOfCohesionOfMethods.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AfferentConnections.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::files_graph.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::metrics_history.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::CouplingBetweenObjects.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::metrics_batch.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AverageNumberOfParameters.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AverageCycloComplexity.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::StructuralComplexity.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfAttributes.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::help.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfMethods.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::metrics.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::ResponseForClass.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::CouplingBetweenObjects.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::DepthOfInheritanceTree.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::ResponseForClass.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::GlobalMetric::ChangeCost.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::graph.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::LinesOfCode.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AfferentConnections.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AverageCycloComplexity.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::tree_evolution.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfPublicMethods.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::help.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfAttributes.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::LackOfCohesionOfMethods.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfPublicAttributes.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::StructuralComplexity.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AverageMethodLinesOfCode.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::tree_evolution.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::metrics_history.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::graph.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfChildren.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::NumberOfPublicAttributes.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::metrics.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command.3pm -Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metrics.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::AverageNumberOfParameters.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Metric::LinesOfCode.3pm +Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/man/man3/Analizo::Command::metrics_batch.3pm Installing /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/bin/analizo make[2]: Leaving directory '/build/reproducible-path/analizo-1.25.5' rm -f -rv /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test removed '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo.pm' -removed '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Git.pm' +removed '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Class.pm' removed '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/BDD/Cucumber/Extension.pm' removed directory '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/BDD/Cucumber' removed directory '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/BDD' -removed '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Class.pm' +removed '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo/Git.pm' removed directory '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test/Analizo' removed directory '/build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/Test' rm -f -v /build/reproducible-path/analizo-1.25.5/debian/analizo/usr/share/perl5/profile.pl @@ -5275,12 +5311,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3300/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/103243 and its subdirectories -I: Current time: Sun Dec 21 07:48:50 -12 2025 -I: pbuilder-time-stamp: 1766346530 +I: removing directory /srv/workspace/pbuilder/3300 and its subdirectories +I: Current time: Tue Nov 19 03:29:19 +14 2024 +I: pbuilder-time-stamp: 1731936559