Frontend directory error; test runner UX improvements needed.

I'm exhausted today so it will probably be a short session.

It seems like I'm still hardcoding the directory somewhere, as I'm getting this error when I try to open the terminal:

The terminal process failed to launch: Starting directory (cwd) "/tmp/codeinteractive/testing-in-dotnet" does not exist.

Looks like frontend was the culprit. I was setting the folder in the url.

Now, I will focus on making the test runner ux presentable.

A few issues I can see right away:

  • the output display is ugly. I should create a custom component that will parse dotnet test output and display pretty test results.
  • running the tests for the first time takes way too long. This is because of the restore. I need to figure out how to run the restore beforehand, or even include the binaries in the docker image so that the containers dont waste bandwidth. Probably an overkill, though.
  • I need to remove excessive vscode features
    • this one could be a bit trickier
    • I don't like the "open editors", "timeline", and "outline" on the side
    • "open editors" is not only ugly, but causes problems if they go a step back in the course, as files are missing.
  • code-server should have the c# extension installed
  • check-cs is being spammed. about 6 requests are made on refresh. Instead of retrying after 1 second, I should retry only if the response code is not 200, and wait for the response on the frontend.

Let's start with the output display.

I've parsed the output result using regex, but can't quite get the error list right.

That's it for today, though. I'll tackle this tomorrow.