As you have noticed, you need Visual Studio Enterprise for live unit testing, or Jetbrains Rider, or some Visual Studio Code “hacks”. Here is a method to have coverage of .Net core with a global tool:

Daniel Palme has a global tool version of Report Generator. You should install it once with:

dotnet tool install -g dotnet-reportgenerator-globaltool

dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools

You can then run it with `reportgenerator` so after building I run:

dotnet test --filter FullyQualifiedName~UnitTests /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*Test*]" /p:ExcludeByAttribute="GeneratedCodeAttribute"
reportgenerator "-reports:**\coverage.opencover.xml" "-targetdir:C:\Temp\Reports\" "-reporttypes:HTML"
Start-Process -FilePath "C:\Temp\Reports\index.htm"

Of course you can go to the project properties and add the three lines of powershell to a file in the root of your solution and add to the build events tab as post-build:

Powershell -File "$(SolutionDir)nameOfPowershellscript.ps1"

Good luck!

Post on LinkedIn

Recently the Raspberry Pi 4 was announced, But I am currently using my rpi 3test_1 and want to run Rabbit MQ on it in Docker. So I used these two commands to get it to work and I just wanted to share it:

sudo rm /etc/apt/sources.list.d/docker.list;

curl –sL | sed ‘s/9)/10)’ | sh

If you would like to use Docker as a non-root user you should add your user to the docker group:

sudo usermod –aG docker pi

To get Rabbit MQ (which has arm container) on the pi with a management web interface run:

sudo docker run –d –hostname my-rabbit –name some-rabbit –p 15672:15672 –p 5672:5672 rabbitmq:3-management

Then get the ip of the docker container with (but since you added the ports in the previous command, this step can be skipped):

sudo docker inspect –f ‘{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ some-rabbit

Then you can launch a browser and go to http://thatipaddress:15672 and login with 'guest/guest'. If you did not lookup the ip of the container you can use the ip of the pi because you opened container ports when running it.


Good luck!

Post on LinkedIn
0 Comments a software developer, you need a headphone and music to get into the zone. If I have to explain what “the zone” is, you might consider skipping this blog. Mark Zuckerberg was in the zone in the movie the social network.

My current headphone is a on-ear Sony MDR-NC7 with active noise-cancelling. It was the cheapest noise-cancelling headphone and I wanted to check out if noise cancelling would work. So if you have a nice affordable suggestion for a new headphone (preferably with noise cancelling) please let me know in the comments below.

As a developer, you know how hard it can be. If you have an off day:

So here is a list of Spotify playlists for coders. Please feel free to share your spotify coding playlist in the comments!

  1. A soundtrack for coding, 9911 followers
  2. Coding programming hacking slashing – tracks I listen to while writing code, 2672 followers
  3. Chill coding musix, 2625 followers
  4. Music for programming, 1500 followers
  5. A soundtrack for coding: the 2am session, 1042 followers
  6. Coding tracks, 808 followers
  7. Coding music, 463 followers
  8. Coding for hackers, 386 followers
  9. Development on the beat, 348 followers

The “followers” data is from 21th of july 2014. I will try to keep this list up-to-date after each comment. Ow and please post a comment if you have a good affordable noise cancelling over-ear headphone tip!

Good luck coding/hacking/developing/programming!

Post on LinkedIn