Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Exception in Test Generation Template Not Found: build_template.gradle #183

@jayantgs

Description

@jayantgs

Describe the bug

I was trying the tackle test cli using the docker image and got the following exception:-

aceback (most recent call last):
File "/usr/local/bin/tkltest-unit", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/tkltest/tkltest_unit.py", line 67, in main
generate.process_generate_command(args, tkltest_config)
File "/usr/local/lib/python3.8/site-packages/tkltest/generate/unit/generate.py", line 50, in process_generate_command
generate_ctd_amplified_tests(config)
File "/usr/local/lib/python3.8/site-packages/tkltest/generate/unit/generate.py", line 209, in generate_ctd_amplified_tests
ant_build_file, maven_build_file, gradle_build_file = build_util.generate_build_xml(
File "/usr/local/lib/python3.8/site-packages/tkltest/util/build_util.py", line 130, in generate_build_xml
__build_gradle(app_classpath, app_name, monolith_app_path, test_root_dir, test_dirs, collect_codecoverage,
File "/usr/local/lib/python3.8/site-packages/tkltest/util/build_util.py", line 470, in __build_gradle
template = env.get_template('build_template.gradle')
File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 997, in get_template
return self._load_template(name, globals)
File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 958, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/usr/local/lib/python3.8/site-packages/jinja2/loaders.py", line 125, in load
source, filename, uptodate = self.get_source(environment, name)
File "/usr/local/lib/python3.8/site-packages/jinja2/loaders.py", line 214, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: build_template.gradle

Environment information

  • CLI version v1.3.0
  • OS: macOS [ running using Docker ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions