KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_project_template.cpp File Reference

Tests for PROJECT_TEMPLATE class. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <project_template.h>
#include <settings/settings_manager.h>
#include <wx/dir.h>
#include <wx/filename.h>
#include <filesystem>
#include <fstream>
#include <sstream>

Go to the source code of this file.

Classes

class  PROJECT_TEMPLATE_TEST_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (DirectoriesRenamedCorrectly)
 
 BOOST_AUTO_TEST_CASE (CreateProjectRenamesDirectories)
 
 BOOST_AUTO_TEST_CASE (ExactMatchDirectoryRenamed)
 
 BOOST_AUTO_TEST_CASE (TemplateWithoutMetaDirSetsErrorTitle)
 
 BOOST_AUTO_TEST_CASE (TemplateWithMetaDirButNoInfoHtml)
 
 BOOST_AUTO_TEST_CASE (EnsureDefaultTemplateSeedsBaseDir)
 
 BOOST_AUTO_TEST_CASE (ProjectCreatedFromDefaultTemplateLoads)
 
 BOOST_AUTO_TEST_CASE (EnsureDefaultTemplateRejectsEmptyBaseDir)
 
 BOOST_AUTO_TEST_CASE (EnsureDefaultTemplateIsIdempotent)
 
 BOOST_AUTO_TEST_CASE (ReadOnlyTemplateProducesWritableProject)
 

Detailed Description

Tests for PROJECT_TEMPLATE class.

Definition in file test_project_template.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( CreateProjectRenamesDirectories )

Definition at line 140 of file test_project_template.cpp.

References PROJECT_TEMPLATE::CreateProject(), and result.

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( DirectoriesRenamedCorrectly )

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( EnsureDefaultTemplateIsIdempotent )

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( EnsureDefaultTemplateRejectsEmptyBaseDir )

Definition at line 324 of file test_project_template.cpp.

References EnsureDefaultProjectTemplate().

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( EnsureDefaultTemplateSeedsBaseDir )

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( ExactMatchDirectoryRenamed )

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( ProjectCreatedFromDefaultTemplateLoads )

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( ReadOnlyTemplateProducesWritableProject )

Definition at line 359 of file test_project_template.cpp.

References PROJECT_TEMPLATE::CreateProject().

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( TemplateWithMetaDirButNoInfoHtml )

Definition at line 244 of file test_project_template.cpp.

References BOOST_REQUIRE(), and PROJECT_TEMPLATE::GetTitle().

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( TemplateWithoutMetaDirSetsErrorTitle )

Definition at line 218 of file test_project_template.cpp.

References BOOST_REQUIRE(), and PROJECT_TEMPLATE::GetTitle().