powerbi-models/CONTRIBUTING.md

50 строки
781 B
Markdown
Исходник Обычный вид История

2016-06-28 02:30:12 +03:00
# Contributing
## Setup
Clone the repository:
```
git clone https://github.com/Microsoft/powerbi-models
```
Navigate to the cloned directory
2016-06-28 02:30:12 +03:00
Install local dependencies:
```
npm install
2016-06-28 02:30:12 +03:00
```
## Building
```
npm run build
2016-06-28 02:30:12 +03:00
```
Or if using VS Code: `Ctrl + Shift + B`
## Testing
```
npm test
```
By default the tests run using PhantomJS
2016-06-28 02:30:12 +03:00
There are various command line arguments that can be passed to the test command to facilitate debugging:
Run tests with Chrome
```
npm test -- --chrome
2016-06-28 02:30:12 +03:00
```
Enable debug level logging for karma, and remove code coverage
```
npm test -- --debug
2016-06-28 02:30:12 +03:00
```
Disable single run to remain open for debugging
```
npm test -- --watch
2016-06-28 02:30:12 +03:00
```
These are often combined and typical command for debugging tests is:
```
npm test -- --chrome --debug --watch
2016-06-28 02:30:12 +03:00
```