资 源 简 介
This project has moved and is maintained by different people on GitHub.
https://github.com/jonnybbb/easyb-junit/
Provides a way to run easyb behaviors through JUnit. Requires Easyb version 0.9.6.
To use this you just need to create a class that extends the EasybSuite class. The class specified the base directory the Easyb behaviors are in, and gives a description for the suite.
Like this:
```
public class EasybTest extends EasybSuite {
@Override
protected File baseDir() {
return new File("spec");
}
@Override
protected String description() {
return "My Project Behaviors";
}
}
```
Then you can run this test in your IDE, or using Ant, or whatever else and it should execute all the behaviors under the folder you specified (behaviors must have a file extension of "specification" or "story").
Here is what the results look like in Eclipse:
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报