@@ -35,6 +35,7 @@ node bin/prepare.js -f condo -r condo
35
35
export NEWS_ITEMS_SENDING_DELAY_SEC=2
36
36
export NEWS_ITEM_SENDING_TTL_SEC=2
37
37
export NODE_OPTIONS=" --max_old_space_size=4192"
38
+ export WORKER_CONCURRENCY=100
38
39
39
40
node -e ' console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
40
41
@@ -59,10 +60,10 @@ sleep 3
59
60
60
61
if [ $domain_name != " others" ]; then
61
62
# TESTS
62
- yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=2 --forceExit --silent=false --verbose --bail --testPathPattern ' /domains/' $domain_name ' /schema/(.*)[.]test.js$' 2>&1 > ' /app/test_logs/condo.' $domain_name ' .tests.log'
63
+ yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=3 --forceExit --silent=false --verbose --bail --testPathPattern ' /domains/' $domain_name ' /schema/(.*)[.]test.js$' 2>&1 > ' /app/test_logs/condo.' $domain_name ' .tests.log'
63
64
# SPECS
64
65
if [ -n " $( find apps/condo/domains/$domain_name -name ' *spec.[j|t]s' 2> /dev/null) " ]; then
65
- yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=2 --forceExit --silent=false --verbose --bail --testPathPattern ' /domains/' $domain_name ' /(.*)[.]spec.[j|t]s$' 2>&1 > ' /app/test_logs/condo.' $domain_name ' .specs.log'
66
+ yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=3 --forceExit --silent=false --verbose --bail --testPathPattern ' /domains/' $domain_name ' /(.*)[.]spec.[j|t]s$' 2>&1 > ' /app/test_logs/condo.' $domain_name ' .specs.log'
66
67
else
67
68
echo " Files matching (.*)[.]spec.[j|t]s in directory apps/condo/domains/$domain_name not found! Skipping..."
68
69
fi
@@ -71,10 +72,10 @@ if [ $domain_name != "others" ]; then
71
72
killall node || echo ' no node processes'
72
73
else
73
74
# TESTS
74
- yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=2 --forceExit --silent=false --verbose --bail --testPathPattern ' /schema/(.*)[.]test.js$' --testPathIgnorePatterns=' /domains/(organization|user|scope|property|acquiring|billing|miniapp|banking|ticket|meter|contact|resident|notification|common)/' 2>&1 > /app/test_logs/condo.others.tests.log
75
- yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=2 --forceExit --silent=false --verbose --bail --testPathPattern ' (.*)[.]test.js$' --testPathIgnorePatterns=' /schema/(.*)[.]test.js$' 2>&1 > /app/test_logs/condo.5.test.others.log
75
+ yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=3 --forceExit --silent=false --verbose --bail --testPathPattern ' /schema/(.*)[.]test.js$' --testPathIgnorePatterns=' /domains/(organization|user|scope|property|acquiring|billing|miniapp|banking|ticket|meter|contact|resident|notification|common)/' 2>&1 > /app/test_logs/condo.others.tests.log
76
+ yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=3 --forceExit --silent=false --verbose --bail --testPathPattern ' (.*)[.]test.js$' --testPathIgnorePatterns=' /schema/(.*)[.]test.js$' 2>&1 > /app/test_logs/condo.5.test.others.log
76
77
# SPECS
77
- yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=2 --forceExit --silent=false --verbose --bail --testPathPattern ' (.*)[.]spec.[j|t]s$' --testPathIgnorePatterns=' /domains/(organization|user|scope|property|acquiring|billing|miniapp|banking|ticket|meter|contact|resident|notification|common)/' 2>&1 > /app/test_logs/condo.others.specs.log
78
+ yarn workspace @app/condo test --workerIdleMemoryLimit=" 256MB" --testTimeout=15000 -w=3 --forceExit --silent=false --verbose --bail --testPathPattern ' (.*)[.]spec.[j|t]s$' --testPathIgnorePatterns=' /domains/(organization|user|scope|property|acquiring|billing|miniapp|banking|ticket|meter|contact|resident|notification|common)/' 2>&1 > /app/test_logs/condo.others.specs.log
78
79
# Note: we need to stop background worker! because packages tests use the same redis queue
79
80
kill $( jobs -p) || echo ' background worker and dev server is already killed!'
80
81
killall node || echo ' no node processes'
0 commit comments