Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test command failed if we cannot build locally a PHAR version #42

Closed
llaville opened this issue Jan 25, 2024 · 4 comments
Closed

Comments

@llaville
Copy link

Related to issue #41, when we invoke make test command, we got following output

devilbox@php-8.2.15 in /shared/backups/forks/CI-Report-Converter $ make test
make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'
File ./vendor/bin/composer-diff.phar not found. Downloading.
File ./vendor/bin/composer-graph.phar not found. Downloading.
File ./vendor/bin/ci-report-converter.phar not found. Downloading.
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'

>>>> >>>> >>>> >>>> >>>> >>>>  PHPUnit - Run all tests
make[2]: Entering directory '/shared/backups/forks/CI-Report-Converter'
PHPUnit 9.6.13 by Sebastian Bergmann and contributors.

EEESEEEEESEEE..................................................  63 / 135 ( 46%)
......SSSSSSSSSSSSSS................S.......SSS.SSS.....SSSSSSS 126 / 135 ( 93%)
S........                                                       135 / 135 (100%)

Time: 00:03.119, Memory: 36.00 MB

There were 11 errors:

1) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommandReadMe
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --help -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:42

2) JBZoo\PHPUnit\CliCommandsPharTest::testTcStatsCommandReadMe
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar teamcity:stats 2>&1 --help -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:57

3) JBZoo\PHPUnit\CliCommandsPharTest::testGitHubActionsYml
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --help --format="json" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:72

4) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommandMapReadMe
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert:map 2>&1 -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:184

5) JBZoo\PHPUnit\CliCommandsPharTest::testConvertStatsUndefinedFile
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar teamcity:stats 2>&1 --input-file="/undefined/file.xml" --input-format="pdepend-xml" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:190

6) JBZoo\PHPUnit\CliCommandsPharTest::testConvertStatsCustomFlowId
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar teamcity:stats 2>&1 --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/phploc/json.json" --input-format="phploc-json" --tc-flow-id="10000" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:200

7) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCustomFlowId
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="tc-tests" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/psalm/checkstyle.xml" --suite-name="Test Suite" --root-path="src" --tc-flow-id="10101" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:211

8) JBZoo\PHPUnit\CliCommandsPharTest::testConvertToTcInspections
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="phpmd-json" --output-format="tc-inspections" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/phpmd/json.json" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:225

9) JBZoo\PHPUnit\CliCommandsPharTest::testConvertUndefinedFile
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="junit" --input-file="/undefined/file.xml" --suite-name="Test Suite" --root-path="src" --non-zero-code="yes" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:282

10) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommand
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="junit" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/psalm/checkstyle.xml" --suite-name="Test Suite" --root-path="src" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:296

11) JBZoo\PHPUnit\CliCommandsPharTest::testConvertCommandSaveToFile
Symfony\Component\Process\Exception\ProcessFailedException: The command "'/usr/local/bin/php' /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar convert 2>&1 --input-format="checkstyle" --output-format="junit" --input-file="/shared/backups/forks/CI-Report-Converter/tests/fixtures/origin/psalm/checkstyle.xml" --output-file="/shared/backups/forks/CI-Report-Converter/build/testConvertCommandSaveToFile.xml" --suite-name="Test Suite" --root-path="src" -v --no-ansi" failed.

Exit Code: 1(General error)

Working directory: /shared/backups/forks/CI-Report-Converter

Output:
================
Could not open input file: /shared/backups/forks/CI-Report-Converter/build/ci-report-converter.phar


Error Output:
================


/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/utils/src/Cli.php:119
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:36
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsPharTest.php:26
/shared/backups/forks/CI-Report-Converter/tests/CliCommandsTest.php:356

ERRORS!
Tests: 135, Assertions: 648, Errors: 11, Skipped: 31.

Generating code coverage report in PHP format ... done [00:00.003]

Generating code coverage report in Clover XML format ... done [00:00.068]


Code Coverage Report:
  2024-01-25 06:05:33

 Summary:
  Classes: 41.18% (21/51)
  Methods: 74.47% (140/188)
  Lines:   94.13% (1426/1515)

JBZoo\CIReportConverter\Commands\AbstractCommand
  Methods:  50.00% ( 1/ 2)   Lines:  76.47% ( 13/ 17)
JBZoo\CIReportConverter\Commands\Convert
  Methods:  33.33% ( 1/ 3)   Lines:  93.81% ( 91/ 97)
JBZoo\CIReportConverter\Commands\ConvertMap
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 17/ 17)
JBZoo\CIReportConverter\Commands\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Commands\TeamCityStats
  Methods:  75.00% ( 3/ 4)   Lines:  93.44% ( 57/ 61)
