• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

spockframework/spock-example: Spock example specifications along with ready-to-g ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

spockframework/spock-example

开源软件地址(OpenSource Url):

https://github.com/spockframework/spock-example

开源编程语言(OpenSource Language):

Groovy 100.0%

开源软件介绍(OpenSource Introduction):

License Apache%202.0 blue
master
spock

Spock Framework Example Project

The purpose of this project is to help you get started with Spock. The project includes several example specifications and build scripts for Ant, Gradle, and Maven. It also makes it easy to create an Eclipse or IDEA project, allowing you to run the example specs from within your IDE.

All three builds (Ant, Gradle, Maven) will automatically download all required dependencies, compile the project, and finally run the example specs. The Gradle build goes one step further by bootstrapping itself, alleviating the need to have a build tool preinstalled.

Prerequisites

  • JDK 8 or higher

  • Maven use mvnw wrapper

  • Gradle use gradlew wrapper

Note
This example shows the usage of Spock 2.0, which uses the JUnit Platform. If you want to see how to get Spock 1.x with JUnit 4 up and running see the Spock-1.x Branch.

Building with Gradle

Type:

./gradlew clean test

Downloaded files (including the Gradle distribution itself) will be stored in the Gradle user home directory (typically user_home/.gradle).

Building with Maven

Type:

./mvnw clean test

Downloaded files will be stored in the local Maven repository (typically user_home/.m2/repository).

Creating an Eclipse project

Install the Buildship plugin if you want to use gradle as build tool.

Creating an IDEA project

Just open the project directory with Intelli IDEA and it should auto-detect the project settings.

Further Resources

If you have any comments or questions, please direct them to the Spock discussion group. We appreciate all feedback!

Happy spec’ing!

The Spock Framework Team




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap