@fromeroc9/testform 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +76 -0
- package/dist/action/136.index.js +990 -0
- package/dist/action/360.index.js +92 -0
- package/dist/action/443.index.js +724 -0
- package/dist/action/449.index.js +13 -0
- package/dist/action/566.index.js +385 -0
- package/dist/action/605.index.js +241 -0
- package/dist/action/762.index.js +583 -0
- package/dist/action/869.index.js +529 -0
- package/dist/action/956.index.js +117 -0
- package/dist/action/998.index.js +894 -0
- package/dist/action/index.js +242 -0
- package/dist/cli/136.index.js +990 -0
- package/dist/cli/360.index.js +92 -0
- package/dist/cli/443.index.js +724 -0
- package/dist/cli/449.index.js +13 -0
- package/dist/cli/566.index.js +385 -0
- package/dist/cli/605.index.js +241 -0
- package/dist/cli/762.index.js +583 -0
- package/dist/cli/869.index.js +529 -0
- package/dist/cli/956.index.js +117 -0
- package/dist/cli/998.index.js +894 -0
- package/dist/cli/index.js +241 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Testform
|
|
2
|
+
|
|
3
|
+
**Testform** brings the **Test-as-Code** paradigm to your version control platforms. It transforms standard issue trackers (like GitHub) into full-fledged Test Management ecosystems. By treating your QA processes as code, it codifies issue APIs into declarative Gherkin (`.feature`) configurations that can be shared amongst team members, edited, reviewed in Pull Requests, and strictly versioned.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📚 Documentation
|
|
8
|
+
|
|
9
|
+
We have completely overhauled our documentation to be as intuitive and comprehensive as possible.
|
|
10
|
+
|
|
11
|
+
**Start here:** 👉 **[Testform Documentation Portal (docs/index.md)](docs/index.md)** 👈
|
|
12
|
+
|
|
13
|
+
### Quick Links
|
|
14
|
+
- **[Getting Started](docs/getting-started.md)**: Installation, authentication, and your first `apply`.
|
|
15
|
+
- **[Writing Tests (The DSL)](docs/writing-tests-dsl.md)**: Master the Gherkin syntax, tags, and custom fields (like `assignees` and `milestone`).
|
|
16
|
+
- **[Configuration Guide](docs/configuration.md)**: Deep dive into the `testform.json` rules.
|
|
17
|
+
- **[CLI Reference](docs/cli-reference.md)**: Cheat sheet for all commands (`plan`, `apply`, `import`, etc.).
|
|
18
|
+
- **[Reporting & Analytics](docs/reporting-and-analytics.md)**: Generate execution matrices and coverage reports locally.
|
|
19
|
+
- **[Architecture](docs/architecture.md)**: How the AST parser, state management, and GraphQL adapters work.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
You can install Testform directly onto your system using npm. It is distributed as a global Node.js package:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g testform
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
> **Note:** Testform requires Node.js v16 or higher to be installed on your system.
|
|
32
|
+
|
|
33
|
+
## Quickstart (TL;DR)
|
|
34
|
+
|
|
35
|
+
1. Create a `testform.json` configuration file at the root of your project:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"github": {
|
|
39
|
+
"owner": "MyOrg",
|
|
40
|
+
"repository": "MyRepo",
|
|
41
|
+
"tokenEnv": "GITHUB_TOKEN"
|
|
42
|
+
},
|
|
43
|
+
"scope": {
|
|
44
|
+
"testcase": {
|
|
45
|
+
"fields": [
|
|
46
|
+
{ "name": "assignees", "type": "keywords" },
|
|
47
|
+
{ "name": "priority", "type": "tags", "values": ["@high", "@medium", "@low"] }
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
2. Initialize your workspace:
|
|
55
|
+
```bash
|
|
56
|
+
testform init
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
3. Write a Gherkin file (e.g., `login.case.feature`):
|
|
60
|
+
```gherkin
|
|
61
|
+
@testcase
|
|
62
|
+
Feature: User Login
|
|
63
|
+
|
|
64
|
+
@high
|
|
65
|
+
Scenario: Valid Login
|
|
66
|
+
* field assignees = @octocat
|
|
67
|
+
Given the user is on the login page
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
4. Preview the changes and apply them to GitHub:
|
|
71
|
+
```bash
|
|
72
|
+
testform plan
|
|
73
|
+
testform apply
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
For full details, please visit our **[Documentation Portal](docs/index.md)**.
|