Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Version 0.1-pre
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Butz committed Jul 11, 2016
1 parent 13b0576 commit 6eda815
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
10 changes: 8 additions & 2 deletions DEVELOPER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ BEGIN
END DEGENERATE;
```

# Packaging executable
`./gradlew distShadowZip`
# Creating a release

When creating a release, the following steps should be followed:
- Update `build.gradle` with the version number
- Update `README.md` with the version number
- When committing those changes, tag the commit with the version number, and push the tag to repository
- Build the JAR by running `./gralew bootRepackage`
- Upload the resulting JAR to Github release associated with the version tag
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# Trilogy

Trilogy is a tool for testing SQL stored procedures and functions. Test cases are represented by plain text files utilizing markdown format, which makes them easily readable and editable.
## Requirements
- JRE 1.7 or later installed
- JDBC driver for the database under test available on the classpath.

##Latest version
0.1-pre

## Command-line options
- Single test case run:
```
$ ./trilogy <filename> [--db_url=<JDBC url>] [--db_user=<username>] [--db_password=<password>]
$ java -jar trilogy.jar <filename> [--db_url=<JDBC url>] [--db_user=<username>] [--db_password=<password>]
```
where `filename` is path to the `.stt` test file
- Project run:
```
$ ./trilogy --project=<path to project> [--db_url=<JDBC url>] [--db_user=<username>] [--db_password=<password>] [--skip_schema_load]
$ java -jar trilogy.jar --project=<path to project> [--db_url=<JDBC url>] [--db_user=<username>] [--db_password=<password>] [--skip_schema_load]
```
add the `skip_schema_load` flag to indicate that the `tests/fixtures/schema.sql` should not be loaded if it is present in the project.
The `db_url` should point to the database under test. Make sure that the appropriate JDBC driver is available on the classpath.
Also, the `db_url`, `db_user` and `db_password` can be specified as environment variables.
## Standalone test case file format
Standalone test cases are good for small ad-hoc tests that do not require loading of the schema, procedure code or fixtures.
```
Expand Down
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ apply plugin: 'application'

jar {
baseName = 'trilogy'
version = '0.0.1-SNAPSHOT'
version = '0.1-pre'
manifest {
attributes('Implementation-Title': baseName, 'Implementation-Version': version)

}
}

sourceCompatibility = 1.7
Expand All @@ -33,15 +37,13 @@ repositories {
mavenCentral()
jcenter()
maven { url "http://repository.jetbrains.com/all" }
flatDir { dirs 'lib' }
}

dependencies {
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile("org.springframework.boot:spring-boot-starter:${springBootVersion}")
compile("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
compile("commons-cli:commons-cli:1.3.1")
compile(name: "ojdbc7")
compile("org.flywaydb:flyway-core:4.0.3")

testCompile('org.springframework.boot:spring-boot-starter-test')
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Wed Jun 15 18:03:33 BST 2016
#Mon Jul 11 14:49:04 BST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ ${AnsiColor.BRIGHT_RED} |"-.._____${AnsiColor.GREEN}_______..-"${AnsiColor.WHITE
${AnsiColor.BRIGHT_RED} | ${AnsiColor.GREEN} |${AnsiColor.WHITE} |___| |___| |_||___||_______||_______||_______| |___|
${AnsiColor.BRIGHT_RED} |"-.._${AnsiColor.GREEN}___________..-"${AnsiColor.WHITE}
${AnsiColor.BRIGHT_RED} | ${AnsiColor.GREEN} |${AnsiColor.WHITE} [== Database Logic Testing Framework by ${AnsiColor.CYAN}Pivotal Labs${AnsiColor.WHITE} ==]
${AnsiColor.BRIGHT_RED} "${AnsiColor.GREEN}-..____________..-"${AnsiColor.WHITE} ${AnsiStyle.BOLD}Everyone just loves the fierceness of chicken cheesecake flavored with cumin.${AnsiStyle.NORMAL}
${AnsiColor.BRIGHT_RED} "${AnsiColor.GREEN}-..____________..-"${AnsiColor.WHITE} Version: ${application.version}

0 comments on commit 6eda815

Please sign in to comment.