ghtest.core module¶
- ghtest.core.create_tests(cassette_dir: str, test_dir: str, src_dir: str, clean_up: bool = True, unsafe: bool = True, history: bool = False, vb: int = 0) Tuple[Any, Any, Any, Any][source]¶
Run test suite, return values from component functions.
- Parameters:
cassette_dir (str) – folder with vcr cassettes
test_dir (str) – folder with test modules
src_dir (str) – folder with src under test
clean_up (bool) – remove existing cassettes and tests
unsafe (bool) – run potentially destructive functions without requesting permission
history (bool) – disregard parameter suggestions from history
vb (int) – verbosity
- Returns:
(scs, sps, gts, trs) (scans, suggested params, generated tests, test results)
- Return type:
tuple
- Side Effects:
deletes cassette_dir, test_dir writes cassette_dir, test_dir executes functions in src, potentially including destructive functions