Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 944 Bytes

File metadata and controls

18 lines (14 loc) · 944 Bytes

gitpod-net-unit-tests

Gitpod ready-to-code

This is a sample repository to see if it is possible to debug unit-tests with gitpod.

The idea is as follows:

  • Set a breakpoint in one of the unit-tests
  • Execute the launch task ".NET Core Attach"
  • The launch task has a preLaunchTask "debug-test"
  • The task starts the tests in the mode that they wait for a debugger to attach
  • It does so with nohup to detach it from the script and redirects output to a file
  • The ouput is filtered to get the PID.
  • The PID is set as an environment variable
  • Once the pre launch task is done, the actual launch task is executed
  • It uses the environment variable set by the script "TEST_PROCESS_ID" to attach to the right process
  • OR it should be able to use the name, however that does not work currently