mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Now, `tools/test-all` calls a new program called `tools/tests-tools` that runs unit tests in `test_css_parser.py` and 'test_template_parser.py`. This puts 100% line coverage on tools/lib/css_parser.py. This puts about 50% line coverage on tools/lib/template_parser.py.
		
			
				
	
	
		
			31 lines
		
	
	
		
			674 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			674 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -e
 | 
						|
 | 
						|
cd "$(dirname "$0")"/..
 | 
						|
 | 
						|
function run {
 | 
						|
    echo '----'
 | 
						|
    echo "Running $@"
 | 
						|
    if ! "$@"; then
 | 
						|
        printf "\n\e[31;1mFAILED\e[0m $@\n"
 | 
						|
        exit 1
 | 
						|
    else
 | 
						|
        echo
 | 
						|
    fi
 | 
						|
}
 | 
						|
 | 
						|
run ./tools/clean-repo
 | 
						|
run ./tools/test-tools
 | 
						|
run ./tools/lint-all
 | 
						|
run ./tools/test-migrations
 | 
						|
run ./tools/test-js-with-node
 | 
						|
run ./tools/run-mypy
 | 
						|
run ./tools/test-backend
 | 
						|
run ./tools/test-js-with-casper
 | 
						|
# Not running management test since it takes 40s and thus is too slow to be worth it.
 | 
						|
# run ./tools/test-management
 | 
						|
# Not running queue worker reload tests since it's low-churn code
 | 
						|
# run ./tools/test-queue-worker-reload
 | 
						|
 | 
						|
printf '\n\e[32mAll OK!\e[0m\n'
 |