Skip to content

Commit

Permalink
make the test more robust, and don't add an extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
kelloggm committed Jul 30, 2024
1 parent c0efcf2 commit c4c97f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions TestMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_build_specimin_command(self):
target_command = ''
with open('resources/specimin_command_cf-6077.txt','r') as file:
target_command = file.read()
target_command = target_command.strip()
self.assertEqual(command, target_command)
# not executing since this crashes specimin
proj_name = 'kafka-sensors'
Expand All @@ -85,6 +86,7 @@ def test_build_specimin_command(self):
command = main.build_specimin_command(proj_name, target_dir, root, targets)
with open('resources/specimin_command_cf-6019.txt','r') as file:
target_command = file.read()
target_command = target_command.strip()
self.assertEqual(command, target_command)
#not executing since it crashes specimin.

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def build_specimin_command(project_name: str,
if modularity_model:
model_subcommand = " --modularityModel " + f"\"{modularity_model}\""

command_args = root_dir_subcommand + " " + output_dir_subcommand + " " + model_subcommand + " " + target_file_subcommand + " " + target_method_subcommand + target_field_subcommand + jar_path_subcommand
command_args = root_dir_subcommand + " " + output_dir_subcommand + model_subcommand + " " + target_file_subcommand + " " + target_method_subcommand + target_field_subcommand + jar_path_subcommand


command = ""
Expand Down

0 comments on commit c4c97f9

Please sign in to comment.