|
KiCad PCB EDA Suite
|
Per-test fixture for API E2E tests. More...
#include <api_e2e_utils.h>
Public Member Functions | |
| API_SERVER_E2E_FIXTURE () | |
| ~API_SERVER_E2E_FIXTURE ()=default | |
| bool | Start (const wxString &aCliPathOverride=wxString()) |
| API_TEST_CLIENT & | Client () |
| wxString | CliPath () const |
| const wxString & | LastError () const |
Private Attributes | |
| wxString | m_cliPath |
| wxString | m_lastError |
Per-test fixture for API E2E tests.
All tests share a single api-server process and NNG client managed by API_SERVER_MANAGER. The server and client are created on the first test's Start() call and remain alive for all subsequent tests in the module.
If the server crashed during a previous test, Start() automatically restarts it.
Definition at line 751 of file api_e2e_utils.h.
|
inline |
Definition at line 754 of file api_e2e_utils.h.
References m_cliPath, and QA_KICAD_CLI_PATH.
|
default |
|
inline |
Definition at line 776 of file api_e2e_utils.h.
References API_SERVER_MANAGER::Client(), and API_SERVER_MANAGER::Instance().
|
inline |
Definition at line 778 of file api_e2e_utils.h.
References m_cliPath.
|
inline |
Definition at line 780 of file api_e2e_utils.h.
References m_lastError.
|
inline |
Definition at line 761 of file api_e2e_utils.h.
References API_SERVER_MANAGER::EnsureReady(), API_SERVER_MANAGER::Instance(), m_cliPath, m_lastError, and API_SERVER_MANAGER::Reset().
|
private |
Definition at line 783 of file api_e2e_utils.h.
Referenced by API_SERVER_E2E_FIXTURE(), CliPath(), and Start().
|
private |
Definition at line 784 of file api_e2e_utils.h.
Referenced by LastError(), and Start().