Developer-Guide/general/first_steps.md
2024-04-24 03:20:46 +00:00

3.0 KiB
Executable File

First steps

After you installed the application and configured your development environment you are ready to make your first code contributions.

Please note that besides the general development guide the organization also provides various other organizational documents which help to understand the processes, development status and decisions made.

First tasks

Unit tests & code coverage

Implement tests to improve code coverage. Uncovered lines can be found in the coverage overview.

Documentation

Test documentation

All tests need to have the following docblocks:

Class
/**
 * @testdox phpOMS\tests\Image\SkewTest: Image skew
 * @internal
 */
  • @testdox Is a one-line test description which is included in a test report for customers. The FQN is very important, it must be present.
Function
/**
 * @testdox A image can be automatically unskewed
 * @group framework
 * @covers \phpOMS\Image\Skew
 */
  • @testdox Is a one-line test description which is included in a test report for customers.
  • @group Is mostly framework (for phpOMS) or module for (for Modules)
  • @covers Is used to restrict the class which is getting covered by this test

Module documentation

Modules have a Help and a Dev documentation both are insufficient for most modules. Feel free to add some documentation. Consider to use images wherever helpful. Consider to add the used images to https://github.com/Karaka-Management/Build/blob/master/Js/createImages.js which will automatically create new images even if the style changes or minor layout changes are made.

...
    [
        'http://192.168.178.38/en/admin/module/settings?id=Admin#c-tab-3',
        '//*[@id="content"]',
        __dirname + '/../../Modules/Admin/Docs/Help/img/admin-module-admin-settings-design.png'
    ],
...
  1. Url to the endpoint (must use the same IP used in other examples)
  2. XPath of the content you want to take an image from
  3. Output directory

Todos

Usually todos with low priority and easy difficulty are good beginner todos: https://github.com/orgs/Karaka-Management/projects/10.