? ? ? Pending

User tests: Successful: Unsuccessful:

avatar dneukirchen
dneukirchen
22 Feb 2019

This PR brings the unit tests back to the core as discussed in #23962

  • added psr-4 autoloading for tests using composer
  • namespaced unit tests
  • added unit tests
  • refactored existing unit tests
  • removed useless unit tests
  • re-integrated some of the unit tests that are currently not running
  • added UnitTestCase as a base class
  • updated build tools
  • fixed one bug in Mail class which surprisingly was not detected by previous unit tests

before: OK (123 tests, 144 assertions)
after: Tests: 443, Assertions: 678, Skipped: 1.

Testing instructions:
Code review + run phpunit

avatar dneukirchen dneukirchen - open - 22 Feb 2019
avatar dneukirchen dneukirchen - change - 22 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2019
Category Unit Tests External Library Composer Change Repository
avatar dneukirchen dneukirchen - change - 22 Feb 2019
The description was changed
avatar dneukirchen dneukirchen - edited - 22 Feb 2019
avatar dneukirchen dneukirchen - change - 22 Feb 2019
The description was changed
avatar dneukirchen dneukirchen - edited - 22 Feb 2019
avatar dneukirchen dneukirchen - change - 22 Feb 2019
Labels Added: ? ? ?
avatar dneukirchen dneukirchen - change - 22 Feb 2019
The description was changed
avatar dneukirchen dneukirchen - edited - 22 Feb 2019
avatar dgrammatiko
dgrammatiko - comment - 22 Feb 2019

@dneukirchen are you gonna bring the javascript tests as well? Do you want me to do aPR for that?
Is that also considered at this point?

avatar dneukirchen
dneukirchen - comment - 22 Feb 2019

@dgrammatiko yes, the plan is to move all test suites back to repo. would be nice if you can do the js part. when you merge js tests back, it would be nice to update karma because of an sec issue in one of its dev dependencies. tried to reach you on glip to talk about it. we are using karma 0.13, current version is 4. karma 2+ should fix it.

avatar dgrammatiko
dgrammatiko - comment - 22 Feb 2019

@dneukirchen ok, I will try to do a PR this weekend

d246910 22 Feb 2019 avatar dneukirchen CS
avatar TobsBobs
TobsBobs - comment - 22 Feb 2019

What is the difference between this pull request and #23962?

avatar dneukirchen
dneukirchen - comment - 22 Feb 2019
  • it includes more unit tests (re-enabled some of the old unit tests which did not run for j4)
  • tests are namespaced and psr-4 autoloaded
  • tests use namespaced classes
  • useless tests and integration tests in unit test suite are removed
  • refactored some of the tests
avatar Hackwar
Hackwar - comment - 22 Feb 2019

While we are at it: Appveyor has a bunch of errors in its output. I doubt that it should be like that...

avatar rdeutz
rdeutz - comment - 23 Feb 2019

looks good to me

avatar Hackwar
Hackwar - comment - 23 Feb 2019

What is the difference between this pull request and #23962?

I'll jsut leave this here: joomla/test-unit#9

0e7c452 25 Feb 2019 avatar dneukirchen CS
avatar joomla-cms-bot joomla-cms-bot - change - 26 Feb 2019
Category Unit Tests External Library Composer Change Repository Unit Tests External Library Composer Change Libraries Repository
avatar dneukirchen dneukirchen - change - 26 Feb 2019
The description was changed
avatar dneukirchen dneukirchen - edited - 26 Feb 2019
avatar dneukirchen dneukirchen - change - 26 Feb 2019
The description was changed
avatar dneukirchen dneukirchen - edited - 26 Feb 2019
avatar dneukirchen dneukirchen - change - 26 Feb 2019
The description was changed
avatar dneukirchen dneukirchen - edited - 26 Feb 2019
avatar dneukirchen
dneukirchen - comment - 28 Feb 2019

Rtc?

avatar dgrammatiko
dgrammatiko - comment - 28 Feb 2019

@dneukirchen cross referencing
#24044

avatar dneukirchen
dneukirchen - comment - 8 Mar 2019

fixed merge conflict.

avatar dneukirchen
dneukirchen - comment - 8 Mar 2019

ping @rdeutz @wilsonge @HLeithner can we get this merged?

avatar rdeutz rdeutz - change - 10 Mar 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-03-10 14:20:12
Closed_By rdeutz
avatar rdeutz rdeutz - close - 10 Mar 2019
avatar rdeutz rdeutz - merge - 10 Mar 2019
avatar dgrammatiko
dgrammatiko - comment - 10 Mar 2019
avatar rdeutz
rdeutz - comment - 10 Mar 2019

@dgrammatiko I am on it

avatar infograf768
infograf768 - comment - 11 Mar 2019

Hmm.
tests/Unit/Libraries/Cms/Mircodata/MicrodataTest.php

Mircodata ??

Also it looks like these new files have not been added as indexed to the branch.

Add a Comment

Login with GitHub to post a comment