stefanbirkner/system-rules
关于
用于测试使用 java.lang.System 的代码的 JUnit 规则集合。
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文System Rules
System Rules is a collection of JUnit rules for testing code which uses
java.lang.System.
System Lambda is an alternative to System Rules that leverages the possibilities of Java 8. It is independent of the test framework. You can use it for example as a replacement for System Rules in JUnit Jupiter and TestNG.
Installation
System Rules is available from Maven Central.
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<version>1.19.0</version>
</dependency>
Please don't forget to add the scope test if you're using System
Rules for tests only.
Usage
System Rules' documentation is stored in the gh-pages branch and is
available online at
http://stefanbirkner.github.io/system-rules/index.html
Contributing
You have three options if you have a feature request, found a bug or simply have a question about System Rules.
- Write an issue.
- Create a pull request. (See Understanding the GitHub Flow)
- Write a mail to [email protected]
Development Guide
System Rules is build with Maven. If you want to contribute code than
- Please write a test for your change.
- Ensure that you didn't break the build by running
mvnw test. - Fork the repo and create a pull request. (See Understanding the GitHub Flow)
The basic coding style is described in the
EditorConfig file .editorconfig.
System Rules supports Travis CI (Linux) and AppVeyor (Windows) for continuous integration. Your pull request will be automatically build by both CI servers. On Travis CI we build your pull request with OpenJDK 6 and run test with different JDKs (Java 6 to 10).
Release Guide
- Select a new version according to the Semantic Versioning 2.0.0 Standard.
- Set the new version in
pom.xmland in theInstallationsection of this readme. - Commit the modified
pom.xmlandREADME.md. - Run
mvnw clean deploywith JDK 6 or 7. - Add a tag for the release:
git tag system-rules-X.X.X
探索相关项目
加载中…