Empower the Makefile capabilities built into Visual Studio Code — Run any command from the sidebar, run and watch tests by right clicking either on a file or folder
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Makefile Command Runner empowers the Makefile capabilities built into Visual Studio Code — Run any command from the sidebar, run and watch tests by right clicking either on a file or folder.
Settings Options
This extension contributes the following variables to the settings:
makefilePath: use this setting to set the file path of your Makefile, for example bin/local
unitTestCommand: use this setting to set the unit test command, for exmample unit-test-all
integrationTestCommand: use this setting to set the integration test command, for exmample integration-test
unitTestWatchCommand: use this setting to set the unit test watch command, for exmample unit-test-all-watch
integrationTestWatchCommand: use this setting to set the integration test watch command, for exmample integration-test-all-watch
filePathEnv: use this setting to set the file path environment variable used to pass down to node scripts the file path, for example FILE_PATH
Features
Commands view
A view to visualize and explore Makefile commands
Explorer menu
Adds "Run test" and "Run and watch test" in the explorer menu
Use right click to open the menu
How to use
Locate your makefile path and name. Example for a makefile located in bin/make and named Makefile.main
Open settings and update Makefile path and Makefile name
Check the remaining settings and make sure you update them correctly according to your project