Skip to content

Add function script testing #81

@b-rad-c

Description

@b-rad-c

Our page script has full testing of each of our function groups through the files matching this pattern: src/mspec/data/lingo/pages/functions-*.json. Let's make a corresponding test file for each script spec, I made the first one here: src/mspec/data/lingo/scripts/functions_bool.json. Unlike the page spec, the script spec has corresponding test data: src/mspec/data/lingo/scripts/functions_bool_test_data.json. For each of the function groups, we'll need to make a new test file and test data file, and then also ensure they pass testing. Each function group corresponds to one of the src/mspec/data/lingo/pages/functions-*.json files, you can also find the matching groups in the script documentation.

Our python tests (tests/test_lingo.py) already cover all files in this directory, but you'll want to confirm they still pass, check the readme for the python cli testing instructions.

To do

  • create new test files
  • create new test data files
  • confirm python cli tests are passing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions