Skip to Main Content
InterSystems Ideas
We love hearing from our users. Tell us what you want to see next and upvote ideas from the community.
* Bugs and troubleshooting should as usual go through InterSystems support.
Status Done by Community
Categories InterSystems IRIS
Created by Evgeny Shvarov
Created on Feb 6, 2022

Add a project that helps to generate unittests for an ObjectScript class

Often we need a unittest for a given objectscript class.

And the schema of unittest class is pretty typical:

  • the unittest class relates to a certain objectscript class but with the name Test before the class name

  • methods in unittest start with Test and then repeat the classmethod name of ObjecScript class, e.g. TestSomeMethod(), where SomeMethod is the method of original class.

Instead of manually creation the unittest class could be generated by default having testmethods for all the classmethods of the original class.

    Feb 24, 2023

    Thank you for submitting the idea.

    This idea was implemented by Developer Community member(s). Please check the solution in the comments.