forked from toolshed/abra
		
	add integration test
This commit is contained in:
		@ -25,6 +25,24 @@ teardown(){
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# bats test_tags=slow
 | 
			
		||||
@test "autocomplete" {
 | 
			
		||||
  run $ABRA app cmd --generate-bash-completion
 | 
			
		||||
  assert_success
 | 
			
		||||
  assert_output "$TEST_APP_DOMAIN"
 | 
			
		||||
 | 
			
		||||
  run $ABRA app cmd "$TEST_APP_DOMAIN" --generate-bash-completion
 | 
			
		||||
  assert_success
 | 
			
		||||
  assert_output "app"
 | 
			
		||||
 | 
			
		||||
  run $ABRA app cmd "$TEST_APP_DOMAIN" app --generate-bash-completion
 | 
			
		||||
  assert_success
 | 
			
		||||
  assert_output "test_cmd
 | 
			
		||||
test_cmd_arg
 | 
			
		||||
test_cmd_args
 | 
			
		||||
test_cmd_export"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@test "validate app argument" {
 | 
			
		||||
  run $ABRA app cmd
 | 
			
		||||
  assert_failure
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user