You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Full run e2e on every branch
* Fix incorrect caveat config
* refactor(e2e): remove build step from CI and improve dependency polling logic, remove explicit turbo cache dir
* Add timeout, to fail after dependencies are not available before 5 minutes. Fix issue where dependency is marked as unavailable even when it's responding, if the method is not supported.
* Conditionally log service availability to prevent misleading logging (#40)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: jeff.smale <jeff.smale@consensys.net>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: jeff.smale <jeff.smale@consensys.net>
Copy file name to clipboardExpand all lines: packages/delegator-e2e/README.md
+6-25Lines changed: 6 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,7 @@ When developing end-to-end tests, you can run step 2 repeatedly without having t
20
20
21
21
### Test Types
22
22
23
-
There are two types of test suites available:
24
-
25
-
-**Full Tests** (`yarn e2etest:full`): Runs the complete test suite including all test cases. This is used in the main branch and release branches to ensure comprehensive testing.
26
-
-**Smoke Tests** (`yarn e2etest:smoketest`): Runs only the main test cases, skipping edge cases and alternative scenarios. This is used in feature branches for faster feedback during development.
23
+
The end-to-end test suite runs the complete test suite including all test cases using `yarn test:e2e`.
27
24
28
25
## Adding tests
29
26
@@ -42,7 +39,7 @@ Some guidelines for creating tests:
42
39
43
40
### Test Structure
44
41
45
-
When creating a test file, follow this structure to support both full and smoke test runs:
42
+
When creating a test file, follow this structure:
46
43
47
44
```typescript
48
45
import { beforeEach, expect, test } from'vitest';
@@ -63,12 +60,10 @@ beforeEach(async () => {
63
60
- Any important context
64
61
*/
65
62
66
-
// Main test case that will run in both full and smoke tests
67
-
test('maincase: Description of the main functionality', async () => {
63
+
test('Description of the main functionality', async () => {
68
64
...
69
65
});
70
66
71
-
// Additional test cases that will only run in full test suite
72
67
test('Description of edge case or alternative scenario', async () => {
- Prefix the main test case with `maincase:` in the test description
85
-
- This test will run in both full and smoke test suites
86
-
- Should cover the primary happy path functionality
87
-
88
-
2.**Additional Test Cases**:
89
-
- These will only run in the full test suite
90
-
- Can include:
91
-
- Edge cases
92
-
- Alternative scenarios
93
-
- Failure cases
94
-
95
-
3.**Test Organization**:
78
+
1.**Test Organization**:
96
79
- Use `beforeEach` for common setup
97
80
- Group related assertions together
98
81
- Use descriptive test names that explain the scenario
99
82
- Include a block comment describing the user story
100
83
101
-
4.**Common Patterns**:
84
+
2.**Common Patterns**:
102
85
- Use helper functions from `utils/helpers.ts` for common operations
103
86
- Use assertion functions from `utils/assertions.ts` for consistent validation
104
87
- Generate unique addresses and keys for each test
105
88
- Clean up state in `beforeEach` to ensure test isolation
106
-
-`runTest_expectSuccess` and `runTest_expectFailure` to abstract common functionality out of each test within the file
107
-
108
-
The smoke test runner will only execute tests with `maincase:` in their description, while the full test runner will execute all test cases. This allows for quick feedback during development while maintaining comprehensive testing in the main and release branches.
89
+
-`runTest_expectSuccess` and `runTest_expectFailure` to abstract common functionality out of each test within the file
0 commit comments