mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
update testreport generation
This commit is contained in:
parent
f1c3abe2db
commit
78e0d91e01
|
|
@ -46,6 +46,11 @@ return [
|
|||
':testing_process_list_4' => 'Framework vs. Library vs. Module',
|
||||
':testing_process_list_5' => 'Environment dependent vs. Environment independent',
|
||||
':testing_process_desc_2' => 'In addition to these functional tests we also do performance analysis of critical components. In addition to these automated tests we also do manual tests which are not included in this report during the development process and testing environments. New tests are constantly added and old tests are improved if applicable. In case tests become redundant or no longer provide any benefit due to software changes we may remove them.',
|
||||
':testing_process_desc_3' => 'The testing rulesets can be found at:',
|
||||
':testing_process_rules_1' => '<a href="https://github.com/Karaka-Management/Karaka/blob/8f0a3a1cd8e753481f2ab6c7f2dcd78b85e41922/tests/phpunit_default.xml">PhpUnit</a>',
|
||||
':testing_process_rules_2' => '<a href="https://github.com/Karaka-Management/Build/blob/f1c3abe2db03ec112075574c1419ee547e5f7c13/Config/phpcs.xml">PhpCS</a>',
|
||||
':testing_process_rules_3' => '<a href="https://github.com/Karaka-Management/Build/blob/f1c3abe2db03ec112075574c1419ee547e5f7c13/Config/phpstan.neon">PhpStan</a> and <a href="https://github.com/Karaka-Management/Build/blob/f1c3abe2db03ec112075574c1419ee547e5f7c13/Config/phpstan-baseline.neon">Baseline</a>',
|
||||
':testing_process_rules_4' => '<a href="https://github.com/Karaka-Management/Build/blob/f1c3abe2db03ec112075574c1419ee547e5f7c13/Config/.eslintrc.jsonl">Eslint</a>',
|
||||
':testing_summary' => 'Testing Summary',
|
||||
':testing_summary_coverage' => 'Coverage',
|
||||
':testing_summary_tests' => 'Tests',
|
||||
|
|
@ -2488,4 +2493,5 @@ return [
|
|||
'Modules\tests\Knowledgebase\Models\WikiDocMapperTest' => ['description' => 'Wiki document mapper', 'type' => 'module'],
|
||||
'Modules\tests\Knowledgebase\Models\WikiDocMapperTest:testCR' => ['description' => 'The model can be created and read from the database', 'type' => 'module'],
|
||||
|
||||
'jsOMS\tests\UI\Component\FormTest' => ['description' => 'Form manager', 'type' => 'framework'],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -8,10 +8,19 @@ npx eslint jsOMS/ -c Build/Config/.eslintrc.json
|
|||
|
||||
./vendor/bin/phpcs ./ --standard="Build/Config/phpcs.xml" -s --report-junit=Build/test/junit_phpcs.xml
|
||||
./vendor/bin/phpstan analyse --autoload-file=phpOMS/Autoloader.php -l 8 -c Build/Config/phpstan.neon --error-format=prettyJson ./ > Build/test/phpstan.json
|
||||
npx eslint jsOMS/ -c Build/Config/.eslintrc.json > Build/test/eslint.txt
|
||||
npx eslint jsOMS/ -c Build/Config/.eslintrc.json -o Build/test/junit_eslint.xml -f junit
|
||||
|
||||
# Remove empty lines and lines with warnings which corrupt the json format
|
||||
sed -i '/^$/d' Build/test/phpstan.json
|
||||
sed -i '/^Warning: /d' Build/test/phpstan.json
|
||||
|
||||
#php ../TestReportGenerator/src/index.php -b /home/spl1nes/Karaka -l /home/spl1nes/Karaka/Build/Config/reportLang.php -c /home/spl1nes/Karaka/tests/coverage.xml -s /home/spl1nes/Karaka/Build/test/junit_phpcs.xml -a /home/spl1nes/Karaka/Build/test/phpstan.json -u /home/spl1nes/Karaka/Build/test/junit_php.xml -d /home/spl1nes/Karaka/Build/test/ReportExternal --version 1.0.0
|
||||
php ../TestReportGenerator/src/index.php \
|
||||
-b /home/spl1nes/Orange-Management \
|
||||
-l /home/spl1nes/Orange-Management/Build/Config/reportLang.php \
|
||||
-c /home/spl1nes/Orange-Management/tests/coverage.xml \
|
||||
-s /home/spl1nes/Orange-Management/Build/test/junit_phpcs.xml \
|
||||
-sj /home/spl1nes/Orange-Management/Build/test/junit_eslint.xml \
|
||||
-a /home/spl1nes/Orange-Management/Build/test/phpstan.json \
|
||||
-u /home/spl1nes/Orange-Management/Build/test/junit_php.xml \
|
||||
-d /home/spl1nes/Orange-Management/Build/test/ReportExternal \
|
||||
--version 1.0.0
|
||||
Loading…
Reference in New Issue
Block a user