mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-06 19:35:18 -05:00
c83472fba6
Closes #1701. * dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Add util for finding git directory in parent directory structure * dolt/bats/git-dolt.bats: Add test for git dolt install working in subdirectories of git repos * dolt/go/cmd/git-dolt/commands/install.go: Find the .git directory even if it's in a parent of the working directory * dolt/bats/git-dolt.bats: Fix indentation * dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Omit extraneous type annotation like a good Gopher * dolt/go/cmd/git-dolt: Use filesystem root instead of home directory as terminal path for .git search * dolt/bats/git-dolt.bats: Unskip no-longer-hanging test * dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Add method docs * dolt/go/cmd/git-dolt/utils/find_git_config_dir_test.go: Create all test files in a temp directory * dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Return an error instead of hanging when currentPath is not a descendent of terminalPath * dolt/go/cmd/git-dolt: Gofmt * dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Actually, if these are always absolute paths, we can simplify things a bit
BATS - Bash Automated Testing System
We are going to use bats to test the dolt command line.
First you need to install bats.
npm install -g bats
Then, go to the directory with the bats tests and run:
bats .
This will run all the tests. Specify a particular .bats file to run only those tests.
Test coverage needed for:
- large tables
- dolt login