KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_step_export_modified_board.cpp File Reference
#include <filesystem>
#include <fstream>
#include <vector>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <boost/test/unit_test.hpp>
#include <pcbnew_utils/board_file_utils.h>
#include <dialogs/dialog_export_step.h>
#include <board.h>
#include <footprint.h>
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/string.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (ModifiedBoardStagesCurrentState)
 
 BOOST_AUTO_TEST_CASE (UnmodifiedBoardStagesOnDiskFile)
 An unmodified, saved board stages its existing on-disk file directly with no temporary copy.
 
 BOOST_AUTO_TEST_CASE (UnsavedBoardIsRejected)
 An empty board path is rejected (the board must be saved at least once before STEP export).
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( UnmodifiedBoardStagesOnDiskFile )

An unmodified, saved board stages its existing on-disk file directly with no temporary copy.

Definition at line 165 of file test_step_export_modified_board.cpp.

References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), KI_TEST::ReadBoardFromFileOrStream(), and DIALOG_EXPORT_STEP::StageBoardForExport().

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( UnsavedBoardIsRejected )

An empty board path is rejected (the board must be saved at least once before STEP export).

Definition at line 189 of file test_step_export_modified_board.cpp.

References BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), KI_TEST::ReadBoardFromFileOrStream(), and DIALOG_EXPORT_STEP::StageBoardForExport().