https://github.com/jmock-developers/jmock-library
An expressive Mock Object library for Test Driven Development
https://github.com/jmock-developers/jmock-library
Last synced: about 2 months ago
JSON representation
An expressive Mock Object library for Test Driven Development
- Host: GitHub
- URL: https://github.com/jmock-developers/jmock-library
- Owner: jmock-developers
- License: bsd-3-clause
- Created: 2010-10-04T21:02:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-06-20T15:42:46.000Z (10 months ago)
- Last Synced: 2024-06-21T19:55:38.786Z (10 months ago)
- Language: Java
- Homepage: http://www.jmock.org
- Size: 19.5 MB
- Stars: 130
- Watchers: 18
- Forks: 69
- Open Issues: 56
-
Metadata Files:
- Readme: README.DEVELOPMENT
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-java - JMock
README
Development rules
=================Here are some rules that we follow when developing jMock:
* Never check in a class without associated unit tests.
* Never check a failing unit test into the repository.
* Acceptance tests may fail. A failing acceptance test indicates
something that needs to be done: a todo item, feature request or
bug report, for example. It's ok to check a failing acceptance test
into the repository.* Separate acceptance and unit tests. Make it easy to run only the
unit tests so that we can check that they pass before committing,
even when acceptance tests are failing.* Resolve and remove all TODO comments before checking in.
* Avoid the following words in class names and other identifiers:
Helper, Impl (or a derivative), Manager.* And the reverse: don't start interfaces with an I.
* Use the TestDox naming conventions for unit tests.
Architectural Constraints
=========================* No dependency on any specific test framework.
That means, don't use JUnit Assert.assertBlahBlah to check expectations.
Throw ExpectationError to report a violated expectation.
Throw some kind of RuntimeException to report programming errors in the
use of the framework. E.g. trying to set up an expectation to return a
result of the wrong type.Release
=======
mvn versions:set -DoldVersion=* -DnewVersion=2.10.0 -DgroupId=org.jmock -DgenerateBackupPoms=falseeval $(gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info)
export GPG_AGENT_INFO
export GPG_TTY=$(tty)
export SONATYPE_USERNAME=UUU
export SONATYPE_PASSWORD=PPPP
mvn clean deploy -P release --settings settings.xml -Dgpg.keyname=XXXXXXXXmvn versions:set -DoldVersion=* -DnewVersion=2.13.0-SNAPSHOT -DgroupId=org.jmock -DgenerateBackupPoms=false