Skip to content

Commit 6abd58e

Browse files
committed
Renaming end-to-end (E2E) tests to conformance tests to align ourselves with the nomenclature used by Tesll.
1 parent 6da1443 commit 6abd58e

9 files changed

+113
-113
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ __pycache__
33

44
# Plain
55
examples/**/build*/
6-
examples/**/e2e_tests/
6+
examples/**/conformance_tests/
77
examples/**/node_build/
8-
examples/**/node_e2e_tests/
8+
examples/**/node_conformance_tests/
99
examples/**/package-lock.json
1010
examples/**/node_modules/
1111
examples/**/node_harness_tests/

Plain-language-specification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ Functional requirements are rendered incrementally one by one. Consequently earl
146146

147147
## Test Requirements
148148

149-
The `***Test Requirements:***` specification is a list of instructions that steer implementation of end-to-end tests and provide details of testing environment.
149+
The `***Test Requirements:***` specification is a list of instructions that steer implementation of conformance tests and provide details of testing environment.
150150

151151
Here's an example specification of test requirements.
152152

153153
```plain
154-
- End-to-end tests of The Program (The E2E Tests) should be implemented in Python using Unittest framework.
154+
- The Conformance Tests of The Program should be implemented in Python using Unittest framework.
155155
```
156156

157157
# Extended Syntax

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ To have the hash generated use the following command:
5757
## Usage
5858
```
5959
plain2code.py [-h] [--verbose] [--debug] [--base-folder BASE_FOLDER] [--build-folder BUILD_FOLDER]
60-
[--render-range RENDER_RANGE] [--unittests-script UNITTESTS_SCRIPT] [--e2e-tests-folder E2E_TESTS_FOLDER]
61-
[--e2e-tests-script E2E_TESTS_SCRIPT] [--api [API]] [--api-key API_KEY] filename
60+
[--render-range RENDER_RANGE] [--unittests-script UNITTESTS_SCRIPT] [--conformance-tests-folder CONFORMANCE_TESTS_FOLDER]
61+
[--conformance-tests-script CONFORMANCE_TESTS_SCRIPT] [--api [API]] [--api-key API_KEY] filename
6262
6363
Render Plain source to software code.
6464
@@ -80,11 +80,11 @@ options:
8080
--unittests-script UNITTESTS_SCRIPT
8181
Name of a shell script to run unit tests. The script will receive
8282
the build folder as its parameter.
83-
--e2e-tests-folder E2E_TESTS_FOLDER
84-
Location of the folder where generated end-to-end test files will be written.
85-
--e2e-tests-script E2E_TESTS_SCRIPT
86-
Name of a shell script to run end-to-end tests. The script will receive
87-
the build folder and the end-to-end tests subfolder as its parameters.
83+
--conformance-tests-folder CONFORMANCE_TESTS_FOLDER
84+
Location of the folder where generated conformance test files will be written.
85+
--conformance-tests-script CONFORMANCE_TESTS_SCRIPT
86+
Name of a shell script to run conformance tests. The script will receive
87+
the build folder and the conformance tests subfolder as its parameters.
8888
--api [API] Force using the API (for internal use).
8989
--api-key API_KEY API key used to access the API. If not provided, the CLAUDE_API_KEY
9090
environment variable is used.

codeplain_REST_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def refactor_source_files_if_needed(self, files_to_check, existing_files_content
154154
return self.post_request(endpoint_url, headers, payload)
155155

156156

157-
def render_e2e_tests(self, frid, functional_requirement_id, plain_source_tree, linked_resources, existing_files_content):
158-
endpoint_url = f"{self.api_url}/render_e2e_tests"
157+
def render_conformance_tests(self, frid, functional_requirement_id, plain_source_tree, linked_resources, existing_files_content):
158+
endpoint_url = f"{self.api_url}/render_conformance_tests"
159159
headers = {
160160
"X-API-Key": self.api_key,
161161
"Content-Type": "application/json"
@@ -187,8 +187,8 @@ def generate_folder_name_from_functional_requirement(self, functional_requiremen
187187
return self.post_request(endpoint_url, headers, payload)
188188

189189

190-
def fix_e2e_tests_issue(self, frid, functional_requirement_id, plain_source_tree, linked_resources, existing_files_content, code_diff, e2e_tests_files, e2e_tests_issue, implementation_fix_count):
191-
endpoint_url = f"{self.api_url}/fix_e2e_tests_issue"
190+
def fix_conformance_tests_issue(self, frid, functional_requirement_id, plain_source_tree, linked_resources, existing_files_content, code_diff, conformance_tests_files, conformance_tests_issue, implementation_fix_count):
191+
endpoint_url = f"{self.api_url}/fix_conformance_tests_issue"
192192
headers = {
193193
"X-API-Key": self.api_key,
194194
"Content-Type": "application/json"
@@ -201,8 +201,8 @@ def fix_e2e_tests_issue(self, frid, functional_requirement_id, plain_source_tree
201201
"linked_resources": linked_resources,
202202
"existing_files_content": existing_files_content,
203203
"code_diff": code_diff,
204-
"e2e_tests_files": e2e_tests_files,
205-
"e2e_tests_issue": e2e_tests_issue,
204+
"conformance_tests_files": conformance_tests_files,
205+
"conformance_tests_issue": conformance_tests_issue,
206206
"implementation_fix_count": implementation_fix_count
207207
}
208208

examples/example_hello_world_react/hello_world_react.plain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
***Test Requirements:***
1010

11-
- End-to-end tests should be written in TypeScript, using Cypress as the end-to-end testing framework.
11+
- The Conformance Tests should be written in TypeScript, using Cypress as the framework for The Conformance Tests.
1212

1313

1414
***Functional Requirements:***

examples/example_hello_world_react/run.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ if [ $VERBOSE -eq 1 ]; then
2727
fi
2828

2929
# Construct the command with optional parameters
30-
CMD="python ../../plain2code.py hello_world_react.plain --e2e-tests-script=../../test_scripts/run_e2e_tests_cypress.sh"
30+
CMD="python ../../plain2code.py hello_world_react.plain --conformance-tests-script=../../test_scripts/run_conformance_tests_cypress.sh"
3131
if [ $VERBOSE -eq 1 ]; then
3232
CMD="$CMD -v"
3333
fi
3434
if [ ! -z "$API_ENDPOINT" ]; then
3535
CMD="$CMD --api $API_ENDPOINT"
3636
fi
3737

38-
# Removing all the end-to-end tests before rendering the hello world example.
39-
rm -rf e2e_tests
40-
rm -rf node_e2e_tests
38+
# Removing all the conformance tests before rendering the hello world example.
39+
rm -rf conformance_tests
40+
rm -rf node_conformance_tests
4141

4242
# Execute the command
4343
$CMD
@@ -48,7 +48,7 @@ if [ $? -ne 0 ]; then
4848
exit 1
4949
fi
5050

51-
../../test_scripts/run_e2e_tests_cypress.sh build harness_tests/hello_world_display ${VERBOSE:+-v}
51+
../../test_scripts/run_conformance_tests_cypress.sh build harness_tests/hello_world_display ${VERBOSE:+-v}
5252

5353
# Check if the test harness has failed for the hello world example
5454
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)