Open shaimayshah opened 3 months ago
Can we define which class or function within a file we want tests for?
opyni --input-file input.py --class TestClass opyni --input-file input.py --function test_function
The expected outcome for --class would be a test for each method within the class and only that class. The expected outcome for --function would be a test for that particular function/method.
--class
--function
let's see what I can do using ast.
ast
Can we define which class or function within a file we want tests for?
The expected outcome for
--class
would be a test for each method within the class and only that class. The expected outcome for--function
would be a test for that particular function/method.