Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105495

Support testing plugins

    XMLWordPrintable

Details

    • Support testing plugins
    • All

    Description

      It's currently difficult to test plugins, because they're not always built.
      We can only test them via the API by which they're used, testing via whatever Qt component they support (be that SSL, SQL, platform QPA or whatever). This can be somewhat indirect, making it difficult to exercise the particular piece of code one has fixed, for the sake of a regression test, for example.

      It should be possible to, for example, put tests in qtbase/tests/auto/plugins/platforms/android/ – that are built and testable precisely when qtbase/src/plugins/platforms/android/ is built – that test the internals of the plugin, e.g. to catch regressions, or to systematically unit test some internal API that the public API of the plugin only accesses indirectly (which commonly makes it hard to control exactly how a particular part of its internals gets exercised).
      The test binary for that would need to dynamically link to the plugin, of course.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Eddy Edward Welbourne
            Eddy Edward Welbourne
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes