Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/test function hash #875

Merged
merged 3 commits into from
Jun 20, 2019
Merged

Conversation

henrikstranneheim
Copy link
Collaborator

@henrikstranneheim henrikstranneheim commented Jun 19, 2019

This PR fixes:

How to test:

  • Automatic and continuous test pass

Expected outcome:

  • Installation, unit and integration tests pass

Review:

  • Code review
  • New code is executed and covered by tests
  • Tests pass

 #520

- Added test for build_call
- Extended test for test_function
- Command modules that need to supply a hash function need to sort the keys alphabetically to enable predicitive testing. Example is in test_function test_command sub
use MIP::Test::Writefile qw{ test_write_to_file };

## Constants
Readonly my $ERROR_MSG_INDENT => 3;
Readonly my $SPACE => q{ };
Readonly my $SPACE => q{ };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Import $SPACE from Constants

Copy link
Collaborator

@jemten jemten left a comment

Choose a reason for hiding this comment

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

Looks good! This adds some nice flexibility as to how arguments can be submitted and tested for command modules :)
Like the star wars theme 👾

@henrikstranneheim henrikstranneheim merged commit 50d54ff into develop Jun 20, 2019
@henrikstranneheim henrikstranneheim deleted the feature/test_function_hash branch June 20, 2019 14:52
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.

None yet

2 participants