Frameworks/Policies: Difference between revisions

From KDE Community Wiki
No edit summary
Line 20: Line 20:
=== Frameworks have automatic unit tests ===
=== Frameworks have automatic unit tests ===
Enough said really... They must be unit tested with automatic unit tests.
Enough said really... They must be unit tested with automatic unit tests.
=== Frameworks maintain binary compatibility ===
Just like we did in kdelibs, KDE Frameworks maintain the binary compatibility through their life time, for more details see [[http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++|the binary compatibility policy on techbase]].
Note however that this policy is lifted during major version transition, corresponding epics of milestones will be marked as such.

Revision as of 09:36, 3 December 2011

The strategy and policies for the KDE Frameworks effort is yet to be discussed and decided.

http://thread.gmane.org/gmane.comp.kde.devel.frameworks/37

This page is a starting point for further expansion.


Policies

Framework directory structure

All the frameworks will have the same directory structure which will follow some rules:

  • The containing directory has the name of the technology (plasma, kio, itemmodels, etc.);
  • At the top level we find the common files like README, TODO, MAINTAINER, etc.
  • More comprehensive documentation go into a docs subdirectory
  • The source code for the targets go into src subdirectory, if several payload are built (like a core lib and a gui layer on top) then src will contain one subdirectory per library: core, gui, widgets, etc.
  • Code examples go into an examples subdirectory
  • Automatic tests go into an autotests subdirectory
  • Test applications go into a tests subdirectory

Frameworks have automatic unit tests

Enough said really... They must be unit tested with automatic unit tests.

Frameworks maintain binary compatibility

Just like we did in kdelibs, KDE Frameworks maintain the binary compatibility through their life time, for more details see [binary compatibility policy on techbase].

Note however that this policy is lifted during major version transition, corresponding epics of milestones will be marked as such.