Feature: metrics batch As a software engineering researcher I want to analyze several different projects So I can compare their metrics Scenario: "hello, world" Given I am in t/samples/hello_world/ When I run "analizo metrics-batch" Then the output must match "I: Processed c." And the output must match "I: Processed cpp." And the output must match "I: Processed java." Scenario: summarizing Given I am in t/samples/hello_world/ When I run "analizo metrics-batch --quiet -o data.csv && cat data.csv && rm -f *.csv" Then the output must match "^id," And the output must not match ",---," And the output must match "c," And the output must match "cpp," And the output must match "java," And the output must not match "I: Processed" Scenario: support for parallel processing Given I copy t/samples/hello_world/* into a temporary directory When I run "analizo metrics-batch -q -o sequential.csv" And I run "analizo metrics-batch -q -o parallel.csv -p 2" And I run "sort sequential.csv > sequential-sorted.csv" And I run "sort parallel.csv > parallel-sorted.csv" And I run "diff -u sequential-sorted.csv parallel-sorted.csv" Then the output must not match "---" Then the exit status must be 0 Scenario: passing two input directories as argument Given I copy t/samples/hello_world/* into a temporary directory When I run "analizo metrics-batch --quiet -o data.csv cpp java" Then the exit status must be 0 And the file "c-details.csv" should not exist And the file "cpp-details.csv" should exist And the file "java-details.csv" should exist Scenario: passing one input directory as argument Given I copy t/samples/hello_world/* into a temporary directory When I run "analizo metrics-batch --quiet -o data.csv cpp" Then the exit status must be 0 And the file "c-details.csv" should not exist And the file "cpp-details.csv" should exist And the file "java-details.csv" should not exist