Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74d7d48773 | ||
|
|
5427de414f | ||
|
|
82d8b4db8d | ||
|
|
32bd931afc | ||
|
|
29b11f454f | ||
|
|
ec1053741e | ||
|
|
d5dbf2942d | ||
|
|
a6831ed77e | ||
|
|
d06a76e1e3 | ||
|
|
8cdb151357 |
+34
@@ -18,7 +18,41 @@ name: maven
|
||||
steps:
|
||||
- name: test
|
||||
image: maven:3.9.4-eclipse-temurin-17-alpine
|
||||
volumes:
|
||||
- name: package_cache
|
||||
path: /root/.m2/
|
||||
commands:
|
||||
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
- mvn test -B
|
||||
|
||||
- name: build
|
||||
image: maven:3.9.4-eclipse-temurin-17-alpine
|
||||
volumes:
|
||||
- name: package_cache
|
||||
path: /root/.m2/
|
||||
commands:
|
||||
- mvn package -Dmaven.test.skip=true
|
||||
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: API_KEY
|
||||
base_url:
|
||||
from_secret: BASE_URL
|
||||
files:
|
||||
- target/*.jar
|
||||
checksum:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
- sha512
|
||||
- adler32
|
||||
- crc32
|
||||
when:
|
||||
event: tag
|
||||
|
||||
volumes:
|
||||
- name: package_cache
|
||||
temp: {}
|
||||
|
||||
|
||||
+79
-25
@@ -7,37 +7,86 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.12.7] - 2023-30-16
|
||||
## [0.13.5] - 2023-11-02
|
||||
|
||||
### Fixed
|
||||
- Fix the typo in the README.
|
||||
|
||||
### Changed
|
||||
- Update the version.
|
||||
- Update the CHANGELOG.
|
||||
|
||||
## [0.13.4] - 2023-10-19
|
||||
|
||||
### Changed
|
||||
- Update the version.
|
||||
- Update the CHANGELOG.
|
||||
- Update the CI/CD configuration to publish the artifacts to the release.
|
||||
|
||||
## [0.13.3] - 2023-10-19
|
||||
|
||||
### Fixed
|
||||
- Fix the validators's test have two variant of the order for methods.
|
||||
|
||||
## [0.13.2] - 2023-10-18
|
||||
|
||||
### Changed
|
||||
- Update the README.
|
||||
- Update the version.
|
||||
- Update the CHANGELOG.
|
||||
|
||||
## [0.13.1] - 2023-10-18
|
||||
|
||||
### Changed
|
||||
- Add the license, LGPLv3.
|
||||
|
||||
## [0.13.0] - 2023-10-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-10-16
|
||||
|
||||
### Added
|
||||
- Add the CHANGELOG.
|
||||
|
||||
## [0.12.6] - 2023-30-16
|
||||
## [0.12.6] - 2023-10-16
|
||||
|
||||
### Fixed
|
||||
- Fix the project name for the gradle build.
|
||||
|
||||
## [0.12.5] - 2023-30-15
|
||||
## [0.12.5] - 2023-10-15
|
||||
|
||||
### Changed
|
||||
- Update the build configuration to make the JAR file.
|
||||
|
||||
## [0.12.4] - 2023-30-15
|
||||
## [0.12.4] - 2023-10-15
|
||||
|
||||
### Added
|
||||
- Add SimpleEmptyTest and its tests.
|
||||
|
||||
## [0.12.3] - 2023-30-15
|
||||
## [0.12.3] - 2023-10-15
|
||||
|
||||
### Added
|
||||
- Add the error for an empty test.
|
||||
|
||||
## [0.12.2] - 2023-30-15
|
||||
## [0.12.2] - 2023-10-15
|
||||
|
||||
### Changed
|
||||
- Update the titles for SimpleFailedThenTest and SimpleGivenWhenThenTest.
|
||||
|
||||
## [0.12.1] - 2023-30-15
|
||||
## [0.12.1] - 2023-10-15
|
||||
|
||||
### Added
|
||||
- Add a multi-block test.
|
||||
@@ -45,59 +94,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Changed
|
||||
- Update the tests to test the multi-block test.
|
||||
|
||||
## [0.12.0] - 2023-30-15
|
||||
## [0.12.0] - 2023-10-15
|
||||
|
||||
### Added
|
||||
- Add the multi-block tests support.
|
||||
|
||||
## [0.11.2] - 2023-30-10
|
||||
## [0.11.2] - 2023-10-10
|
||||
|
||||
### Added
|
||||
- Add the main entry point.
|
||||
|
||||
## [0.11.1] - 2023-30-10
|
||||
## [0.11.1] - 2023-10-10
|
||||
|
||||
### Added
|
||||
- Add a constructor to set only a formatter for CLIReporter.
|
||||
|
||||
## [0.11.0] - 2023-30-10
|
||||
## [0.11.0] - 2023-10-10
|
||||
|
||||
### Added
|
||||
- Add the CLITestRunner to run tests and to report the result.
|
||||
|
||||
## [0.10.1] - 2023-30-10
|
||||
## [0.10.1] - 2023-10-10
|
||||
|
||||
### Changed
|
||||
- Update the CLI test formatting.
|
||||
|
||||
## [0.10.0] - 2023-30-8
|
||||
## [0.10.0] - 2023-10-8
|
||||
|
||||
### Added
|
||||
- Add the SingleTestLoader to create an object of a loaded Test class.
|
||||
|
||||
## [0.9.2] - 2023-30-8
|
||||
## [0.9.2] - 2023-10-8
|
||||
|
||||
### Added
|
||||
- Add a constructor with a default factory for TestCommandQueueFactory.
|
||||
|
||||
## [0.9.1] - 2023-30-8
|
||||
## [0.9.1] - 2023-10-8
|
||||
|
||||
### Fixed
|
||||
- Fix the test title for SingleTestClassLoader.
|
||||
|
||||
## [0.9.0] - 2023-30-7
|
||||
## [0.9.0] - 2023-10-7
|
||||
|
||||
### Added
|
||||
- Add the AbstractReporter.
|
||||
- Add the CLIReporter and its tests.
|
||||
|
||||
## [0.8.3] - 2023-30-7
|
||||
## [0.8.3] - 2023-10-7
|
||||
|
||||
### Added
|
||||
- Add Apache Commons Lang library.
|
||||
- Add default constructor for SimpleTestReportFormatter.
|
||||
|
||||
## [0.8.2] - 2023-30-6
|
||||
## [0.8.2] - 2023-10-6
|
||||
|
||||
### Added
|
||||
- Add the AbstractTestReportFormatter.
|
||||
@@ -105,27 +154,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Changed
|
||||
- Refactor the SimpleTestReportFormatter to use the interface.
|
||||
|
||||
## [0.8.1] - 2023-30-6
|
||||
## [0.8.1] - 2023-10-6
|
||||
|
||||
### Fixed
|
||||
- Fix the encoding issue.
|
||||
|
||||
## [0.8.0] - 2023-30-4
|
||||
## [0.8.0] - 2023-10-4
|
||||
|
||||
### Added
|
||||
- Add the SimpleTestReportFormatter.
|
||||
|
||||
## [0.7.0] - 2023-30-3
|
||||
## [0.7.0] - 2023-10-3
|
||||
|
||||
### Added
|
||||
- Add the TestCommandMetaDataFactory to generate the metadata.
|
||||
|
||||
## [0.6.3] - 2023-30-1
|
||||
## [0.6.3] - 2023-10-1
|
||||
|
||||
### Added
|
||||
- Add the ClassLoader.
|
||||
|
||||
## [0.6.2] - 2023-30-1
|
||||
## [0.6.2] - 2023-10-1
|
||||
|
||||
### Fixed
|
||||
- Fix typos and improve description in the tests.
|
||||
@@ -242,8 +291,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
- Project initialization.
|
||||
|
||||
[Unreleased]: https://gitlab.com/KKlochko/cipher-analytical-machine/-/compare/0.5.3...main?from_project_id=50218541&straight=false
|
||||
: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.12.7...main?from_project_id=50536015&straight=false
|
||||
[Unreleased]: https://gitlab.com/KKlochko/cipher-analytical-machine/-/compare/0.13.5...main?from_project_id=50218541&straight=false
|
||||
[0.13.5]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.13.4...0.13.5?from_project_id=50536015&straight=false
|
||||
[0.13.4]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.13.3...0.13.4?from_project_id=50536015&straight=false
|
||||
[0.13.3]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.13.2...0.13.3?from_project_id=50536015&straight=false
|
||||
[0.13.2]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.13.1...0.13.2?from_project_id=50536015&straight=false
|
||||
[0.13.1]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.13.0...0.13.1?from_project_id=50536015&straight=false
|
||||
[0.13.0]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.12.7...0.13.0?from_project_id=50536015&straight=false
|
||||
[0.12.7]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.12.6...0.12.7?from_project_id=50536015&straight=false
|
||||
[0.12.6]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.12.5...0.12.6?from_project_id=50536015&straight=false
|
||||
[0.12.5]: https://gitlab.com/KKlochko/simple-jbdd/-/compare/0.12.4...0.12.5?from_project_id=50536015&straight=false
|
||||
|
||||
-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.5-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.5.jar
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
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.5"
|
||||
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.5</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