-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcommit_changes_test.sh
More file actions
34 lines (26 loc) · 912 Bytes
/
commit_changes_test.sh
File metadata and controls
34 lines (26 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# #!/bin/bash
# # Start bashcov for coverage tracking
# bashcov start
# # Set up test environment for versions.json
# echo '{
# "bun": {
# "canary": "1.0.0-canary",
# "latest": "1.0.0"
# },
# "nodejs": {
# "v14": { "name": "v14", "version": "14.17.6" },
# "v16": { "name": "v16", "version": "16.8.0" }
# }
# }' >versions.json
# # Run the original script (commit the changes)
# ./commit_changes.sh
# # Now, ensure the commit is undone completely
# git reset --hard HEAD~1 # This will undo the most recent commit
# # Confirm there's no staged change or modified file
# git status # This should show no changes in the working directory
# # Run bashcov report and other steps after reset
# bashcov report
# # Generate lcov report (bashcov will create the lcov report file)
# bashcov report --lcov >lcov-report.lcov
# # Optional: Check the generated lcov report
# cat lcov-report.lcov