Skip to content

[Chore] warn message if the module root and test root are the same (CF-659)#266

Merged
mohammedahmed18 merged 9 commits into
codeflash-ai:mainfrom
mohammedahmed18:chore/modules-and-tests-same-path
Jun 6, 2025
Merged

[Chore] warn message if the module root and test root are the same (CF-659)#266
mohammedahmed18 merged 9 commits into
codeflash-ai:mainfrom
mohammedahmed18:chore/modules-and-tests-same-path

Conversation

@mohammedahmed18
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread codeflash/cli_cmds/cmd_init.py Outdated
if should_modify_pyproject_toml():
setup_info: SetupInfo = collect_setup_info()

if Path(setup_info.module_root).resolve() == Path(setup_info.tests_root).resolve():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do it when the user is actually entering the test directory, not after he is done.
Also remove the module_root path from the list of options when asking for the test_root. This will mostly solve the problem. We can still keep the warning in case the user enters the module_root path manually

@mohammedahmed18 mohammedahmed18 changed the title [Chore] warn message if the module root and test root are the same [Chore] warn message if the module root and test root are the same (CF-659) Jun 3, 2025
@mohammedahmed18 mohammedahmed18 merged commit 1eb54df into codeflash-ai:main Jun 6, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants