Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DynAMITE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynexite2RWTH-Online
DynAMITE
Commits
1c40c80a
Commit
1c40c80a
authored
10 months ago
by
Benedikt Conze
Browse files
Options
Downloads
Patches
Plain Diff
Smarter integration test file path identification
parent
f4a310de
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!45
Merge branch 'release/v1.2.0' into 'master'
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/integration_test/integration_test.cpp
+9
-2
9 additions, 2 deletions
test/integration_test/integration_test.cpp
with
9 additions
and
2 deletions
test/integration_test/integration_test.cpp
+
9
−
2
View file @
1c40c80a
...
...
@@ -290,8 +290,15 @@ TEST_P(IntegrationFixture, myNameIntegrationTest) {
", bonus points: "
+
std
::
to_string
(
useBonus
));
// Open the exam with the given files
const
auto
rootPath
=
std
::
filesystem
::
path
(
TESTING_RWTHONLINE_DIRECTORY
)
/
"../../integration_test"
;
std
::
string
file
{
__FILE__
};
std
::
filesystem
::
path
rootPath
{};
if
(
file
.
find
(
'/'
)
!=
std
::
string
::
npos
)
{
rootPath
=
std
::
filesystem
::
path
({
file
.
substr
(
0
,
file
.
rfind
(
'/'
))});
}
else
{
rootPath
=
std
::
filesystem
::
path
({
file
.
substr
(
0
,
file
.
rfind
(
'\\'
))});
}
std
::
cout
<<
"Root path: "
<<
rootPath
.
string
()
<<
std
::
endl
;
const
auto
dynexitePath
=
rootPath
/
"dynexite"
/
(
dynexiteFileName
.
toStdString
()
+
".csv"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment