Commit Graph

75 Commits

Author SHA1 Message Date
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
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
Michal Čihař
c2419ee951 Merge branch 'QA_4_6' 2016-04-19 16:25:15 +02:00
Michal Čihař
8b29917eca Use coding standard from phpmyadmin/coding-standard
It is way cleaner to have the coding standard separte and use it when
checking.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-19 16:22:55 +02:00
Michal Čihař
f2e034451a Remove exclusion of php-gettext from test
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-24 14:44:17 +01:00
Michal Čihař
4103e0c6ae Do not generate coverage for tests
It is broken due to way how phpunit works - it doesn't count as covered
data providers.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-24 14:42:26 +01:00
Michal Čihař
6a46ea5684 Include tests in test coverage
It helps to identify not executed test files.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 11:41:56 +01:00
Michal Čihař
974b9fe82c Do not generate coverage for composer packages
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 08:05:49 +01:00
Michal Čihař
315e7d3982 Remove no longer needed excludes from build configuration
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 08:04:15 +01:00
chintan zaveri
2b74163914 Removal of Swekey
Signed-off-by: Chintan Zaveri <zaveri_chintan@rediff.com>

master rebased

Signed-off-by: Chintan Zaveri <zaveri_chintan@rediff.com>
2016-02-20 21:41:07 +05:30
Michal Čihař
aac4e31eee Fix test discovery for class tests
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-12-01 14:19:59 +01:00
Dan Ungureanu
e724dbb691 The test folder was included in coverage.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-23 03:23:55 +03:00
Dan Ungureanu
ecc60f3664 Fixed failing tests. Also, removed deprecated PHPUnit configuration that might cause issues with XDebug.
Fixed a bug where the query delimiter would not be added.
Updated sql-parser to udan11/sql-parser@7c925b6.

Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-10 23:18:18 +03:00
Dan Ungureanu
8c62557b2e Added sql-parser to PHPUnit's exclude filter for code coverage.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-10 23:18:13 +03:00
Michal Čihař
ba2b31c581 Do not build HTML coverage logs, we do not use them at all
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-24 11:53:00 +02:00