Before adding functional functions to address Linq Where extension , I do aim to have 100 % code coverage – in order to know that all functions well . So tried to add code coverage with AI . You will find below the Whole discussion . It works enough well , with 2 problems:
-
Repeating 2 times to save the automation powershell file
-
Didn’t make clear that for HTML report I need ReportGenerator .
The automation script ensures coverage is always visible and actionable, with clear setup instructions.
Commit
https://github.com/ignatandrei/Filters/commit/3d55115d1052708259d6c710efd5276c88fc9306
Discussion
Human Text
Please read the solution. I want to run test and see code coverage . How can I do this ?
AI Text
If you want a more readable report (like HTML), you can use a tool such as Coverlet or ReportGenerator. Let me know if you want instructions for those tools.
Human Text
Could you use Coverlet ?
AI Text
Would you like me to install Coverlet and run the coverage command for you?
Human Text
Yes, please
AI Text
If you want a human-readable HTML report, I can set up ReportGenerator for you. Would you like to proceed with that?
Human Text
Yes, please
AI Text
Let me know if you need help interpreting the results or automating this process!
Human Text
I need to automate this process
AI Text
Would you like me to create this script in your workspace?
Human Text
Yes, please
AI Text
This will run your tests, collect coverage, and generate an HTML report automatically.
Let me know if you want a batch file or CI/CD integration as well!
Human Text
I do not see where did you save the file. Please save it in the current workspace and tell me the full path
AI Text
You can run this script from your solution root to automate test execution and coverage report generation.