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

.git/hooks/post-commit - if test case not found error message #44

Open
BradleyA opened this issue Feb 1, 2020 · 1 comment
Open

.git/hooks/post-commit - if test case not found error message #44

BradleyA opened this issue Feb 1, 2020 · 1 comment
Assignees
Labels
bug Something isn't working, an incident requiring resources for assessment and resolution. needs investigation What? How?

Comments

@BradleyA
Copy link
Owner

BradleyA commented Feb 1, 2020

Describe the incident:
if test case not found error message. Need to add code to prevent and give WARNning
To reproduce the incident:
Steps to reproduce the behavior:

  1. edit

    hooks/bin/TEST/git-TEST-cases.sh/FVT-setup.sh sh
    hooks/bin/git-TEST-cases.sh sh

  2. markit

Actual results:
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-add-001 git-TEST-cases.sh 0 - No difference with expected output - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-all-001 git-TEST-cases.sh 0 - Test file w/ test cases found - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-all-002 git-TEST-cases.sh 0 - Test file w/ test cases found - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-all-hooks-001 git-TEST-cases.sh 0 - Test file w/ test cases found in hooks directory - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-all-hooks-002 git-TEST-cases.sh 0 - Test file w/ test cases found in hooks directory - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-001 git-TEST-cases.sh 0 - No difference with expected output - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-002 git-TEST-cases.sh 0 - No difference with expected output - PASS - PASS
Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-001 git-TEST-cases.sh 0 - No difference with expected output - PASS - PASS
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-002: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-003: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-004: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-001: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-002: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-003: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-004: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-005: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-006: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-hooks-001: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-hooks-002: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-hooks-003: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-hooks-004: No such file or directory
.git/hooks/post-commit: line 168: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-help-001: No such file or directory

 FVT: git-TEST-cases.sh

Number of test cases = 22
Number of test cases pass = 8
Number of test cases fail = 0
Number of test cases error = 14
14 127

Expected results:
warning file not found check ./FVT-setup

Version:

Screenshots:
If applicable, add screenshots to help explain your incident.

@BradleyA BradleyA added the bug Something isn't working, an incident requiring resources for assessment and resolution. label Feb 1, 2020
@BradleyA BradleyA self-assigned this Feb 1, 2020
@BradleyA
Copy link
Owner Author

BradleyA commented Feb 1, 2020

Test case ---> git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-002 git-TEST-cases.sh 0 - No difference with expected output - PASS - PASS
2020-02-01T16:30:25.595544-06:00 (CST) five-rpi3b.cptx86.com hooks/EXAMPLES/FVT-option-clean-hooks-001[19529] 2.498.1430 63 uadmin 10000:10000 [INFO]    Started...
2020-02-01T16:30:25.623692-06:00 (CST) five-rpi3b.cptx86.com hooks/EXAMPLES/FVT-option-clean-hooks-001[19529] 2.498.1430 94 uadmin 10000:10000 [INFO]    REPOSITORY_DIR is exported in post-commit script >/home/uadmin/github/BradleyA/git-TEST-commit-automation<
2020-02-01T16:30:25.664457-06:00 (CST) five-rpi3b.cptx86.com hooks/EXAMPLES/FVT-option-clean-hooks-001[19529] 2.498.1430 108 uadmin 10000:10000 [INFO]    COMMAND_NAME >FVT-option-clean-hooks-001<  /home/uadmin/github/BradleyA/git-TEST-commit-automation/tmp.FVT-option-clean-hooks-001
fatal: Not a git repository: '.git'
fatal: Not a git repository: '.git'
Test case ---> /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-001 git-TEST-cases.sh 1 - Message for user does NOT match expected output - FAIL - FAIL
diff: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-001.expected: No such file or directory
diff: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-clean-hooks-001.test-case-output: No such file or directory
.git/hooks/post-commit: line 170: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-001: No such file or directory
.git/hooks/post-commit: line 170: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-002: No such file or directory
.git/hooks/post-commit: line 170: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-003: No such file or directory
.git/hooks/post-commit: line 170: /home/uadmin/github/BradleyA/git-TEST-commit-automation/hooks/bin/TEST/git-TEST-cases.sh/FVT-option-filename-004: No such file or directory

@BradleyA BradleyA added the needs investigation What? How? label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, an incident requiring resources for assessment and resolution. needs investigation What? How?
Projects
None yet
Development

No branches or pull requests

1 participant