konveyor / tackle-test-generator-cli

Apache License 2.0
58 stars 34 forks source link

TackleTest is failing during augmentation when the ctd-generated test suite is of size zero #313

Closed rachelt44 closed 2 years ago

rachelt44 commented 2 years ago

Describe the bug

Run TackleTest unit on the following app: https://github.com/shashirajraja/onlinebookstore/

With Java 8

Toml file:

tkltest_config.zip

[tkltest|13:43:46.831] Coverage information for CTD-guided tests: instruction=0/0(0.0%), branch=0/0(0.0%), line=0/0(0.0%), method=0/0(0.0%)
                                                 coverage_efficiency=0 (0 test methods)
Traceback (most recent call last):
  File "C:\MyStuff\MyStuffWork\ConTest\Modernization\Workspace\tackle-test-generator-cli\venv\Scripts\tkltest-unit-script.py", line 33, in <module>
    sys.exit(load_entry_point('tkltest', 'console_scripts', 'tkltest-unit')())
  File "c:\mystuff\mystuffwork\contest\modernization\workspace\tackle-test-generator-cli\tkltest\tkltest_unit.py", line 76, in main
    __process_command(args, config)
  File "c:\mystuff\mystuffwork\contest\modernization\workspace\tackle-test-generator-cli\tkltest\tkltest_unit.py", line 108, in __process_command
    generate.process_generate_command(args, config)
  File "c:\mystuff\mystuffwork\contest\modernization\workspace\tackle-test-generator-cli\tkltest\generate\unit\generate.py", line 55, in process_generate_command
    generate_ctd_amplified_tests(config, output_dir)
  File "c:\mystuff\mystuffwork\contest\modernization\workspace\tackle-test-generator-cli\tkltest\generate\unit\generate.py", line 246, in generate_ctd_amplified_tests
    has_coverage = augment_with_code_coverage(config=config, build_file=build_file, build_type=build_type,
  File "c:\mystuff\mystuffwork\contest\modernization\workspace\tackle-test-generator-cli\tkltest\generate\unit\augment.py", line 70, in augment_with_code_coverage
    __compute_base_and_augmenting_tests_coverage(
  File "c:\mystuff\mystuffwork\contest\modernization\workspace\tackle-test-generator-cli\tkltest\generate\unit\augment.py", line 190, in __compute_base_and_augmenting_tests_coverage
    for dir in [dir for dir in os.listdir(ctd_test_dir) if os.path.isdir(dir) and dir != 'build' and dir != 'target']:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'onlinebookstore-ctd-amplified-tests'

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

Fixed and merged via PR: https://github.com/konveyor/tackle-test-generator-cli/pull/314