• martianzhang's avatar
    add cli test frame work bats (#181) · 9df3418c
    martianzhang 提交于
    * import bats for cli test
    
      https://github.com/sstephenson/bats
    
    * add simple test case for cli use bats
    
    * format main.bats add env
    
    * replace main_test.sh with main.bats
    
      make explain suggestion sorted
      make index suggestion sorted
    
    * add test database world_x
    
    * update bats golden result
    
    * make docker add 180s timeout
    
      1. add timeout for docker start
      2. add not explain able sql test case into explain_test.go
    
    * explain info Using index VS Using index condition
    
      remove nonappearence key from explain extra info
    
    * add timeout for test
    9df3418c
explain_test.go 79.7 KB