mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			435 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			435 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -e
 | 
						|
 | 
						|
cd "$(dirname "$0")"/..
 | 
						|
 | 
						|
export NODE_PATH=/usr/lib/nodejs:static
 | 
						|
 | 
						|
INDEX_JS=frontend_tests/node_tests/index.js
 | 
						|
NODEJS=$(which nodejs || which node)
 | 
						|
if [ "$1" = "cover" ]; then
 | 
						|
  # Run a coverage test with Istanbul.
 | 
						|
  istanbul cover "$INDEX_JS"
 | 
						|
else
 | 
						|
  # Normal testing, no coverage analysis.
 | 
						|
  # Run the index.js test runner, which runs all the other tests.
 | 
						|
  "$NODEJS" --stack-trace-limit=100 "$INDEX_JS"
 | 
						|
fi
 |