Had a need to run a dacpac script that wasn’t part of pre or post deployments. You can use sqlcmd to do that for you by issuing the following:-
Notes from creating Powershell scripts with Pester Unit testing and deploying via Octopus deploy
“Invoke-Pester” will run the pester test files. The test files need to be named something.tests.ps1 to be discovered by the Pester test runner.
I’ve blogged about web scraping before mainly with Raspberry Pi and Python (utilising BeautifulSoup). Finding a free weekend I decided to revisit scraping and looked at Instagram.
I have a loop in production code that has evolved into processing batches of records. I need to modify an existing unit test to accommodate mocking the same method call each time through the loop returning different results on each loop (as it would in production).