cacao Posted December 22, 2016 Share Posted December 22, 2016 mta-unit-tests -- Example test -- @usage -- First, we need unit test in global table -- Then, we can describe tests g_Tests = g_Tests or {} g_Tests[#g_Tests+1] = { -- Description of testSuite ["_NAME"] = "testSuite:example simplify assert test, should return true", -- Name of assert ["testExample"] = function() assert(true, "that was true!") end, -- Second name another assert ["testAnotherExample"] = function() assertEqual(true, false, "that second assert, should equals!") end } Based script: Lunity https://github.com/READYTOMASSACRE/mta-unit-tests Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now