Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5dbf2942d | ||
|
|
a6831ed77e | ||
|
|
d06a76e1e3 | ||
|
|
8cdb151357 |
@@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.13.2] - 2023-30-18
|
||||
|
||||
### Changed
|
||||
- Update the README.
|
||||
- Update the version.
|
||||
- Update the CHANGELOG.
|
||||
|
||||
## [0.13.1] - 2023-30-18
|
||||
|
||||
### Changed
|
||||
- Add the license, LGPLv3.
|
||||
|
||||
## [0.13.0] - 2023-30-18
|
||||
|
||||
### Added
|
||||
- Add validators to show error if a test method is invalid.
|
||||
- Add a Calculator and its tests.
|
||||
- Add the invalid tests.
|
||||
- Add the tests for test validators.
|
||||
|
||||
### Fixed
|
||||
- Fix the given-when-then tests to have public methods.
|
||||
- Fix the test count for ClassLoader's test.
|
||||
|
||||
### Changed
|
||||
- Update the block to run only a public method.
|
||||
- Update the TestCommandFactory to have the validators.
|
||||
|
||||
## [0.12.7] - 2023-30-16
|
||||
|
||||
### Added
|
||||
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
|
||||
== simple-jbdd
|
||||
|
||||
This project is a simple BDD framework.
|
||||
|
||||
The project uses the https://github.com/spockframework/[Spock Framework Example Project^]
|
||||
|
||||
=== Prerequisites
|
||||
|
||||
- JDK 17 or higher
|
||||
- Maven use `mvnw` wrapper
|
||||
- Gradle use `gradlew` wrapper
|
||||
|
||||
=== 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`).
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
# simple-jbdd
|
||||
|
||||
This project is a simple BDD framework.
|
||||
|
||||
The project uses the [Spock Framework Example Project](https://github.com/spockframework/)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- JDK 17 or higher
|
||||
|
||||
- Maven use `mvnw` wrapper
|
||||
|
||||
- Gradle use `gradlew` wrapper
|
||||
|
||||
## Building with Gradle
|
||||
|
||||
Downloaded files (including the Gradle distribution itself) will be stored in the Gradle user home directory (typically **user_home**`/.gradle`).
|
||||
|
||||
Type: test
|
||||
|
||||
```shell
|
||||
./gradlew clean test
|
||||
```
|
||||
|
||||
Type: build
|
||||
|
||||
```shell
|
||||
./gradlew clean build
|
||||
```
|
||||
|
||||
Type: run with asserts
|
||||
|
||||
```shell
|
||||
java -ea -jar ./build/libs/simple_jbdd-0.13.2-all.jar
|
||||
```
|
||||
|
||||
## Building with Maven
|
||||
|
||||
Downloaded files will be stored in the local Maven repository (typically **user_home**`/.m2/repository`).
|
||||
|
||||
Type: test
|
||||
|
||||
```shell
|
||||
./mvnw clean test
|
||||
```
|
||||
|
||||
Type: build
|
||||
|
||||
|
||||
```shell
|
||||
./mvnw clean package
|
||||
```
|
||||
|
||||
Type: run with asserts
|
||||
|
||||
```shell
|
||||
java -ea -jar ./target/simple_jbdd-0.13.2.jar
|
||||
```
|
||||
|
||||
## Building with Maven
|
||||
|
||||
Kostiantyn Klochko (c) 2023
|
||||
|
||||
## License
|
||||
|
||||
Under the GNU Lesser General Public License v3.0 or later.
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ plugins {
|
||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||||
}
|
||||
|
||||
version = "1.0"
|
||||
version = "0.13.2"
|
||||
description = "simple-jbdd is a simple BDD testing framework for Java."
|
||||
|
||||
application {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>space.kklochko</groupId>
|
||||
<artifactId>simple_jbdd</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>0.13.2</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>simple-jbdd</name>
|
||||
|
||||
|
||||
+2
-2
@@ -49,11 +49,11 @@ class IntegratedValidatorsSpec extends Specification {
|
||||
def message = validator.getMessage()
|
||||
|
||||
then: "The message must be expected"
|
||||
message == expectedMessage
|
||||
message ==~ expectedMessage
|
||||
|
||||
where: "Possible variants of tests"
|
||||
validator | testClass || expectedMessage
|
||||
new HasMethodsWithArgumentsValidator() | HasMethodArgumentsTest.class || "ERROR!!! Methods must have no arguments!!! Check methods: given, setupArguments!!!"
|
||||
new HasMethodsWithArgumentsValidator() | HasMethodArgumentsTest.class || "ERROR!!! Methods must have no arguments!!! Check methods: (given|setupArguments), (given|setupArguments)!!!"
|
||||
new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok"
|
||||
new HasNonVoidMethodsValidator() | HasNonVoidMethodTest.class || "ERROR!!! Methods must have the void type!!! Check methods: then!!!"
|
||||
new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok"
|
||||
|
||||
Reference in New Issue
Block a user