konveyor / tackle-test-generator-core

Apache License 2.0
28 stars 21 forks source link

Extender is failing to generate any test cases from test generators output #162

Closed rachelt44 closed 2 years ago

rachelt44 commented 2 years ago

Describe the bug

When running on https://github.com/shashirajraja/onlinebookstore/ extender fails to generate any test cases:


* CTD interaction level: 1
* Total number of classes: 13
* Targeting 10 classes
* Skipping 3 classes with only private methods
* Created a total of 8 test combinations for 8 target methods of 10 target classes
[tkltest|13:38:56.820] Computing test plans with CTD took 2.39 seconds
[tkltest|13:38:56.820] Generating basic block test sequences using CombinedTestGenerator
[tkltest|13:38:56.821] Test generator output will be written to onlinebookstore_CombinedTestGenerator_output.log
[tkltest|13:41:34.357] Generating basic block test sequences with CombinedTestGenerator took 157.54 seconds
[tkltest|13:41:34.357] Extending sequences to reach coverage goals and generating junit tests
* Read test plans for: 8 classes, 8 methods
* Read 2858 base test sequences
* Starting sequence parsing
*   Full:2858  Part:0  Skip:0  Excp:0
* Class sequence pool: 9 classes, 9 sequences
* Method sequence pool: 0 methods, 0 sequences
* Parsed initial test sequences for 8 classes; total parsed sequences (full+partial): 2858
* Generating extended test sequences
* Partition: monolithic
* Processing class servlets.ReceiptServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.UserRegisterServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.BuyBooksServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.RemoveBookServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.AdminLoginServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.UserLoginServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.AddBookServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* Processing class servlets.ViewBookServlet
*   1 methods .
*   generated 0 test sequences
*   -- class test-plan coverage rate: 0.00% (0/1)
* === total CTD test-plan coverage rate: 0.00% (0/8)
* created 0 test classes in total, with 0 test methods and 0 assertions

tkltest-output-unit-onlinebookstore.zip

Attachments

To help us diagnose the failure, please add these attachments to the issue, as appropriate:

Environment information

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

rachelt44 commented 2 years ago

Application contained only DB transactions, hence test generation failed.