JBZoo\CIReportConverter\Converters\AbstractConverter
  Methods:  50.00% ( 4/ 8)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Converters\AbstractStatsTcConverter
  Methods:  50.00% ( 2/ 4)   Lines:  90.00% ( 18/ 20)
JBZoo\CIReportConverter\Converters\CheckStyleConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 32/ 32)
JBZoo\CIReportConverter\Converters\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Converters\GitLabJsonConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.30% ( 26/ 27)
JBZoo\CIReportConverter\Converters\GithubCliConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.55% ( 28/ 29)
JBZoo\CIReportConverter\Converters\JUnitConverter
  Methods:  75.00% ( 3/ 4)   Lines:  98.63% ( 72/ 73)
JBZoo\CIReportConverter\Converters\JUnitStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% ( 11/ 11)
JBZoo\CIReportConverter\Converters\Map
  Methods:  66.67% ( 4/ 6)   Lines:  86.49% ( 32/ 37)
JBZoo\CIReportConverter\Converters\PhpDependStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Converters\PhpLocStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Converters\PhpMdJsonConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 45/ 45)
JBZoo\CIReportConverter\Converters\PhpMetricsStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Converters\PhpMndConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 47/ 47)
JBZoo\CIReportConverter\Converters\PhpUnitCloverStatsTcConverter
  Methods:   0.00% ( 0/ 2)   Lines:  93.62% ( 44/ 47)
JBZoo\CIReportConverter\Converters\PlainTextConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.55% ( 28/ 29)
JBZoo\CIReportConverter\Converters\PmdCpdConverter
  Methods:  88.89% ( 8/ 9)   Lines:  98.44% ( 63/ 64)
JBZoo\CIReportConverter\Converters\PsalmJsonConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 35/ 35)
JBZoo\CIReportConverter\Converters\TeamCityInspectionsConverter
  Methods:  50.00% ( 2/ 4)   Lines:  96.36% ( 53/ 55)
JBZoo\CIReportConverter\Converters\TeamCityTestsConverter
  Methods:  50.00% ( 2/ 4)   Lines:  95.92% ( 47/ 49)
JBZoo\CIReportConverter\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\AbstractNode
  Methods:  66.67% ( 2/ 3)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\GitLabJson\GitLabJson
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Formats\GitLabJson\GitLabJsonCase
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 15/ 15)
JBZoo\CIReportConverter\Formats\GithubActions\GithubActions
  Methods:  75.00% ( 3/ 4)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\GithubActions\GithubCase
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 14/ 14)
JBZoo\CIReportConverter\Formats\GithubActions\GithubSuite
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\AbstractOutput
  Methods:  75.00% ( 3/ 4)   Lines:  86.67% ( 13/ 15)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Error
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Failure
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Skipped
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\SystemOut
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Warning
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\JUnit
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 10/ 10)
JBZoo\CIReportConverter\Formats\JUnit\JUnitCase
  Methods:  91.67% (11/12)   Lines:  97.14% ( 34/ 35)
JBZoo\CIReportConverter\Formats\JUnit\JUnitSuite
  Methods: 100.00% (10/10)   Lines: 100.00% ( 94/ 94)
JBZoo\CIReportConverter\Formats\MetricMaps\AbstractMetricMap
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Formats\MetricMaps\JUnit
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpDepend
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpLoc
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpMetrics
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpUnitClover
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Metric\Metric
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Metric\Metrics
  Methods:  25.00% ( 1/ 4)   Lines:  75.76% ( 25/ 33)
JBZoo\CIReportConverter\Formats\PlainText\PlainTable
  Methods:  75.00% ( 3/ 4)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\PlainText\PlainText
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 24/ 24)
JBZoo\CIReportConverter\Formats\PlainText\PlainTextCase
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  5/  5)
JBZoo\CIReportConverter\Formats\PlainText\PlainTextSuite
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 19/ 19)
JBZoo\CIReportConverter\Formats\Source\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Source\FileRef
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  8)
JBZoo\CIReportConverter\Formats\Source\SourceCase
  Methods:  75.00% ( 6/ 8)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Formats\Source\SourceCaseOutput
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 41/ 41)
JBZoo\CIReportConverter\Formats\Source\SourceSuite
  Methods:  92.86% (13/14)   Lines:  98.65% ( 73/ 74)
