-
Notifications
You must be signed in to change notification settings - Fork 4
3. Component methods
- describe : (text) description of the test.
- method : (text) method that execute the test (must be "Current method name").
- category : (text) (optional) category of the test. This is used to separate multiple tests in different categories.
return a unit test object with the assert member function. This object will need 4 parameters (given, should, expected, actual) before to call the assert method.
Create a new test. A test can then do multiple assert. Only one test must be created by method.
- methods (collection) (optional) : collections of method to tests.
(object) parsed results.
This method will run all the tests (or only the given methods) and return the results in an object. It will also log the results in a file located at : "<database_path>/Logs/UnitTestsResults.json".
- none
none.
This method will launch a window that will list all the categories and descriptions (based on the existing log file). You will be able launch all the tests or only for a selected category/description.
- none
(text) Version number.
This method returns the version number of the component when it has been compiled.
This method is not made to be used, it gives you some code in the comment section of the method. The code shows you how an error handler should be written to be able to fully test the error handling of your unit tests.
AJ_Tools_UnitTest 1.0.0 - Thursday, 04 June 2020
User Manual 🇺🇸
-
Introduction
-
Practice
Manuel d'utilisation 🇫🇷
-
Introduction
-
Pratique