You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging tests I have to point the debugger at
{root}/source/.exe (the default test executable location)
instead of a more sane custom path like
{root}/test.exe
Allowing -out with odin test would make this possible, but I'm not sure if it's in the spirit of odin test, seeing that it was disallowed in the original commit (2bd0fd9). The fix is to remove &~ Command_test from here:
Side note, one awkward thing about debugging tests is they get run twice: first when calling odin test, which builds and runs the test executable, and again when debugging. To get around this there would need to be a odin test-build and odin test-run similar to odin build and odin run. Right now it's not a big deal and there's benefits to having a cleaner CLI with just odin test. Anyway, that's a separate matter.
Report
Odin: dev-2022-09:0bc660c7
OS: Windows 11 Professional (version: 21H2), build 22000.856
CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
RAM: 32605 MiB
The text was updated successfully, but these errors were encountered:
And while we're at it, we could add a odin test <package> -keep-test-executable to keep the executable after running the test, with it being deleted by default.
Summary
When debugging tests I have to point the debugger at
{root}/source/.exe
(the default test executable location)instead of a more sane custom path like
{root}/test.exe
Allowing
-out
withodin test
would make this possible, but I'm not sure if it's in the spirit ofodin test
, seeing that it was disallowed in the original commit (2bd0fd9). The fix is to remove&~ Command_test
from here:Odin/src/main.cpp
Line 750 in 81e3b64
Side note, one awkward thing about debugging tests is they get run twice: first when calling
odin test
, which builds and runs the test executable, and again when debugging. To get around this there would need to be aodin test-build
andodin test-run
similar toodin build
andodin run
. Right now it's not a big deal and there's benefits to having a cleaner CLI with justodin test
. Anyway, that's a separate matter.Report
The text was updated successfully, but these errors were encountered: