# Running All My Courses Tests With One Key
This is a neovim buffer that gets populated with the results of running every unit test that I've built for my Memory Management/C course on boot. I type ",sE" to execute this for the entire course. Then, it runs all the unit tests in parallel.
![[Pasted image 20240722140300.png|400]]
It runs the complete test, and then if the test is successful runs it again with valgrind. If either of those fails, it will give the error message from valgrind (A.K.A skill issue)
![[Pasted image 20240722140325.png|400]]
or the errors from the test:
![[Pasted image 20240722140344.png|400]]
I can then navigate to the error, and run the tests for only that chapter with ",se" . In this view, I load up error diagnostics into neovim to quickly navigate to the exact line that is failing so I can fix this (of course this rarely happens, I usually get them first try)
![[Pasted image 20240722140402.png|400]]
Anyway, Neovim makes me happy that I can write this casually in one morning while still working on other parts of the course and now I can easily verify that every test is passing (and not leaking any memory) with a single command, and easily clean up any errors that are found (and I repeat, this is very rare)
Obviously, the tests normally look like:
![[Pasted image 20240722140937.png|400]]
And that's why Neovim is my Personalized Development Environment.
I may publish this later for people to read, but there's nothing too special about the code. The important part is just thinking about the problems that you have to do a lot of times in a day and how you can make them not feel like nails on a chalkboard! Hopefully this can be an inspiration to you :)
If you're interested in the course, it will be on [boot.dev/teej](https://boot.dev/teej) (promo code TEEJ for 25% off - you get access to all the courses on boot with your subscription) sometime next month. Lane didn't pay me to write this but he should have.
![[Drawing 2024-07-25 14.51.39.excalidraw]]