aboutsummaryrefslogtreecommitdiff
path: root/.runsettings
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-21 16:53:25 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-21 16:53:25 +0100
commitab6f397df60c7ff6116705b7d045a990979176aa (patch)
treed4913f4d7d6e6d3457169b4be908f8f688de0c12 /.runsettings
parent3a4173c67b2e2339f048fe75b5224df43ac485d2 (diff)
downloadlanes-ab6f397df60c7ff6116705b7d045a990979176aa.tar.gz
lanes-ab6f397df60c7ff6116705b7d045a990979176aa.tar.bz2
lanes-ab6f397df60c7ff6116705b7d045a990979176aa.zip
Adjusting MSVC files to ease unit testing
* Everything assumes there is a _LuaVersions folder containing all supported Lua versions (binaries, libs and headers) alongside the Lanes.sln location * After that the solutions to build the Lua binaries themselves will appear too for reference (mainly because their output folders will be configured accordingly)
Diffstat (limited to '.runsettings')
-rw-r--r--.runsettings37
1 files changed, 37 insertions, 0 deletions
diff --git a/.runsettings b/.runsettings
new file mode 100644
index 0000000..f2be6f5
--- /dev/null
+++ b/.runsettings
@@ -0,0 +1,37 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- https://github.com/JohnnyHendriks/TestAdapter_Catch2/blob/main/Docs/Settings.md -->
3<RunSettings>
4 <Catch2Adapter>
5 <DiscoverCommandLine>--list-tests --verbosity high</DiscoverCommandLine>
6 <DiscoverTimeout>300000</DiscoverTimeout>
7
8 <!-- The whole setup relies on Lua Binaries and headers to be located in a folder $(SolutionDir)/Binaries/$(PlatformName)/$(ConfigurationName)
9 this is also true for linker input folders, the folder where lanes.lua is copied by the custom build operation, etc.
10 -->
11 <Environment>
12 <LUA_PATH value="$(SolutionDir)/Binaries/$(PlatformName)/$(ConfigurationName)" />
13 <LUA_CPATH value="$(SolutionDir)/Binaries/$(PlatformName)/$(ConfigurationName)" />
14 </Environment>
15
16 <!-- Executable Filename
17 Discover filenames with ... (must not include the .exe extension)
18 Regex breakdown: ^foo(_(.+))+(p|r|d)(_?(.+))x*$
19 - ^foo : find file that starts with foo
20 - (_(.+))+ : follows with a number of elements starting with _ (_foo_bar_dll)
21 - (r|d|p) : contains a word with one of these letters : r (release), d (debug), p (profile).
22 - (_?(.+)): optionally follow with underscores.
23 - x*$ end of line
24 -->
25 <FilenameFilter>UnitTests</FilenameFilter>
26
27 <!-- Enable breaking on failure -->
28 <DebugBreak>on</DebugBreak>
29
30 <!-- Combine: A single test executable is started to run multiple test cases. (Single: instance per test case) -->
31 <ExecutionMode>Combine</ExecutionMode>
32
33 <!-- Working directory -->
34 <WorkingDirectoryRoot>Solution</WorkingDirectoryRoot>
35 <WorkingDirectory>.</WorkingDirectory>
36 </Catch2Adapter>
37</RunSettings> \ No newline at end of file