Difference between revisions of "Manual:Testing"
(Created page with "{{TOC right}} = How to test your own scripts = Are you a package maker and would like to add some automated (unit) tests? Automated tests can be extremely useful in a medium...") |
(Add Lua and C++ tests) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
== Simulate a fresh install == | == Simulate a fresh install == | ||
− | To simulate a fresh install of Mudlet, close Mudlet first, | + | To simulate a fresh install of Mudlet, close Mudlet first, then: |
− | * on Windows - your windows account folder, then the ''.config'' and the ''mudlet'' folder within. Also rename/delete the Mudlet registry entry in ''HKEY_CURRENT_USER\Software\mudlet'' | + | * on Windows - find your windows account folder (typically C:\Users\YourUserName on English language versions), then the ''.config'' folder and then rename/delete the ''mudlet'' folder within. Also rename/delete the Mudlet registry entry in ''HKEY_CURRENT_USER\Software\mudlet'' |
− | * on Linux - your home folder, show hidden files, | + | * on Linux - find your home folder, then show hidden files, and find the ''.config'' and then rename/delete the ''mudlet/Mudlet'' folders within |
− | * on Mac - your | + | * on Mac - find your user (home) folder, then the ''.config'' and then rename/delete the ''mudlet/Mudlet'' folders within |
+ | |||
+ | Note that if you '''delete''' the relevant folder then '''you will destroy all the data for any previous MUDs you have played with Mudlet!''' | ||
+ | |||
+ | == Create graphical tests for Mudlet == | ||
+ | Check out [[Rainforest Testing]] on creating no-code tests for Mudlet. | ||
+ | |||
+ | == Create Lua tests for Mudlet == | ||
+ | Much of Mudlet's API can be tested with Lua, see [https://github.com/Mudlet/Mudlet/tree/development/src/mudlet-lua github]. | ||
+ | |||
+ | == Create C++ tests for Mudlet == | ||
+ | For the few pieces of functionality that can't be tested graphically nor with Lua, we have [https://github.com/Mudlet/Mudlet/tree/development/test C++ tests] available as well. |
Latest revision as of 10:42, 26 December 2022
How to test your own scripts
Are you a package maker and would like to add some automated (unit) tests? Automated tests can be extremely useful in a medium to large package to ensure you don't break something else when you change one thing. Check out the LuaUnit package for this.
How to test Mudlet
Are you a Mudlet developer or Mudlet tester looking to test Mudlet itself? See below for some common scenarios:
Simulate a fresh install
To simulate a fresh install of Mudlet, close Mudlet first, then:
- on Windows - find your windows account folder (typically C:\Users\YourUserName on English language versions), then the .config folder and then rename/delete the mudlet folder within. Also rename/delete the Mudlet registry entry in HKEY_CURRENT_USER\Software\mudlet
- on Linux - find your home folder, then show hidden files, and find the .config and then rename/delete the mudlet/Mudlet folders within
- on Mac - find your user (home) folder, then the .config and then rename/delete the mudlet/Mudlet folders within
Note that if you delete the relevant folder then you will destroy all the data for any previous MUDs you have played with Mudlet!
Create graphical tests for Mudlet
Check out Rainforest Testing on creating no-code tests for Mudlet.
Create Lua tests for Mudlet
Much of Mudlet's API can be tested with Lua, see github.
Create C++ tests for Mudlet
For the few pieces of functionality that can't be tested graphically nor with Lua, we have C++ tests available as well.