JBZoo\CIReportConverter\Formats\TeamCity\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\TeamCity\Helper
  Methods:  25.00% ( 1/ 4)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Formats\TeamCity\TeamCity
  Methods:  84.62% (11/13)   Lines:  96.88% ( 62/ 64)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Buffer
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\CustomCallback
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  4)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Stdout
  Methods:   0.00% ( 0/ 1)   Lines:   0.00% (  0/  2)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\SymfonyConsole
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  5)
JBZoo\CIReportConverter\Formats\Xml
  Methods:  66.67% ( 2/ 3)   Lines:  97.96% ( 48/ 49)
JBZoo\CIReportConverter\Helper
  Methods:   0.00% ( 0/ 1)   Lines:  75.00% (  3/  4)
make[2]: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/03_tests.Makefile:43: test-phpunit-local] Error 2
make[2]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make[1]: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/03_tests.Makefile:21: test-phpunit] Error 2
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make: *** [/shared/backups/forks/CI-Report-Converter/vendor/jbzoo/codestyle/src/Makefiles/03_tests.Makefile:17: test] Error 2
@llaville
Copy link
Author

Once the PHAR version was compiled with BOX v4 (see #41 (comment)), the make test command gave something like expected

make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make[1]: Entering directory '/shared/backups/forks/CI-Report-Converter'

>>>> >>>> >>>> >>>> >>>> >>>>  PHPUnit - Run all tests
make[2]: Entering directory '/shared/backups/forks/CI-Report-Converter'
PHPUnit 9.6.13 by Sebastian Bergmann and contributors.

...............................................................  63 / 135 ( 46%)
......SSSSSSSSSSSSSS................S.......SSS.SSS.....SSSSSSS 126 / 135 ( 93%)
S........                                                       135 / 135 (100%)

Time: 00:05.932, Memory: 36.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 135, Assertions: 670, Skipped: 29.

Generating code coverage report in PHP format ... done [00:00.003]

Generating code coverage report in Clover XML format ... done [00:00.063]


Code Coverage Report:
  2024-01-25 06:29:34

 Summary:
  Classes: 41.18% (21/51)
  Methods: 74.47% (140/188)
  Lines:   94.13% (1426/1515)

JBZoo\CIReportConverter\Commands\AbstractCommand
  Methods:  50.00% ( 1/ 2)   Lines:  76.47% ( 13/ 17)
JBZoo\CIReportConverter\Commands\Convert
  Methods:  33.33% ( 1/ 3)   Lines:  93.81% ( 91/ 97)
JBZoo\CIReportConverter\Commands\ConvertMap
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 17/ 17)
JBZoo\CIReportConverter\Commands\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Commands\TeamCityStats
  Methods:  75.00% ( 3/ 4)   Lines:  93.44% ( 57/ 61)
JBZoo\CIReportConverter\Converters\AbstractConverter
  Methods:  50.00% ( 4/ 8)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Converters\AbstractStatsTcConverter
  Methods:  50.00% ( 2/ 4)   Lines:  90.00% ( 18/ 20)
JBZoo\CIReportConverter\Converters\CheckStyleConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 32/ 32)
JBZoo\CIReportConverter\Converters\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Converters\GitLabJsonConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.30% ( 26/ 27)
JBZoo\CIReportConverter\Converters\GithubCliConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.55% ( 28/ 29)
JBZoo\CIReportConverter\Converters\JUnitConverter
  Methods:  75.00% ( 3/ 4)   Lines:  98.63% ( 72/ 73)
JBZoo\CIReportConverter\Converters\JUnitStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% ( 11/ 11)
JBZoo\CIReportConverter\Converters\Map
  Methods:  66.67% ( 4/ 6)   Lines:  86.49% ( 32/ 37)
JBZoo\CIReportConverter\Converters\PhpDependStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Converters\PhpLocStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Converters\PhpMdJsonConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 45/ 45)
JBZoo\CIReportConverter\Converters\PhpMetricsStatsTcConverter
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Converters\PhpMndConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 47/ 47)
JBZoo\CIReportConverter\Converters\PhpUnitCloverStatsTcConverter
  Methods:   0.00% ( 0/ 2)   Lines:  93.62% ( 44/ 47)
JBZoo\CIReportConverter\Converters\PlainTextConverter
  Methods:  66.67% ( 2/ 3)   Lines:  96.55% ( 28/ 29)
JBZoo\CIReportConverter\Converters\PmdCpdConverter
  Methods:  88.89% ( 8/ 9)   Lines:  98.44% ( 63/ 64)
JBZoo\CIReportConverter\Converters\PsalmJsonConverter
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 35/ 35)
JBZoo\CIReportConverter\Converters\TeamCityInspectionsConverter
  Methods:  50.00% ( 2/ 4)   Lines:  96.36% ( 53/ 55)
