mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 06:08:50 +00:00
53 lines
988 B
Bash
Executable File
53 lines
988 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ -z "$TEST_GREP" ]; then
|
|
TEST_GREP=""
|
|
fi
|
|
|
|
node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"
|
|
|
|
# Test `strapi-admin`
|
|
cd packages/strapi-admin
|
|
npm run test
|
|
|
|
# Test `strapi-plugin-content-manager`
|
|
cd ../strapi-plugin-content-manager
|
|
npm run test
|
|
|
|
# Test `strapi-plugin-settings-manager`
|
|
cd ../strapi-plugin-settings-manager
|
|
npm run test
|
|
|
|
# Test `strapi-plugin-content-type-builder`
|
|
cd ../strapi-plugin-content-type-builder
|
|
npm run test
|
|
|
|
# Test `strapi-plugin-content-type-builder`
|
|
cd ../strapi-plugin-users-permissions
|
|
npm run test
|
|
|
|
# Test `strapi-plugin-upload`
|
|
cd ../strapi-plugin-upload
|
|
npm run test
|
|
|
|
# Test `strapi-helper-plugin`
|
|
cd ../strapi-helper-plugin/lib
|
|
npm run test
|
|
|
|
|
|
start=`date +%s`
|
|
|
|
# for dir in ./packages/*/
|
|
# do
|
|
# dir=${dir%*/}
|
|
# echo ${dir##*/}
|
|
# cd packages/${dir##*/}
|
|
# npm run test
|
|
# cd ../..
|
|
# done
|
|
# end=`date +%s`
|
|
#
|
|
# runtime=$((end-start))
|
|
# echo ${runtime}
|