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

Add scripts to automatically detect deleted tests #427

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FanYuliang
Copy link
Contributor

  • find_all_deleted.py can output a json file (new_test_file_deleted.json) that contains the fully-qualified Test name and the first SHA that deletes that test file, which helpes developer find the deleted tests.
  • Each entry in the json contains three elements: URL, packageName.ClassName.methodName, SHA
  • Further automated/ manual checks are required to determine if the test belongs to Deleted or MovedOrRenamed; useful git command: git show <SHA> | grep -C <methodName/method content>

if "[" in test_method_name or "\"" in test_method_name:
print("{}, {} is a PUT; skip".format(url, full_testname))
continue
if testfile_name[-4:] != "Test":

Choose a reason for hiding this comment

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

Many tests in pr-data.csv have "Test" in the beginning instead of the end.

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