Commit 788b5e3
Add spec module (#3)
* Add preflight-spec module and upgrade Gradle to 9.3.1
Introduces the preflight-spec module — a standalone markdown parsing/writing
library for Preflight test spec files. Each spec is a markdown file that
serves as both living documentation and a machine-parseable test definition.
- New module: preflight-core/preflight-spec with TestSpecReader, TestSpecWriter,
data model (TestSpec, Stub, StubMode), and internal parsers for front matter
and HTML comment directives
- 46 tests covering parsing, writing, round-trip, and error cases
- MarkdownSpec base class in preflight-runtime for executing spec files as
Kotest tests
- Upgraded all Gradle wrappers from 8.13 to 9.3.1 (bundles Kotlin 2.2.21,
required for Orbital 0.37.0-SNAPSHOT compatibility)
- Fixed KafkaContainerSupport for removed emitConsumerInfoMessages parameter
- Removed broken ExamplesSpec that referenced compileOnly types from test source
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Gitignore .idea/kotlinc.xml
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add ResultFormat to support typedInstance qualifier in Expected Results
The Expected Results code block info string can now include a format
qualifier (e.g. `json typedInstance`) to distinguish plain JSON from
Orbital TypedInstance JSON. Defaults to plain JSON for backwards
compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Auto-discover and execute .spec.md files as tests
The Gradle plugin now generates a PreflightSpecRunner test class that
extends MarkdownSpec, so any .spec.md files in test-resources/specs/
are automatically discovered and run as tests without hand-written code.
MarkdownSpec now filters for the .spec.md suffix specifically.
Includes a new spec-project example demonstrating spec-only testing
with no Kotlin test files required.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add BUILDING.md and fix release workflow
Add build/release documentation covering local builds, Maven Local
publishing, version bumping, and the release process.
Fix release.yml to also publish preflight-spec to the Orbital Maven
repo and add missing AWS credentials for S3 authentication.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* added docs on new spec format
* Default the version on TestSpec
* Update default versions of Taxi and Orbital
* Added building notes
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent fba417a commit 788b5e3
File tree
44 files changed
+2960
-75
lines changed- .github/workflows
- .idea
- docs/pages
- example-projects
- mixed-sources/gradle/wrapper
- project-with-orbital-dependency/gradle/wrapper
- simple-project/gradle/wrapper
- spec-project
- gradle/wrapper
- src
- test-resources/specs
- gradle/wrapper
- preflight-core
- gradle/wrapper
- preflight-gradle-plugin
- src/main/kotlin/com/orbitalhq/preflight/gradle
- preflight-runtime
- src
- main/kotlin/com/orbitalhq/preflight/dsl
- containers/kafka
- test/kotlin/com/orbitalhq/preflight
- preflight-spec
- src
- main/kotlin/com/orbitalhq/preflight/spec
- internal
- test/kotlin/com/orbitalhq/preflight/spec
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+2960
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
0 commit comments