Jump to content

Help:Lua: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
new key for Category:Module help: " " using HotCat
 
(9 intermediate revisions by 9 users not shown)
Line 22: Line 22:
== Testing modules ==
== Testing modules ==
* [[Module:UnitTests]] - used to power many module [[unit test]]s, which are usually found by the name "Module:(your-module-name)/tests".
* [[Module:UnitTests]] - used to power many module [[unit test]]s, which are usually found by the name "Module:(your-module-name)/tests".
* [[Module:Example/testcases]] – [[Module talk:Example/testcases|Results]] - Unit tests for [[Module:Example]] (the "hello world" module)

;Sample unit tests for the "Hello world" modules:
* [[Module:Example/testcases]] – [[Module talk:Example/testcases|Results]]
* [[Module:BananasArgs/testcases]] – [[Module talk:BananasArgs/testcases|Results]]


== Profiling modules and functions ==
== Profiling modules and functions ==
Line 38: Line 35:
==Wikipedia resources==
==Wikipedia resources==
* [[Special:PrefixIndex/Module:Sandbox]] - allows you to work on a set of files within a sandbox prefix.
* [[Special:PrefixIndex/Module:Sandbox]] - allows you to work on a set of files within a sandbox prefix.

{{Lua programming language}}


{{Wikipedia technical help|collapsed}}
{{Wikipedia technical help|collapsed}}


[[Category:Wikipedia modules]]
[[Category:Module help| ]]

Latest revision as of 15:03, 16 June 2024

  • Help:Lua for beginners
  • Help:Lua debugging – about debugging Lua modules
  • Wikipedia:Lua style guide – standards to improve the readability of code through consistency
  • Module:Sandbox provides a pseudo-namespace for experimenting with Lua modules

"Hello world"[edit]

Documentation[edit]

How-to guides[edit]

Debugging modules[edit]

  • Module:SimpleDebug - It allows to collect and view the values of one or several variables and/or customized labels of several points of a lua program.

Testing modules[edit]

Profiling modules and functions[edit]

  • Module:Timing – module to do some simple probing of timing issues, mostly to spot and fix load problems

Patterns[edit]

Wikipedia resources[edit]