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.
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 example unit-test-all
- integrationTestCommand: use this setting to set the integration test command, for example integration-test
- unitTestWatchCommand: use this setting to set the unit test watch command, for example unit-test-all-watch
- integrationTestWatchCommand: use this setting to set the integration test watch command, for example 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
A view to visualize and explore Makefile commands
Adds "Run test" and "Run and watch test" in the explorer menu
- Use
right click
to open the menu
-
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