333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# intelli-espower-loader [![Build Status](https://travis-ci.org/power-assert-js/intelli-espower-loader.svg?branch=master)](https://travis-ci.org/power-assert-js/intelli-espower-loader)
 
Handy node module for [power-assert](https://github.com/twada/power-assert "power-assert") and [espower-loader](https://github.com/twada/espower-loader " espower-loader").
 
## Installation
 
``` sh
npm install intelli-espower-loader --save-dev
```
 
You should also install [power-assert](https://github.com/twada/power-assert "power-assert").
 
```sh
npm install power-assert --save-dev 
```
 
## Usage
 
See [example/](example/)
 
### 1. (Optional) You have to set test directory to your `package.json`
 
``` json
{
    "name": "your-module",
    "description": "Your module",
    "version": "0.0.1",
    "directories": {
        "test": "test/"
    },
    "license": "MIT",
...
}
```
 
``` json
"directories": {
    "test": "test/"
}
```
 
If you didn't set directories.test, use `"test/"` as default value.
 
### 2. Run mocha with `intelli-espower-loader`
 
``` sh
mocha --require intelli-espower-loader
```
 
Run Test with [power-assert](https://github.com/twada/power-assert "power-assert") on the fly!!
 
![mocha](http://monosnap.com/image/GNvwDvnwXuUSvaGGZotBOeXwBATEfR.png)
 
![mocha with webstorm](http://monosnap.com/image/EKtgJNXyjzm32Ijiu7VubrZho4Rmc2.png)
 
 
## Contributing
 
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
 
## License
 
MIT