From: Johannes Schindelin Date: Mon, 25 Sep 2023 09:06:07 GMT Subject: Re: [PATCH v2 6/7] cmake: use test names instead of full paths Message-ID: In-Reply-To: <7d1d78c5-5781-4f5e-90f3-c02e74af31b2@gmail.com> Hi Phillip, On Fri, 22 Sep 2023, Phillip Wood wrote: > On 18/09/2023 21:54, Johannes Schindelin via GitGitGadget wrote: > > From: Johannes Schindelin > > > > The primary purpose of Git's CMake definition is to allow developing Git > > in Visual Studio. As part of that, the CTest feature allows running > > individual test scripts conveniently in Visual Studio's Test Explorer. > > > > However, this Test Explorer's design targets object-oriented languages > > and therefore expects the test names in the form > > `..`. And since we specify the full path > > of the test scripts instead, including the ugly `/.././t/` part, these > > dots confuse the Test Explorer and it uses a large part of the path as > > "namespace". > > > > Let's just use `t.` instead. This still adds an ugly "Empty > > Namespace" layer by default, but at least the ugly absolute path is now > > gone. > > That does sound like a worthwhile improvement. If we used `git.t.` would > that fix the "Empty Namespace" problem? (probably not worth a re-roll on its > own) Turns out I did not play around with this enough. If I use `t.suite.` as a prefix, it makes the empty name space go away. I'll do that, then. Ciao, Johannes