查找

Resumo
· Jul. 28

Publications des développeurs d'InterSystems, semaine Juillet 21 - 27, 2025, Résumé

Resumo
· Jul. 28

Nuevas publicaciones en la Comunidad de InterSystems, 21-27 julio

21-27 julioWeek at a GlanceInterSystems Developer Community
Artigo
· Jul. 28 1min de leitura

An example of partial code coverage by a unit test

The new version of InterSystems Testing Manager which I released last week brings @Timothy Leavitt's cool 
Test Coverage Tool to VS Code, and is my entry for the 2025 Developer Tools contest.

Here's a teaser screenshot showing how the unit tests of the IPM project don't yet cover a feature that apparently allows an IPM repository to override its sort order.

Notice how line 88 is decorated red as a warning to the developer.

A "battery indicator"-style decoration in VS Code's Explorer view shows amber because tests cover only 76% of the executable lines in the methods of this class. Hovering on the indicator shows more information, and the method coverage (8 out of 9) is also displayed as a second indicator in the optional Test Coverage Toolbar on the editor.

Thresholds can be configured in VS Code, as can the colors if red-amber-green are hard to distinguish.

Like what you see? If you're already using the InterSystems %UnitTest framework please try it for yourself. Feedback welcome, as are votes in the contest before voting closes on Sunday August 3rd at midnight Eastern Time.

1 Comment
Discussão (1)1
Entre ou crie uma conta para continuar
Artigo
· Jul. 28 3min de leitura

Introduction to Python Dunder Methods

img

This will be a short article about Python dunder methods, also known as magic methods.

What are Dunder Methods?

Dunder methods are special methods in Python that start and end with double underscores (__). They allow you to define the behavior of your objects for built-in operations, such as addition, subtraction, string representation, and more.

Some common dunder methods include:

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· Jul. 28 6min de leitura
Discussão (2)2
Entre ou crie uma conta para continuar