├── .gitignore ├── .gitmodules ├── .travis.yml ├── Dockerfile ├── LICENSE ├── README.md ├── deploy └── docker-images │ ├── 1.base-image │ └── Dockerfile │ ├── 2.git-pull │ └── Dockerfile │ ├── bsimm-graphs │ └── Dockerfile │ ├── build.sh │ └── push-to-docker-hub.sh ├── package.json ├── server.js └── wallaby.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Dependency directory 7 | node_modules 8 | 9 | bower_components 10 | coverage 11 | angular/.dist 12 | ui/.dist 13 | data/private 14 | set-log.sh 15 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "data/BSIMM-Graphs-Data"] 2 | path = data/BSIMM-Graphs-Data 3 | url = git@github.com:DinisCruz/BSIMM-Graphs-Data.git 4 | [submodule "code/api"] 5 | path = code/api 6 | url = git@github.com:OWASP/Maturity-Models-API.git 7 | [submodule "code/ui"] 8 | path = code/ui 9 | url = git@github.com:OWASP/Maturity-Models-UI.git 10 | [submodule "code/qa"] 11 | path = code/qa 12 | url = git@github.com:OWASP/Maturity-Models-QA.git 13 | [submodule "data/OwaspSAMM"] 14 | path = data/OwaspSAMM 15 | url = git@github.com:OWASP/Maturity-Models-OwaspSAMM.git 16 | [submodule "data/OwaspASVS"] 17 | path = data/OwaspASVS 18 | url = git@github.com:OWASP/Maturity-Models-OWASP-ASVS.git 19 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | services: 3 | - docker 4 | 5 | language: node_js 6 | 7 | node_js: 8 | - "5" 9 | 10 | git: 11 | submodules: false 12 | 13 | env: 14 | global: 15 | - secure: "UnkjMMD5WA19zORlk1LECpO1GZfWvuM0WcVmougiuwlQhTPv697UMA1NEmTXNzMgF5DTEHNaBiIr9Q75woOzXnjJsTizsyUpwAQHP//s6ZTfuof3EUAQg3rX9tGj/KFHG3VuvDOlCnF6R1hc86jLTRL61DiWP/4+Q9W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clFaqI/9XOCF1J8O1fJB8sIfheh53tJ6xF+PpZzu4=" 20 | 21 | 22 | 23 | before_install: 24 | - cat .gitmodules 25 | - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules 26 | - cat .gitmodules 27 | - git submodule update --init --recursive 28 | 29 | before_script: 30 | 31 | - cd code/api 32 | - npm install 33 | - cd ../ui 34 | - npm install 35 | - npm install -g bower 36 | - npm install -g gulp 37 | - bower install 38 | - gulp 39 | - cd ../.. 40 | 41 | 42 | script: 43 | - echo ">>>>> Running core tests<<<<<" 44 | - npm test 45 | - echo ">>>>> Running UI tests<<<<<" 46 | - cd code/ui 47 | - npm test 48 | - cd ../.. 49 | 50 | 51 | after_success: 52 | 53 | - echo ">>>>> Updating Dev fork <<<<<" 54 | - git remote add upstream https://DinisCruz-Dev:$git_pwd@github.com/DinisCruz-Dev/Maturity-Models.git 55 | - git push -f upstream 56 | 57 | - echo ">>>>> Building DOCKER IMAGE and pushing it go Docker Hub <<<<<" 58 | - echo 'building docker image' 59 | - docker images 60 | - docker build -t diniscruz/maturity-models . 61 | - docker images 62 | - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS 63 | - docker push diniscruz/maturity-models 64 | 65 | - echo ">>>>> Running core tests (on deployed Docker server)<<<<<" 66 | - cd code/qa 67 | - npm install --quiet 68 | - npm test 69 | 70 | # - echo ">>>>> Cloning Maturity-Models-QA, adding extra commit and pushing it to Maturity-Models-Dev for <<<<<" 71 | # - cd .. 72 | # - git clone https://github.com/DinisCruz/Maturity-Models-QA.git 73 | # - cd Maturity-Models-QA 74 | # - git remote add upstream https://DinisCruz-Dev:$git_pwd@github.com/DinisCruz-Dev/Maturity-Models-QA.git 75 | # 76 | # - git config --global user.email "bot@travis.com" 77 | # - git config --global user.name "Travis Bot" 78 | # 79 | # - git log -n5 --pretty=oneline > travis-git-log.txt 80 | # - git add . 81 | # - git commit -m "Comming files for $(git rev-parse HEAD)" 82 | # - git push --quiet -f upstream master -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node 2 | 3 | RUN git clone https://github.com/OWASP/Maturity-Models.git 4 | WORKDIR Maturity-Models 5 | RUN sed -i 's/git@github.com:/https:\/\/:@github.com\//' .gitmodules 6 | RUN git submodule init 7 | RUN git submodule update 8 | RUN git pull origin master 9 | 10 | WORKDIR code/api 11 | RUN npm install --quiet 12 | WORKDIR ../.. 13 | 14 | WORKDIR code/ui 15 | RUN npm install --quiet 16 | RUN npm install --quiet -g bower 17 | RUN npm install --quiet -g gulp 18 | RUN bower --allow-root install 19 | RUN gulp 20 | WORKDIR ../.. 21 | 22 | CMD npm start 23 | 24 | 25 | # travis builds image and deploys to docker hub at: diniscruz/maturity-models 26 | # build manually using: docker build -t diniscruz/maturity-models . 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Node application to help managing Maturity Models like the ones created by BSIMM and OpenSAMM 2 | 3 | Build status: [![Build Status](https://travis-ci.org/OWASP/Maturity-Models.svg?branch=master)](https://travis-ci.org/OWASP/Maturity-Models) 4 | 5 | Current QA server: http://138.68.145.52 6 | 7 | ### UI 8 | ![image](https://cloud.githubusercontent.com/assets/656739/16320406/67632dc0-398f-11e6-8aee-8a1f9bd97364.png) 9 | 10 | ### Run from source 11 | 12 | ``` 13 | git clone git@github.com:DinisCruz/Maturity-Models.git 14 | cd Maturity-Models 15 | git submodule init 16 | git submodule update 17 | npm install --quiet 18 | cd code/ui 19 | npm install --quiet 20 | npm install --quiet -g bower 21 | npm install --quiet -g gulp 22 | bower --allow-root install 23 | gulp 24 | cd .. 25 | npm run dev 26 | ``` 27 | 28 | note ```npm start``` will also work, but for now use ```npm run dev``` 29 | 30 | ### Run tests 31 | ``` 32 | npm test 33 | ``` 34 | 35 | ### Updating code 36 | 37 | When doing a ```git pull origin master``` to get the latest version you might need to also do a ```git submodule update``` or ```git submodule sync``` to keep the submodules updated. 38 | 39 | You can check if all is good by doing an ```git status``` on the root folder of this repo (which should return 'no changes') 40 | 41 | ### Docker image 42 | 43 | Available at https://hub.docker.com/r/diniscruz/maturity-models/ 44 | 45 | run with (port 80): 46 | docker run -it -p 80:3000 diniscruz/maturity-models 47 | 48 | or with (as demon on port 3333): 49 | docker run -it -d -p 3333:3000 diniscruz/maturity-models 50 | 51 | 52 | ### BSIMM-Graphs 53 | The first version of this tool is designed to work with BSIMM mappings, but there is work under way to also add OpenSAMM mappings 54 | 55 | 56 | 57 | The data is stored in the repo https://github.com/DinisCruz/BSIMM-Graphs-Data which should be forked to hold private/custom data 58 | 59 | ### Related posts: 60 | - [BSIMM Questions for Teams v0.7 (with all consolidated team questions and maybe column)](http://blog.diniscruz.com/2016/04/bsimm-questions-for-teams-v07-with-all.html) 61 | - [Updated version of BSIMM Questions for Teams (now will all activities mapped)](http://blog.diniscruz.com/2016/04/updated-version-of-bsimm-questions-for.html) 62 | - [First pass at BSIMM questions for teams](http://blog.diniscruz.com/2016/04/first-pass-at-bsimm-questions-for-teams.html) 63 | 64 | ### Research 65 | 66 | - "D3.js - Radar Chart or Spider Chart - Adjusted from radar-chart-d3" - http://bl.ocks.org/nbremer/6506614 67 | - "Making the D3 Radar Chart look a bit better" http://www.visualcinnamon.com/2013/09/making-d3-radar-chart-look-bit-better.html 68 | - "Chart.js - Radar chart introduction" http://www.chartjs.org/docs/#radar-chart-introduction 69 | 70 | - other: 71 | - https://anmolkoul.wordpress.com/2015/06/05/interactive-data-visualization-using-d3-js-dc-js-nodejs-and-mongodb/ 72 | - https://dc-js.github.io/dc.js/ 73 | - http://linuxsimba.com/running-d3-in-node/ 74 | - http://blog.stapps.io/using-d3-both-on-the-front-end-and-server/ 75 | - https://graves.cl/radar-chart-d3/ "Example of radar chart" 76 | - http://bl.ocks.org/chrisrzhou/2421ac6541b68c1680f8 : "D3 Radar Chart - AngularJS application showcasing an interactive D3 radar chart (with facetting)." 77 | - https://gist.github.com/chrisrzhou/2421ac6541b68c1680f8 : "D3 Radar Chart" 78 | -------------------------------------------------------------------------------- /deploy/docker-images/1.base-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node 2 | 3 | RUN git clone https://github.com/DinisCruz/BSIMM-Graphs.git 4 | WORKDIR BSIMM-Graphs 5 | RUN sed -i 's/git@github.com:/https:\/\/:@github.com\//' .gitmodules 6 | RUN git submodule init 7 | RUN npm install bower -g ; bower --allow-root install 8 | RUN npm install 9 | 10 | CMD npm start -------------------------------------------------------------------------------- /deploy/docker-images/2.git-pull/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM bsimm-graph 2 | RUN git pull origin master 3 | RUN git submodule update 4 | RUN npm install 5 | 6 | # node was not creating this folder 7 | RUN mkdir logs -------------------------------------------------------------------------------- /deploy/docker-images/bsimm-graphs/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node 2 | 3 | RUN git clone https://github.com/DinisCruz/Maturity-Models.git 4 | WORKDIR Maturity-Models 5 | RUN sed -i 's/git@github.com:/https:\/\/:@github.com\//' .gitmodules 6 | RUN git submodule init 7 | RUN git submodule update 8 | RUN git pull origin master 9 | RUN npm install 10 | 11 | RUN npm install -g bower; bower --allow-root install 12 | RUN npm install -g gulp; 13 | RUN cd ui; gulp 14 | 15 | RUN mkdir logs # node app was failing to create this folder 16 | 17 | CMD npm start 18 | 19 | -------------------------------------------------------------------------------- /deploy/docker-images/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # doing this here (in an async way) 4 | docker stop bsimm-web & 5 | 6 | echo "Creating Docker image for BSIMM-Graph" 7 | 8 | docker build -t bsimm-graph ./docker-images/1.base-image/. 9 | docker build -t bsimm-graph ./docker-images/2.git-pull/. 10 | 11 | echo "Stopping bsimm-web container" 12 | docker rm bsimm-web 13 | docker run --name bsimm-web -it -p 3000:3000 -d bsimm-graph 14 | 15 | #open http://192.168.99.100:3000 16 | 17 | docker ps 18 | 19 | 20 | -------------------------------------------------------------------------------- /deploy/docker-images/push-to-docker-hub.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | 4 | docker build --no-cache -t diniscruz/bsimm-graphs ./docker-images/2.git-pull/ 5 | docker push diniscruz/bsimm-graphs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "maturity-models", 3 | "version": "0.0.1", 4 | "description": "Maturity Models", 5 | "main": "server.js", 6 | "scripts": { 7 | "test": "node ./node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --recursive -R list code/api/test", 8 | "dev": "cd code/ui; gulp watch", 9 | "start": "node server.js " 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/DinisCruz/Maturity-Models.git" 14 | }, 15 | "author": "Dinis Cruz", 16 | "license": "ISC", 17 | "bugs": { 18 | "url": "https://github.com/DinisCruz/Maturity-Models/issues" 19 | }, 20 | "homepage": "https://github.com/DinisCruz/Maturity-Models#readme", 21 | "engines": { 22 | "node": "5.3.0" 23 | }, 24 | "dependencies": { 25 | "async": "^1.5.2", 26 | "body-parser": "^1.15.1", 27 | "coffee-script": "^1.10.0", 28 | "d3": "^3.5.16", 29 | "express": "^4.13.4", 30 | "express-load": "^1.1.15", 31 | "fluentnode": "*", 32 | "loggly": "^1.1.1", 33 | "mocha": "^2.4.5", 34 | "morgan": "^1.7.0", 35 | "pug": "2.0.0-beta2", 36 | "serve-index": "^1.7.3", 37 | "winston": "^2.3.0", 38 | "winston-loggly-bulk": "^1.3.3", 39 | "winston-logsene": "^1.2.1" 40 | }, 41 | "devDependencies": { 42 | "cheerio": "^0.20.0", 43 | "markdown": "^0.5.0", 44 | "supertest": "^1.2.0" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | require('coffee-script/register'); 2 | require('./code/api/src/main')() -------------------------------------------------------------------------------- /wallaby.js: -------------------------------------------------------------------------------- 1 | require('fluentnode') 2 | 3 | module.exports = function (wallaby) { 4 | return { 5 | files: [ 6 | 'code/api/src/**/*.coffee', 7 | 'code/api/views/**/*.pug', 8 | { pattern: 'data/**/*' , instrument: false, load: false, ignore: false }, 9 | { pattern: 'code/ui/src/services/*', instrument: false, load: false, ignore: false }, 10 | ], 11 | 12 | tests: [ 13 | 'code/api/test/**/*.coffee', 14 | 'code/api/test/*.coffee' 15 | ], 16 | 17 | env: { 18 | type: 'node' 19 | }, 20 | setup: function (wallaby) 21 | { 22 | console.log('running tests') 23 | //console.log(wallaby) 24 | }, 25 | workers: { 26 | initial: 1, // without these sometimes the fluentnode apis 27 | regular: 1 // are not detected 28 | } 29 | }; 30 | }; --------------------------------------------------------------------------------