Analizo

 view release on metacpan or  search on metacpan

t/features/graph/output-file.feature  view on Meta::CPAN


  Scenario: passing output file in an unexisting directory
    Given I am in .
    When I run "analizo graph --output /this/directory/must/not/exists/output.dot t/samples/sample_basic/c/"
    Then analizo must emit a warning matching "No such file or directory"
    And the exit status must not be 0

  Scenario: passing output file without permission to write
    Given I am in .
    When I run "touch output.tmp"
    And I run "chmod 000 output.tmp"
    And I run "analizo graph --output output.tmp t/samples/sample_basic/c/"
    Then the exit status must not be 0
    And analizo must emit a warning matching "Permission denied"

t/features/metrics/output_file.feature  view on Meta::CPAN


  Scenario: passing output file in the command line
    Given I am in .
    When I run "analizo metrics --output output.yml.tmp t/samples/sample_basic/"
    Then the contents of "output.yml.tmp" must match "module2"
    And the exit status must be 0

  Scenario: passing output file without permission to write
    Given I am in .
    When I run "touch output.tmp"
    And I run "chmod 000 output.tmp"
    And I run "analizo metrics --output output.tmp t/samples/sample_basic/"
    Then the exit status must not be 0
    And analizo must emit a warning matching "Permission denied"

  Scenario: passing output file in an unexisting directory
    Given I am in .
    When I run "analizo metrics --output /this/directory/must/not/exists/output.yml t/samples"
    Then the exit status must not be 0
    And analizo must emit a warning matching "No such file or directory"

t/samples/hello_world/java/Makefile  view on Meta::CPAN

hello_world: Main.class HelloWorld.class
	@echo '#!/bin/sh' > $@
	@echo "java Main" >> $@
	@chmod +x $@

%.class: %.java
	javac $<

clean:
	rm -f *.class hello_world



( run in 0.375 second using v1.01-cache-2.11-cpan-496ff517765 )