Kontent qismiga oʻtish

Modul:Template test case/doc

Vikipediya, ochiq ensiklopediya

Bu sahifa Modul:Template test case uchun hujjat sahifasidir

Ushbu modul andoza testquti ishlab chiqaruvchi shablonlarni yaratish uchun asos yaratadi. Test holatlarini qo'lda qilish mumkin bo'lsa-da, ushbu modul tomonidan taqdim etilganlar kabi Lua-ga asoslangan shablonlardan foydalanishning afzalligi shundaki, shablon argumentlari faqat bir marta kiritilishi kerak, shuning uchun test holatlarini yaratishda sarflanadigan harakatlarni kamaytiradi va xatolar ehtimolini kamaytiradi. kiritishda.

This module should not usually be called directly. Instead, you should use one of the following templates:

Parameter-based templates:

The only difference between these templates is their default arguments. For example, it is possible to display test cases side by side in Template:Testcase rows by specifying |_format=columns

Nowiki-based templates:

It is also possible to use a format of {{#invoke:template test case|main|parameters}}. This uses the same defaults as Template:Test case; please see that page for documentation of the parameters.

There is no direct interface to this module for other Lua modules. Lua modules should generally use Lua-based test case modules such as Module:UnitTests or Module:ScribuntoUnit. If it is really necessary to use this module, you can use frame:expandTemplate with one of the templates listed above.

Configuration

[manbasini tahrirlash]

This module has a configuration module at Module:Template test case/config. You can edit it to add new wrapper templates, or to change the messages that the module outputs.

Tracking categories

[manbasini tahrirlash]