neznaika0
d47a25850c
chore: Fix phpunit deprecations ( #9402 )
...
* refactor: Remove unknown option
* refactor: Remove deprecated `CoversTrait`
2025-01-14 11:42:27 +08:00
kenjis
43889b151b
chore: add default attributes to coverage
...
No change will be made.
2024-04-13 18:38:26 +09:00
kenjis
fc303daf75
chore: update PHPUnit schema version
2024-04-13 18:29:09 +09:00
kenjis
7b3a01a297
chore: change coding style
2024-04-13 18:20:51 +09:00
kenjis
8a76cb6771
chore: move PHPUnit cache to build/
2024-04-13 11:55:48 +09:00
kenjis
100ea8a6ab
chore: change output dir for coverage.txt
...
Message: file_put_contents(/home/runner/work/CodeIgniter4/CodeIgniter4/build/coverage/text/coverage.txt): Failed to open stream: No such file or directory
Location: /home/runner/work/CodeIgniter4/CodeIgniter4/vendor/phpunit/phpunit/src/Runner/CodeCoverage.php:317
Script done.
Error: Process completed with exit code 255.
2024-04-07 12:38:09 +09:00
kenjis
bec9e6db93
chore: change config section order
2024-04-07 12:38:09 +09:00
kenjis
8b137fb667
chore: update nexusphp/tachycardia
2024-04-07 12:38:08 +09:00
kenjis
e360bed937
chore: update phpunit.xml.dist for PHPUnit10
...
vendor/bin/phpunit --migrate-configuration -c phpunit.xml.dist
2024-04-07 12:38:04 +09:00
Nicolae Iotu
96006f2d7a
Generate also the html coverage reports when running script 'test'
...
When running 'composer test', if XDebug is installed and setup (xdebug.mode = coverage), in addition to the file build/logs/clover.xml, generate also nice html coverage reports in folder build/coverage.
PHPunit runs normally if XDebug is missing or it is not set for coverage.
View the coverage report at build/coverage/html/index.html.
2023-11-29 01:23:13 +00:00
kenjis
fc4110b099
Merge remote-tracking branch 'upstream/develop' into 4.3
...
Conflicts:
system/Helpers/date_helper.php
system/Session/Session.php
2022-11-14 17:05:19 +09:00
John Paul E. Balandan, CPA
74b64bd6ca
Update phpunit.xml.dist
2022-11-10 11:01:22 +08:00
John Paul E. Balandan, CPA
55ff428dbd
Move 'tests/AutoReview' to 'tests/system/AutoReview'
2022-11-10 11:00:24 +08:00
John Paul E. Balandan, CPA
618640f801
Turn on logging for deprecations as default
2022-11-01 13:46:39 +08:00
MGatner
e48a2e6c63
Revert "Leverage Tachycardia's Expeditable trait to obtain slim execution times"
2022-10-30 20:34:44 -04:00
John Paul E. Balandan, CPA
d9ece62446
Leverage Tachycardia's Expeditable trait to obtain slim execution times
2022-10-26 14:32:15 +08:00
kenjis
d5787a96ea
config: remove unnecessay env XDEBUG_MODE
...
It does not work. See https://github.com/codeigniter4/CodeIgniter4/pull/6274#discussion_r923086225
2022-07-18 17:39:12 +09:00
John Paul E. Balandan, CPA
08f3d30aa4
Auto-review required dependency matching
2022-01-05 10:13:30 +08:00
John Paul E. Balandan, CPA
2a3eeca6aa
Update indentation to spaces
2021-06-06 23:45:23 +08:00
MGatner
ab3e47d096
Remove Psr\Cache
2021-05-15 02:04:39 +00:00
MGatner
70b8cab10b
Implement cache integration tests
2021-05-11 13:39:44 +00:00
Abdul Malik Ikhsan
9cbabb08f7
Update phpunit.xml.dist
...
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
2021-04-29 20:54:05 +07:00
Abdul Malik Ikhsan
0eeb9f6e06
add ignoreDeprecatedCodeUnits="true" to phpunit config
2021-04-29 19:39:01 +07:00
MGatner
2332593390
Deprecate ControllerTester
2021-04-05 00:26:23 +00:00
MGatner
7cff0b8401
Restore and deprecate FeatureTestCase
2021-04-05 00:15:09 +00:00
John Paul E. Balandan, CPA
95052b9812
Switch to tachycardia for slow tests profiling and reporting
2021-03-27 00:03:30 +08:00
John Paul E. Balandan, CPA
8d9f666bce
Use speedtrap to document slow tests
2021-03-18 20:31:20 +08:00
MGatner
385ba182e1
Improve XML formatting
2021-01-31 01:03:09 +08:00
MGatner
89e7856084
Migrate PHPUnit to 9
2021-01-31 01:03:08 +08:00
Abdul Malik Ikhsan
727516ec11
[Develop] Fixes #4114 Cannot declare class Config\App error on running PHPUnit
2021-01-26 20:08:36 +07:00
MGatner
0f0feb74eb
Supply Xdebug 3 mode
2020-12-21 17:46:40 +00:00
MGatner
33ae675da9
Enforce baseURL trailing slash
2020-09-25 14:54:14 +00:00
John Paul E. Balandan, CPA
a7d979798f
Exclude Generator/Views from PHPUnit
2020-08-11 19:33:03 +08:00
Abdul Malik Ikhsan
f2ff3c96fd
exclude system/Test/bootstrap.php from coverage test
2020-03-17 22:21:51 +07:00
Matt Gatner
3500362ba6
Generalize bootstrap, specify phpunit.xml
2020-02-19 23:49:04 +00:00
MGatner
3978085ec4
Remove temp crud from xml
2020-02-19 11:58:54 -05:00
MGatner
5da7ff3437
Rework bootstrap to be path agnostic (use phpunit.xml)
2020-02-19 11:41:02 -05:00
MGatner
b6cac55d1a
Relocate bootstrap and update references
2020-02-19 10:56:48 -05:00
Lonnie Ezell
ab8b5b4e74
Set baseURL to example.com during testing by default.
2018-12-02 22:51:46 -06:00
Lonnie Ezell
96bf16595b
Merging latest develop
2018-08-24 23:25:35 -05:00
Lonnie Ezell
828d9ac7ba
Putting method back.
2018-07-05 23:50:16 -05:00
Lonnie Ezell
03f39e60f4
Oops. Extraneous letter in phpunit.xml.dist
2018-07-05 23:14:49 -05:00
Lonnie Ezell
274fcb533e
CodeIgniter class should not exit directly when doing full page cache, without checking returnREsponse flag.
2018-07-05 23:11:26 -05:00
Lonnie Ezell
2ab5ba4a41
Merge branch 'testdocs' into develop
2018-06-21 23:14:05 -05:00
Lonnie Ezell
b29efcb12c
Rearranging phpunit whitelist to try and appease Travis.
2018-06-06 22:17:15 -05:00
Lonnie Ezell
614007d434
wip
2018-06-06 22:06:21 -05:00
Abdul Malik Ikhsan
572563a4fa
uncomment coverage-clover logging to get clover.xml which read by coveralls.phar
2018-05-22 06:47:29 +07:00
Lonnie Ezell
2c15b134b5
More flexible LoggerTest so it passes in CI
2018-04-19 22:48:04 -05:00
Lonnie Ezell
179c4a1465
Getting SQLite foreign keys mostly working.
2017-10-23 23:20:25 -05:00
kenjis
a14a4ffc0a
Set backupGlobals false
...
Add @backupGlobals enabled to tests which set $_SERVER
2017-02-09 19:33:36 +09:00