BradleyA / git-TEST-commit-automation

Test automation tool to assist running something, and checking something, then reporting something; when you commit something.
4 stars 1 forks source link

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

Open BradleyA opened 4 years ago

BradleyA commented 4 years ago

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 commented 4 years ago
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