JBZoo\CIReportConverter\Converters\TeamCityTestsConverter
  Methods:  50.00% ( 2/ 4)   Lines:  95.92% ( 47/ 49)
JBZoo\CIReportConverter\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\AbstractNode
  Methods:  66.67% ( 2/ 3)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\GitLabJson\GitLabJson
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Formats\GitLabJson\GitLabJsonCase
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 15/ 15)
JBZoo\CIReportConverter\Formats\GithubActions\GithubActions
  Methods:  75.00% ( 3/ 4)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\GithubActions\GithubCase
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 14/ 14)
JBZoo\CIReportConverter\Formats\GithubActions\GithubSuite
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  7/  7)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\AbstractOutput
  Methods:  75.00% ( 3/ 4)   Lines:  86.67% ( 13/ 15)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Error
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Failure
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Skipped
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\SystemOut
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\CaseOutput\Warning
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\JUnit\JUnit
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 10/ 10)
JBZoo\CIReportConverter\Formats\JUnit\JUnitCase
  Methods:  91.67% (11/12)   Lines:  97.14% ( 34/ 35)
JBZoo\CIReportConverter\Formats\JUnit\JUnitSuite
  Methods: 100.00% (10/10)   Lines: 100.00% ( 94/ 94)
JBZoo\CIReportConverter\Formats\MetricMaps\AbstractMetricMap
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Formats\MetricMaps\JUnit
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpDepend
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpLoc
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpMetrics
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\MetricMaps\PhpUnitClover
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Metric\Metric
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Metric\Metrics
  Methods:  25.00% ( 1/ 4)   Lines:  75.76% ( 25/ 33)
JBZoo\CIReportConverter\Formats\PlainText\PlainTable
  Methods:  75.00% ( 3/ 4)   Lines:  95.45% ( 21/ 22)
JBZoo\CIReportConverter\Formats\PlainText\PlainText
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 24/ 24)
JBZoo\CIReportConverter\Formats\PlainText\PlainTextCase
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  5/  5)
JBZoo\CIReportConverter\Formats\PlainText\PlainTextSuite
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 19/ 19)
JBZoo\CIReportConverter\Formats\Source\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\Source\FileRef
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  8)
JBZoo\CIReportConverter\Formats\Source\SourceCase
  Methods:  75.00% ( 6/ 8)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Formats\Source\SourceCaseOutput
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 41/ 41)
JBZoo\CIReportConverter\Formats\Source\SourceSuite
  Methods:  92.86% (13/14)   Lines:  98.65% ( 73/ 74)
JBZoo\CIReportConverter\Formats\TeamCity\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\TeamCity\Helper
  Methods:  25.00% ( 1/ 4)   Lines:  83.33% ( 30/ 36)
JBZoo\CIReportConverter\Formats\TeamCity\TeamCity
  Methods:  84.62% (11/13)   Lines:  96.88% ( 62/ 64)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Buffer
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\CustomCallback
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  4)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Exception
  Methods:  ( 0/ 0)   Lines:  (  0/  0)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\Stdout
  Methods:   0.00% ( 0/ 1)   Lines:   0.00% (  0/  2)
JBZoo\CIReportConverter\Formats\TeamCity\Writers\SymfonyConsole
  Methods:   0.00% ( 0/ 2)   Lines:   0.00% (  0/  5)
JBZoo\CIReportConverter\Formats\Xml
  Methods:  66.67% ( 2/ 3)   Lines:  97.96% ( 48/ 49)
JBZoo\CIReportConverter\Helper
  Methods:   0.00% ( 0/ 1)   Lines:  75.00% (  3/  4)
make[2]: Leaving directory '/shared/backups/forks/CI-Report-Converter'
make[1]: Leaving directory '/shared/backups/forks/CI-Report-Converter'

@SmetDenis
Copy link
Member

Interesting.

Maybe I never noticed it because for local development I have to use PHP 8.1 to ensure version compatibility.

Thanks for your feedback, @llaville. It is very much appreciated.

I will try to fix it soon.

Anyway I hope it doesn't prevent you from using the tool. Any ideas would be very welcome. I will try to improve and add new data format if there is anything else.

Thanks again for your attention to my project.

@llaville
Copy link
Author

You're right, it doesn't prevent me to use it, and even to run unit tests and codestyle (just after compile the new PHAR version with BOX v4)

I think there is a great converter to add to your project. I'll propose to you later when dev will be over and tested with other reports.
A little teaser : use the SARIF format ; Yeah it's possible on PHP => see https://github.com/llaville/sarif-php-sdk

@SmetDenis
Copy link
Member

The related issue is solved #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants