- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://labs.carrotsearch.com/randomizedtesting.html
软件介绍
RandomizedTesting 是一个 JUnit 测试的扩展,封装了内置重复随机的测试和超时控制、参数工厂、线程执行组等等。
示例代码:
@ThreadLeakScope(Scope.TEST)
@ThreadLeakAction({Action.WARN, Action.INTERRUPT})
@ThreadLeakLingering(linger =1000)
publicstaticclassTheGoodBadAndUglyextendsRandomizedTest {
@Test
publicvoidgood() {
// I do nothing and I'm good.
}
@Test
@Repeat(iterations =10)
publicvoidbad() {
// I fail randomly, about 20% of the time.
assertFalse(randomIntBetween(1,100) <=20);
}
@Test
publicvoidugly() {
// I start and abandon a thread which falls
// outside the test's scope. The test will fail.
newThread() {
publicvoidrun() {
RandomizedTest.sleep(5000);
}
}.start();
}
}
国际游戏设计全教程
[美]迈克尔·萨蒙德 / 张然、赵嫣 / 中国青年出版社 / 2017-2 / 108.00元
你想成为一名电子游戏设计师吗?想知道《肯塔基0号路》《到家》《枪口》等独立游戏的制作理念及过程吗?想了解《戈莫布偶大冒险》《辐射3》《战争机器》中关卡设计的奥秘吗?本书用通俗易懂的文字介绍了在游戏开发与策划过程中,需要掌握的游戏设计原理和制作的基础知识,可以作为读者从“构思一个电子游戏”到“真正完成一个电子游戏”的完备指南。 本书以系统的游戏设计流程结合大量优秀的游戏设计案例进行讲解,让读者......一起来看看 《国际游戏设计全教程》 这本书的介绍吧!
