KiCad PCB EDA Suite
Loading...
Searching...
No Matches
API_SERVER_E2E_FIXTURE Class Reference

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_CLIENTClient ()
 
wxString CliPath () const
 
const wxString & LastError () const
 

Private Attributes

wxString m_cliPath
 
wxString m_lastError
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ API_SERVER_E2E_FIXTURE()

API_SERVER_E2E_FIXTURE::API_SERVER_E2E_FIXTURE ( )
inline

Definition at line 754 of file api_e2e_utils.h.

References m_cliPath, and QA_KICAD_CLI_PATH.

◆ ~API_SERVER_E2E_FIXTURE()

API_SERVER_E2E_FIXTURE::~API_SERVER_E2E_FIXTURE ( )
default

Member Function Documentation

◆ Client()

API_TEST_CLIENT & API_SERVER_E2E_FIXTURE::Client ( )
inline

◆ CliPath()

wxString API_SERVER_E2E_FIXTURE::CliPath ( ) const
inline

Definition at line 778 of file api_e2e_utils.h.

References m_cliPath.

◆ LastError()

const wxString & API_SERVER_E2E_FIXTURE::LastError ( ) const
inline

Definition at line 780 of file api_e2e_utils.h.

References m_lastError.

◆ Start()

bool API_SERVER_E2E_FIXTURE::Start ( const wxString & aCliPathOverride = wxString())
inline

Member Data Documentation

◆ m_cliPath

wxString API_SERVER_E2E_FIXTURE::m_cliPath
private

Definition at line 783 of file api_e2e_utils.h.

Referenced by API_SERVER_E2E_FIXTURE(), CliPath(), and Start().

◆ m_lastError

wxString API_SERVER_E2E_FIXTURE::m_lastError
private

Definition at line 784 of file api_e2e_utils.h.

Referenced by LastError(), and Start().


The documentation for this class was generated from the following file: