How to have Code Coverage during Execution [on hold]


How to have Code Coverage during Execution [on hold]



There are tools that allow to view the code coverage of unit tests. However, I can't find tools out there that can record the code coverage of an already deployed application (for black box tests) which is, to be more specific, in Dot Net Core 2.1+. I'm guessing this would be harder or problematic to do, but I'd like to know, in case I missed a tool in the market, what would be the best approach for developing one that can expose an API for the generated data.



UPDATE



I'm adding detailed info as the above is not valid. If the following is not enough or proper, please let me know where I can post my question.



This is related to a higher design level:



SUMMARY



Basically I want to apply an automated TIA (Test Impact Analysis)



CONTEXT



Considering the development Continuous Integration Pipeline for Dotnet core apps, I currently have an automated process of executing automated tests right after deployment in a testing environment. The tests are written in c# using the gauge framework and the type of testing is Browser and API both being black box.



PROBLEM
Tests suites are growing in large numbers, which generates a lot of testing time (hours). As a solution, we are implementing higher infrastructure capacity to host only scripts with the driver and its hub (using zalenium). However, in optimal conditions, a test suite will take longer than needed due to executing a whole test suite (unnecessary test cases) after deployment.



SOLUTION



What I believe would be a good solution is to record the coverage of the steps of a test case against the app code. Therefore, I would be able to tell how much of the black box tests cover of all the app under test code. Consecuently, I want to be able to tell how many TCs I must run regarding a specific commit/pull request. The benefit being I dont have to execute a whole suite of test cases and also avoid having redundant test cases.



NEW PROBLEM



I havent been able to find a tool/library that is able to record an app code coverage by just simply executing it after deployment. All of the tools I have found are for unit testing specifically (in the realm of dotnet core apps).



QUESTION
What would be the best approach for developing a solution from scratch? my question perse would be similar to this one
Code Coverage of a dll file



but in the mentioned question the conext is for c++ apps.



thanks



This question appears to be off-topic. The users who voted to close gave this specific reason:





Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the stackoverflow.com/help/how-to-ask
– fuzz
Jun 29 at 4:19





Its not hard to do with the right tool; check my bio. API for "the generated data"? What do you want to do with the coverage data?
– Ira Baxter
Jun 29 at 6:58





@fuzz I have modified the question, please let me know if it has proper content
– Morgan Soren
Jun 29 at 21:55




Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV