Skip to content

Commit 2c80291

Browse files
- Testing philosophy and mechanisms discussed.
- Integration test more configurable.
1 parent 08152bb commit 2c80291

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/robot/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
- [x] fix library lifetimes issue; as per https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#creating-test-library-class-or-module.
1010

1111

12+
## Distributed testing
13+
14+
It is convenient for development- and release-critical robot tests to reside in this repository, because it accelerates the
15+
delivery cycle. There are other repositories in the org that can re-use much of this functionality; ironically the best examples are dependencies:
16+
17+
- [`any-sdk`](https://github.com/stackql/any-sdk).
18+
- [`stackql-provider-registry`](https://github.com/stackql/stackql-provider-registry).
19+
20+
These may consume entire testing modules, or more nuanced [tag-based](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tagging-test-cases) approaches, with [include](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#by-tag-names) and [skip](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#skip) capabilities.
21+
22+
1223
## Running yourself
1324

1425
### Running mocked provider tests

test/robot/integration/stackql.resource

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ ${EXECUTION_PLATFORM} native # to be overridden from command line, eg
44
${SQL_BACKEND} sqlite_embedded # to be overridden from command line, eg "postgres_tcp"
55
${IS_WSL} false # to be overridden from command line, with string "true"
66
${USE_STACKQL_PREINSTALLED} false # to be overridden from command line, with string "true"
7+
${SUNDRY_CONFIG} {} # to be overridden from command line, with string value
78

89
*** Settings ***
910
Library Process
1011
Library OperatingSystem
1112
Variables ${LOCAL_LIB_HOME}/stackql_context.py ${EXECUTION_PLATFORM} ${SQL_BACKEND} ${USE_STACKQL_PREINSTALLED}
13+
... ${SUNDRY_CONFIG}
1214
Library Process
1315
Library OperatingSystem
1416
Library String

0 commit comments

Comments
 (0)