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
Copy file name to clipboardExpand all lines: test/README.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,54 @@ This folder contains only simple smoke tests that verify core HyperFormula funct
5
5
HyperFormula team maintains a comprehensive test suite that includes unit tests run in different environments, compatibility tests, and performance tests.
6
6
7
7
The full test suite is available on request. To obtain it, contact us at [email protected].
8
+
9
+
## Using the private test suite
10
+
11
+
The private test suite is kept in the `hyperformula-tests` repository. Once you have access to it, you can use it following this instructions:
12
+
13
+
Whenenever you switch branch in the main repository, you need to fetch the private test suite to the `test/hyperformula-tests` directory by running:
14
+
```
15
+
npm run test:fetch-private
16
+
17
+
```
18
+
19
+
Then, you can run the test by calling one og the commands:
20
+
21
+
```
22
+
npm run test
23
+
npm run test:jest
24
+
npm run test:browser
25
+
npm run test:coverage
26
+
npm run test:performance
27
+
npm run test:compatibility
28
+
```
29
+
30
+
## `fetch-tests.sh`
31
+
32
+
This file is located in the `test` directory.
33
+
34
+
### What it does
35
+
36
+
1.**Clone if missing** – If `test/hyperformula-tests` does not exist:
37
+
- With `DEPLOY_TOKEN` set: clones via HTTPS using the token
38
+
- Otherwise: clones via SSH (`[email protected]:handsontable/hyperformula-tests.git`)
39
+
40
+
2.**Detect current branch** – Uses:
41
+
-`GITHUB_HEAD_REF` (pull request source branch)
42
+
-`GITHUB_REF_NAME` (push branch)
43
+
-`git rev-parse --abbrev-ref HEAD` (local), falling back to `develop` on detached HEAD
44
+
45
+
3.**Checkout matching branch** – In `hyperformula-tests`:
46
+
- Fetches from `origin`
47
+
- Checks out the branch if it exists locally or on `origin`
48
+
- Otherwise checks out `develop`
49
+
50
+
4.**Pull latest** – Runs `git pull origin` on the checked-out branch.
0 commit comments