mocha.opts in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.2.7, at vendor/wpdeveloper/lib-settings/test/mocha.opts
| 1 | REPORTER = list |
| 2 | JSON_FILE = static/all.json |
| 3 | HTML_FILE = static/coverage.html |
| 4 | |
| 5 | test-all: |
| 6 | clean |
| 7 | document |
| 8 | lib-cov |
| 9 | test-code |
| 10 | |
| 11 | document: |
| 12 | yuidoc -q |
| 13 | |
| 14 | test-code: |
| 15 | @NODE_ENV=test mocha \ |
| 16 | --timeout 200 \ |
| 17 | --ui exports \ |
| 18 | --reporter $(REPORTER) \ |
| 19 | test/*.js |
| 20 | |
| 21 | test-cov: |
| 22 | lib-cov |
| 23 | @APP_COVERAGE=1 $(MAKE) test \ |
| 24 | REPORTER=html-cov > $(HTML_FILE) |
| 25 | |
| 26 | lib-cov: |
| 27 | jscoverage lib static/lib-cov |
| 28 | |
| 29 | clean: |
| 30 | rm -fr static/lib-cov |
| 31 | rm -fr static/assets |
| 32 | rm -fr static/classes |
| 33 | rm -fr static/files |
| 34 | rm -fr static/modules |
| 35 | rm -f static/api.js |
| 36 | rm -f static/data.json |
| 37 | rm -f static/index.html |
| 38 |