Commit graph

8 commits

Author SHA1 Message Date
thiemowmde
6208f68751 Relax ReleaseNotesTest to accept long URLs
Needed-For: I1f085532ab720265acb1213f33869f759a987d92
Change-Id: Icb09fed4cd6d0306ce081b0ea1ca63ef55c4ad25
2022-11-07 13:53:49 +01:00
jenkins-bot
d42ea5fb3d Merge "Add composer releasenotes command" 2021-12-23 17:43:34 +00:00
Reedy
06e82d1c78 ReleaseNotesTest: Minor cleanup
* Remove unused $index in foreach
* Rename $max_length to $maxLength
* Don't repeatedly set $maxLength to the same value
* Don't set $num unless it is needed

Change-Id: I8b57d637918e883076349d209a845da27c2b78cd
2021-12-18 17:33:15 +00:00
Umherirrender
7fec5ecda7 tests: Remove FILE_SKIP_EMPTY_LINES from ReleaseNotesTest
The line count in the error message gets wrong,
when the empty lines are not counted.

Change-Id: Ibb3a39d55893dc8ddd08208df356d189eabd73df
2021-12-18 17:48:04 +01:00
Reedy
0bc26db25a Add composer releasenotes command
Bug: T297826
Change-Id: Ia2ab03f27d423c4c318da803172957d5ff5c0311
2021-12-15 21:21:45 +00:00
DannyS712
a580c63007 Make ReleaseNotesTest a pure unit test
Change-Id: I935ef42a971924486bf2b1a7a9f41610262d0375
2021-01-21 02:45:09 +00:00
Legoktm
4e35134f7a Revert "Separate MediaWiki unit and integration tests"
This reverts commit 0a2b996278.

Reason for revert: Broke postgres tests.

Change-Id: I27d8e0c807ad5f0748b9611a4f3df84cc213fbe1
2019-06-13 23:00:08 +00:00
Máté Szabó
0a2b996278 Separate MediaWiki unit and integration tests
This changeset implements T89432 and related tickets and is based on exploration
done at the Prague Hackathon. The goal is to identify tests in MediaWiki core
that can be run without having to install & configure MediaWiki and its dependencies,
and provide a way to execute these tests via the standard phpunit entry point,
allowing for faster development and integration with existing tooling like IDEs.

The initial set of tests that met these criteria were identified using the work Amir did in
I88822667693d9e00ac3d4639c87bc24e5083e5e8. These tests were then moved into a new subdirectory
under phpunit/ and organized into a separate test suite. The environment for this suite
is set up via a PHPUnit bootstrap file without a custom entry point.

You can execute these tests by running:
$ vendor/bin/phpunit -d memory_limit=512M -c tests/phpunit/unit-tests.xml

Bug: T89432
Bug: T87781
Bug: T84948
Change-Id: Iad01033a0548afd4d2a6f2c1ef6fcc9debf72c0d
2019-06-13 22:56:31 +02:00