Skip to content

Commit

Permalink
Merge pull request #51 from Ultimaker/fix_unit_test_reporting
Browse files Browse the repository at this point in the history
Unit-test reporting tried to report on test-xmls instead of output.
  • Loading branch information
rburema authored Mar 20, 2024
2 parents a1ac15d + 89bc72b commit cb553d3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ env:

jobs:
conan-recipe-version:
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
with:
project_name: savitar

Expand Down
2 changes: 1 addition & 1 deletion tests/NamespaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NamespaceTest : public testing::Test

void SetUp()
{
std::ifstream test_model_file(std::filesystem::path(__FILE__).parent_path().append("namespaces.xml").string());
std::ifstream test_model_file(std::filesystem::path(__FILE__).parent_path().append("namespaces.xml.test").string());
if (test_model_file.is_open())
{
const std::string xml_string(std::istreambuf_iterator<char>{ test_model_file }, {});
Expand Down
4 changes: 2 additions & 2 deletions tests/ThreeMFParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ThreeMFParserTest : public testing::Test
void SetUp() override
{
xml_string = "";
std::ifstream test_model_file(std::filesystem::path(__FILE__).parent_path().append("test_model.xml").string());
std::ifstream test_model_file(std::filesystem::path(__FILE__).parent_path().append("test_model.xml.test").string());
if (test_model_file.is_open())
{
xml_string = std::string(std::istreambuf_iterator<char>{ test_model_file }, {});
Expand Down Expand Up @@ -120,7 +120,7 @@ TEST_F(ThreeMFParserTest, decimalSeparatorTest)
{
// Don't accept a model that uses ','s for decimal separators.
std::string xml_string_septest;
std::ifstream test_model_file(std::filesystem::path(__FILE__).parent_path().append("problem_model.xml").string());
std::ifstream test_model_file(std::filesystem::path(__FILE__).parent_path().append("problem_model.xml.test").string());
if (test_model_file.is_open())
{
xml_string_septest = std::string(std::istreambuf_iterator<char>{ test_model_file }, {});
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cb553d3

Please sign in to comment.