Pytest suite for sage_server
Goals
verify that sage worksheets return correct results for given cell inputs
back-end only test, uses message protocol to run tests against running sage_server
Non-goals
unit tests of functions internal to sagews modules
UI testing
How to Use These Tests
Prerequisites
pytest must be installed
file ~/.smc/sage_server/sage_server.log must exist and have the current port number around line 3, like this:
Running the Tests
Test Results
The test results will be stored in a machine-readable json file in $HOME/sagews-test-report.json
:
Example:
and $HOME/sagews-test-report.prom
for ingestion by Prometheus' node exporter.
Test Layout
These tests follow the 'inline' test layout documented at pytest docs Choosing a test layout / import rules.