shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

243
active users

#unittests

0 posts0 participants0 posts today

Hey Mastodon, question for my #sysadmin and #DevOps types. Has anyone used #Pester and #PSScriptAnalyzer to set up unit testing for test driven development, particularly on (relatively) simple scripts like you might use for application detection, installation, and uninstallation from a system like #SCCM #Intune or #ManageEngine ?

Apologies for the buzzword bingo, but I’m trying to reach folks who may be following the hashtags, but not necessarily have a connection otherwise.

Continued thread

@pidgin Also if anyone wants to explore more themselves, meson makes this really easy.

From the top of our source tree you can run meson with the following command

meson build -Db_coverage=true -Dgplugin:vapi=false build-coverage

The vala bindings need to be disabled because the confuse gcovr.

Once configuration is done you can run the tests and generate the coverage report with the following

cd build-coverage
ninja turtles
ninja coverage-html

Continued thread

@pidgin Some more info. Keep in mind that the 130 suites include libraries we maintain as well, but the code coverage here does not include.

Also, the coverage includes, libpurple, pidgin, and the protocol plugins and that pidgin and the protocol plugins aren't exactly testable although we have some stuff we're working on for that.