mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-11 20:38:21 +02:00
2fd15ba8fa
* test: expand coverage, dedupe data-driven tests, extract shared WebTestCase base - Add #[CoversClass] to Base64Test and FilenameSanitizerTest - Merge near-duplicate test methods into #[DataProvider] cases across ResetPasswordControllerTest, SettingsControllerTest, ClaimSeasonCommandTest, FilenameSanitizerTest, Base64Test, and SeasonRepositoryTest - Add integration tests for previously untested controllers: public QuizController (quiz-taking flow), LoginController, RegistrationController, EliminationController, and PrepareEliminationController - Add unit tests for Elimination and BankQuestion entity logic - Extract shared WebTestCase setup/helpers (client, entityManager, login, entity lookups, CSRF token scraping) into AbstractControllerWebTestCase, removing duplicated boilerplate from all 14 WebTestCase files * test: address PR review feedback - Scope AbstractControllerWebTestCase::getCandidate/getQuizByName by season code (both Candidate and Quiz are only unique per season, not system-wide) and add a CandidateRepository regression test guarding against same-named candidates in different seasons - Add missing entityManager->clear() before verifying DB state after a POST in PrepareEliminationControllerTest and QuestionBankControllerTest - Add non-owner denial tests for BackofficeController::exportQuiz and QuizQuestionController::edit/reorder, which had IsGranted checks with no test coverage * ci: publish PHPUnit coverage to GitHub code coverage - Generate a Cobertura report alongside the existing JUnit report and upload it with actions/upload-code-coverage so coverage shows up on PRs and the default branch via GitHub's code coverage feature - Add a step to copy both reports out of the php container before publishing them, since var/ is a Docker volume (see the Dockerfile's VOLUME /app/var/) and isn't bind-mounted to the runner — this also fixes the existing JUnit report publishing step, which was silently looking at a path that never had contets on the runner * ci: fix coverage report paths and tolerate Code Quality not yet enabled - Write PHPUnit's JUnit and Cobertura reports to reports/ instead of var/, since var/ is a Docker volume (Dockerfile's VOLUME /app/var/) that isn't bind-mounted to the runner - reports written there never reached the host, which is also why the prior junit.xml publish step had nothing to read. reports/ is a plain path under the project's bind mount, so no extra copy-out step is needed - Set fail-on-error: false on the coverage upload step: it 404s until "Code Quality" is turned on for the repo under Settings > Code security > Code quality, a one-time manual step
134 lines
2.3 KiB
Plaintext
134 lines
2.3 KiB
Plaintext
/frankenphp/data
|
|
/reports/
|
|
|
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
### https://raw.github.com/github/gitignore/6eeebe6f49678aacd8311ce079842c971b3ebe96/Symfony.gitignore
|
|
|
|
# Cache and logs (Symfony2)
|
|
/app/cache/*
|
|
/app/logs/*
|
|
!app/cache/.gitkeep
|
|
!app/logs/.gitkeep
|
|
|
|
# Email spool folder
|
|
/app/spool/*
|
|
|
|
# Cache, session files and logs (Symfony3)
|
|
/var/cache/*
|
|
/var/logs/*
|
|
/var/sessions/*
|
|
!var/cache/.gitkeep
|
|
!var/logs/.gitkeep
|
|
!var/sessions/.gitkeep
|
|
|
|
# Logs (Symfony4)
|
|
/var/log/*
|
|
!var/log/.gitkeep
|
|
|
|
# Parameters
|
|
/app/config/parameters.yml
|
|
/app/config/parameters.ini
|
|
|
|
# Managed by Composer
|
|
/app/bootstrap.php.cache
|
|
/var/bootstrap.php.cache
|
|
/bin/*
|
|
!bin/console
|
|
!bin/symfony_requirements
|
|
|
|
# Assets and user uploads
|
|
/web/bundles/
|
|
/web/uploads/
|
|
|
|
# PHPUnit
|
|
/app/phpunit.xml
|
|
|
|
# Build data
|
|
/build/
|
|
|
|
# Composer PHAR
|
|
/composer.phar
|
|
|
|
# Backup entities generated with doctrine:generate:entities command
|
|
**/Entity/*~
|
|
|
|
# Embedded web-server pid file
|
|
/.web-server-pid
|
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
### https://raw.github.com/github/gitignore/6eeebe6f49678aacd8311ce079842c971b3ebe96/Global/macOS.gitignore
|
|
|
|
# General
|
|
.DS_Store
|
|
.AppleDouble
|
|
.LSOverride
|
|
|
|
# Icon must end with two \r
|
|
Icon
|
|
|
|
|
|
# Thumbnails
|
|
._*
|
|
|
|
# IDEs
|
|
/.idea/
|
|
/.vscode/
|
|
|
|
# Claude Code
|
|
/.claude/settings.local.json
|
|
|
|
# Windows
|
|
Thumbs.db
|
|
Desktop.ini
|
|
|
|
# Files that might appear in the root of a volume
|
|
.DocumentRevisions-V100
|
|
.fseventsd
|
|
.Spotlight-V100
|
|
.TemporaryItems
|
|
.Trashes
|
|
.VolumeIcon.icns
|
|
.com.apple.timemachine.donotpresent
|
|
|
|
# Directories potentially created on remote AFP share
|
|
.AppleDB
|
|
.AppleDesktop
|
|
Network Trash Folder
|
|
Temporary Items
|
|
.apdisk
|
|
|
|
###> symfony/framework-bundle ###
|
|
/.env.local
|
|
/.env.local.php
|
|
/.env.*.local
|
|
/config/secrets/prod/prod.decrypt.private.php
|
|
/public/bundles/
|
|
/var/
|
|
/vendor/
|
|
###< symfony/framework-bundle ###
|
|
|
|
###> phpstan/phpstan ###
|
|
phpstan.neon
|
|
###< phpstan/phpstan ###
|
|
###> friendsofphp/php-cs-fixer ###
|
|
/.php-cs-fixer.php
|
|
/.php-cs-fixer.cache
|
|
###< friendsofphp/php-cs-fixer ###
|
|
###> phpunit/phpunit ###
|
|
/phpunit.xml
|
|
/.phpunit.cache/
|
|
###< phpunit/phpunit ###
|
|
|
|
###> vincentlanglet/twig-cs-fixer ###
|
|
/.twig-cs-fixer.cache
|
|
###< vincentlanglet/twig-cs-fixer ###
|
|
|
|
###> symfony/phpunit-bridge ###
|
|
.phpunit.result.cache
|
|
/phpunit.xml
|
|
###< symfony/phpunit-bridge ###
|
|
|
|
###> symfony/asset-mapper ###
|
|
/public/assets/
|
|
/assets/vendor/
|
|
###< symfony/asset-mapper ###
|