My Professor has given Java Code and he is asking to do the following works. Can anyone give me an example answering the following questions? I need explanation and examples in a simpler way.
-CFGs that also contains the source code of each method, and the basic block table that identifies each basic block.
– Test data of each test case for each method that achieves edge coverage of the CFGs, also the covered edges of each corresponding testing case.
– JUnit source code.
– Two code coverage reports from the previous description. Generated using JaCoCo
– Faults detected and corrections.
– Summary and discussion.
– Read me.txt that explains how your JUnit source code can be executed.
------------------------------------------------------------
Just IN CASE if you want more detail about the project
SOFTWARE TESTING AND MAINTENANCE
1) Draw control flow graphs (CFG) for each method.
2) Come up with test cases for each of the selected methods to achieve edge coverage, including the main method.
3) Use JUnit to implement and execute the identified test cases.
4)Provide the code coverage report (lines, branches) for tests from: –All the methods besides the main method. (Focusing on covering as much code as possible for each method) –Only the main method itself. (End to end test, focusing on covering as much code as possible for the whole program)
Here is the link to PDF file: https://ufile.io/tdx62wb8
Here is the link to Java Code file: https://ufile.io/htf7iedo
Aucun commentaire:
Enregistrer un commentaire