Re: [PATCH v2 6/7] cmake: use test names instead of full paths
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 25, 2023, 09:06 UTC
- Message-ID
- <fabf28b2-7579-c214-34d3-2718b158ac13@gmx.de>
- In-Reply-To
- <7d1d78c5-5781-4f5e-90f3-c02e74af31b2@gmail.com>
Hi Phillip,
On Fri, 22 Sep 2023, Phillip Wood wrote:
Show 21 quoted lines
> On 18/09/2023 21:54, Johannes Schindelin via GitGitGadget wrote: > > From: Johannes Schindelin <johannes.schindelin@gmx.de> > > > > 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 > > `<namespace>.<class>.<testname>`. 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.<name>` 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.<name>` 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