Commit Graph

88 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
606f66b5df
Rename tests/classes to tests/unit
This directory is for unit tests only, so let's rename it to unit to be
more clear.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-02-23 13:29:07 -03:00
Maurício Meneghini Fauth
23364971d4
Include only src dir as PHP source for PHPUnit
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-01-09 19:14:06 -03:00
Maurício Meneghini Fauth
1d1c55e250
Move test directory to tests
- Related to #18512

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-11-30 10:47:42 -03:00
Maurício Meneghini Fauth
941c795085
Move ./cache directory to ./app/cache
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-10-24 17:24:06 -03:00
Maurício Meneghini Fauth
8359676f25
Move ./libraries/cache directory to ./cache
- Related to #18512

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-09-30 16:11:27 -03:00
Maurício Meneghini Fauth
57fd47a170
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-08-06 14:08:54 -03:00
Maurício Meneghini Fauth
d3c01539c7
Fail tests with not supported queries
Instead of marking them as incomplete.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-08-06 13:42:03 -03:00
Maximilian Krög
e2c7169bd3
Fail with incomplete test
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2023-07-19 23:59:39 +02:00
Maurício Meneghini Fauth
1a549b9573
Bump PHPUnit version to 10.1
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-05-16 15:38:48 -03:00
Maurício Meneghini Fauth
40cc4a0dee
Fix merge issue
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-03-26 13:37:27 -03:00
William Desportes
00a4480d3a
Adjust phpunit config: display details for warnings, notices, errors
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-03-11 01:02:03 +01:00
Maurício Meneghini Fauth
209403bae5
Change PHPUnit config to fail tests with warning
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-03-08 17:04:24 -03:00
Maurício Meneghini Fauth
efb0c451cd
Upgrade PHPUnit to version 10.0
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-22 17:19:20 -03:00
Maurício Meneghini Fauth
5cf1ec8bc3
Refactor UtilTest to remove withConsecutive method
The PHPUnit's InvocationMocker::withConsecutive() has been deprecated.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-21 13:22:30 -03:00
Maurício Meneghini Fauth
3716f94dd3
Bump PHPUnit version to 9.6
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-02-13 11:14:03 -03:00
Maurício Meneghini Fauth
64d7245f66 Fix unit tests on Windows
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-29 19:37:39 -03:00
Maurício Meneghini Fauth
58351b861c
Use testsuite option instead of group for Selenium tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-05 16:52:41 -03:00
William Desportes
3d6ecab8dd
Force LC_ALL to C.UTF8 to avoid user locale related issues, seed: 1624813981
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-27 22:41:56 +02:00
Maurício Meneghini Fauth
d544080187
Run PHPUnit test in random order by default
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-14 11:28:31 -03:00
Maurício Meneghini Fauth
eb60eea809
Add mutation tests with Infection
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-08 15:51:51 -03:00
Maurício Meneghini Fauth
f3b79d83c0
Add PHPUnit's Covers annotation on test classes
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-04 23:39:26 -03:00
Maurício Meneghini Fauth
f63d21b65b
Remove some constant definition from test/bootstrap-dist.php
Fix some failing tests.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-04 00:18:09 -03:00
Maurício Meneghini Fauth
b4f3a2c8aa
Fix some failing PHPUnit tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-02 14:53:17 -03:00
Maurício Meneghini Fauth
8e75401e9d
Update the phpunit.xml.dist file for PHPUnit 8.5
Signed-off-by: Maurício Meneghini Fauth <mauricio@php.net>
2021-02-25 15:49:57 -03:00
Maurício Meneghini Fauth
f28442c1a2 Merge branch 'QA_5_0'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-08-09 13:02:32 -03:00
William Desportes
83849b4889
Update part of the phpunit xml configuration using CLI 9.3 --migrate-configuration
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-08-09 12:06:15 +02:00
William Desportes
5bc53cc5e5
Set evil backupGlobals to false
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-05-20 21:31:47 +02:00
William Desportes
01f21e0fdf
Add new cache directory
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-28 10:38:11 +01:00
Maurício Meneghini Fauth
51f3883061 Exclude node_modules from PHP code coverage
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-03-13 14:01:27 -03:00
Maurício Meneghini Fauth
10357465de Fix PHPUnit tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-03-06 22:06:08 -03:00
William Desportes
30990a1d24
Fix EnvironmentTest path in phpunit.xml*
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-05 21:28:01 +01:00
William Desportes
3b3fbaefdb
Remove json logging removed in phpunit 6.0 (version that we no longer support)
Ref: https://github.com/sebastianbergmann/phpunit/blob/6.0.0/ChangeLog-6.0.md#removed
"Removed the --log-json commandline option (deprecated in PHPUnit 5.7)"

This commit is done for phpunit 9.0 to not complain about it

Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-05 21:12:35 +01:00
Maurício Meneghini Fauth
0361b181fc Remove PHPUnit warnings
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-11-05 19:15:05 -02:00
Maurício Meneghini Fauth
450d0cd42f Remove selenium element from phpunit.xml.*
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-11-03 21:17:21 -03:00
Maurício Meneghini Fauth
baf0985e5f Fix phpcs errors
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-18 01:59:38 -03:00
Maurício Meneghini Fauth
020c4d790d Revert "Comment out the JUnit logging report from phpunit.xml"
This reverts commit 9e79bcda3e.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-04-26 17:19:55 -03:00
Maurício Meneghini Fauth
9e79bcda3e Comment out the JUnit logging report from phpunit.xml
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-04-26 17:09:24 -03:00
Michal Čihař
9b25004890 Use actual value for cache...
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-08-22 13:11:45 +02:00
Michal Čihař
1b5556070a Excude Twig cache from coverage reports
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-08-22 12:49:21 +02:00
Michal Čihař
cbcad52b0e List longest lasting tests from the json log
Generate JSON report for tests and include it in output

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-03-02 13:31:08 +01:00
Michal Čihař
0b0e99cc02 Remove no longer needed exclude
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-03-01 16:50:08 +01:00
Deven Bansod
a8018c2fa1 Merge branch 'QA_4_6' 2016-12-19 13:46:59 +05:30
Deven Bansod
33af5ac3d6 Uncomment mistakenly commented Selenium testing setting
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-12-19 13:45:00 +05:30
Michal Čihař
dad93483c1 Merge branch 'QA_4_6' 2016-11-10 11:08:36 +01:00
Deven Bansod
8b6e102cf7 Fixed small error in XML test
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-11-04 20:54:23 +05:30
Deven Bansod
00bfc9d45d Fixed regressive change in phpunit config file
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-11-04 11:56:40 +05:30
Deven Bansod
956f3179cb Fix Navigation tests and Export tests
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-11-04 11:55:46 +05:30
Deven Bansod
d5c9a193f4 Fix tests for Table, ThemeManager, Tracker classes
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-10-29 11:00:52 +05:30
Michal Čihař
fc6ef261eb Remove Swekey support
It is buggy and their servers are no longer working.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-11 09:02:58 +02:00
Michal Čihař
7d650bd548 Use phpmyadmin/shapefile instead of embedded bfShapeFile
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-24 15:52:40 +02:00