wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_ManualAnchors.cpp File Reference

Unit test for MaximaManual's help-anchor parsing. More...

#include <wx/app.h>
#include <wx/config.h>
#include <wx/file.h>
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/log.h>
#include "Configuration.h"
#include "MaximaManual.h"
#include <cstdlib>
#include <unistd.h>
#include <catch2/catch.hpp>
Include dependency graph for test_ManualAnchors.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("CompileHelpFileAnchors extracts every anchor from the HTML manual")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Unit test for MaximaManual's help-anchor parsing.

The manual anchors used to be exercised only indirectly, by the batch-mode integration tests. That coverage was removed once batch mode stopped compiling anchors (they are an interactive-only convenience and compiling them in a –batch/–exit-on-error run only wasted time – and, on a read-only config dir, wedged shutdown). This test exercises the parser directly against a small fixture manual instead, so MaximaManual::CompileHelpFileAnchors() keeps a regression net without needing Maxima, the real HTML manual, or a writable config dir.