iahsanujunda / opyni

Automatically generate unit tests
MIT License
1 stars 1 forks source link

Ability to pass modules #2

Open shaimayshah opened 3 months ago

shaimayshah commented 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.

iahsanujunda commented 3 months ago

let's see what I can do using ast.