skims/test/data/config
.skims/test/functional
, write the basic test logic using the skims utility function. This function executes the CLI with the provided configuration file, analyzing specified modules and test files. It facilitates leveraging pytest features like mocking and patching. The utility function runs the equivalent of nix run .#skims scan config.yaml
within a test environment.code, stdout, stderr = skims("scam", path)
assert code == 0, stdout
assert "[INFO] Startup work dir is:" in stdout
assert "[INFO] An output file has been written:" in stdout
assert not stderr, stderr
check_that_csv_results_match(finding)
skims/test_groups.json
. After updating this file, run the test locally using the command nix run .#skims-test test_group_name
.nix run .#skims-pipeline
to update the CI/CD pipeline YAML configuration on GitLab, ensuring its execution on the platform.skims/test/data/lib_
, and verify the target finding is defined in skims/test/functional/test_findings.py
. These tests utilize the common config.yaml
template to automatically generate and execute functional tests on specific paths.