X++ Testing got simpler and faster
In the latest version of X++ (10.0.44) it became a little easier to write tests.
Firstly more than 5 specific performance improvements found its way into the product, reducing the execution time for all tests.
It is now also simpler to write tests - especially if your tests depends on flights.
SysTestCaseAutomaticNumberSequencesAttribute is now always inherited from class level to method level
Previously if you decorated a test class with SysTestCaseMethodLevelContextEnabled then you also had to decorate each method with SysTestCaseAutomaticNumberSequencesAttribute. That is no longer need, SysTestCaseAutomaticNumberSequencesAttribute at the class level is enough.
If manually setting up number-sequences is your thing, you can opt out on the method level using
SysTestCaseMethodLevelContextEnabled is (mostly) not needed anymore.
Previously to make SysTestCaseFlightDependency and SysTestFeatureDependency work on a method level, you had to remember to also decorate the class with SysTestCaseMethodLevelContextEnabled. This redundancy is no longer needed, if one method is detected with either of the two attributes then then method level context is automatically enabled.
SysTestCaseFlightDependencyAttribute is now obsolete
As flights are now implemented by extending the Flight class (which is-a IFeature) we should now use SysTestFeatureDependency instead.
#Xpp #FnO #Dynamics365
Senior Manager @ Accenture, Delivery Unit Lead, Dynamics 365 F&O Architect, Microsoft AI ERP, AI/ML and Quantum Computing Enthusiast
3moThanks for sharing, Michael, Question is the tool missing few key things like coverage calculation, which was there in AX 2012 version, any plans to bring it back or is there a way available to do that right now.
Technical Enterprise Architect
3moBased on recent releases, MS team should use it.
Group Manager at Avanade - European Manufacturing Hub
3moMatteo Lotti