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

Implemented test for irc feature #279

Merged
merged 11 commits into from Apr 26, 2024
Merged

Conversation

zaqbez39me
Copy link
Contributor

Test for Impact Ratio by Commits (IRC) feature in #226

@zaqbez39me
Copy link
Contributor Author

@yegor256 please, check this test out

@yegor256
Copy link
Owner

@zaqbez39me looks good, but make doesn't pass. Also, don't comment it out, just say exit 0 at the beginning of the script

@zaqbez39me
Copy link
Contributor Author

@yegor256 fixed the test disabling method. Please, check my reasoning about make in #259

@zaqbez39me
Copy link
Contributor Author

@yegor256 check it out, please. I suppose, it is ready to be merged

cd "${tmp}"
mkdir -p "${LOCAL}/${temp}"
touch "${LOCAL}/${temp}/file.java"
"${LOCAL}/metrics/irc.sh" "${LOCAL}/${temp}/file.java" "${LOCAL}/${temp}/stdout"
Copy link
Owner

Choose a reason for hiding this comment

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

@zaqbez39me should fail here

git config user.email 'foo@example.com'
git config user.name 'Foo'
file1="one.java"
"${LOCAL}/metrics/irc.sh" "./${file1}" "t0"
Copy link
Owner

Choose a reason for hiding this comment

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

@zaqbez39me also should fail

file1="one.java"
touch "${file1}"
"${LOCAL}/metrics/irc.sh" "./${file1}" "t0"
grep "No commits yet in repo" "t0" # There are no commits in repo with given file
Copy link
Owner

Choose a reason for hiding this comment

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

@zaqbez39me the output is wrong, should be IRC 0 (or something similar)

@zaqbez39me
Copy link
Contributor Author

@yegor256 please check it out. I changed the expected behaviour after your review.

metrics/irc.sh Outdated

output=$(realpath "$2")

# TODO: #279 REPLACE WITH ACTUAL METRIC CODE
Copy link
Owner

Choose a reason for hiding this comment

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

@zaqbez39me better remove this TODO, since it will trigger the creation of a new issue in the backlog -- we don't want TWO issues to originate from this pull requests. just one is enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yegor256 removed it

@zaqbez39me
Copy link
Contributor Author

@yegor256 check it out, removed multiple TODOs referencing one PR

@yegor256 yegor256 merged commit f6d3438 into yegor256:master Apr 26, 2024
9 checks passed
@yegor256
Copy link
Owner

@zaqbez39me thanks!@

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