mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-23 07:42:52 +08:00
1.1 KiB
1.1 KiB
Running a CLI Application Project
- Only run
copilotExecute.ps1to run a unit test project. - DO NOT call executables or scripts yourself.
Executing copilotExecute.ps1
PROJECT-NAME is the name of the project.
Before testing, ensure the debugger has stopped. If there is any error message, it means the debugger is not alive, it is good.
& REPO-ROOT\.github\Scripts\copilotDebug_Stop.ps1
And then run test cases in SOLUTION-ROOT\PROJECT-NAME\PROJECT-NAME.vcxproj:
cd SOLUTION-ROOT
& REPO-ROOT\.github\Scripts\copilotExecute.ps1 -Mode UnitTest -Executable PROJECT-NAME
-Mode and -Executable are required.
-Configuration and -Platform arguments are available to specify the target configuration:
- When both arguments are omitted, the last build configuration will be picked up.
- Both arguments should be omitted or not omitted at the same time.
-Configurationcould beDebug(default) orRelease.-Platformcould bex64(default) orWin32- Pick the default option (omit both arguments) when there is no specific requirements.