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: CONTRIBUTING.md
+2-41Lines changed: 2 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,49 +67,10 @@ excluded from both linting and coverage.
67
67
to the _Backend_.
68
68
Use [java_maven.js](src/providers/java_maven.js) as an example to get you started.
69
69
* Import the new _Provider_ and list in the in _availableProviders_ array in [provider.js](src/provider.js).
70
-
* Update the _choices_ configuration for the _manifest-name_ positional argument in [cli.js](src/cli.js).
71
-
* Add Integration Test scenarios for the added provider in [integration/scenarios](integration/scenarios).
72
-
Use the [java scenarios](integration/scenarios/maven) as an example.
70
+
* Update the _choices_ configuration for the _manifest-name_ positional argument in [cli.js](src/cli.js).
71
+
* Add Integration Test scenarios for the added provider in the [trustification/integration](https://github.com/trustification/exhort-integration-tests/) repository.
73
72
* Update the documentation. This document and [README.md](README.md).
74
73
75
-
### Integration Tests
76
-
77
-
Integration tests are performed with a _bash_ script executing _node_ scripts.<br/>
78
-
In [integration/run_its.sh](integration/run_its.sh) we start with a function called _match_ taking 2 arguments:
79
-
*`$1` is a file name for the holding the expected result (scenarios)
80
-
*`$2` is a command execution for evaluation (testers)
81
-
82
-
The _match_ function will match the content of the file to the output of the command.
83
-
Typically, test cases in [integration/run_its.sh](integration/run_its.sh) will invoke the _match_ function with
84
-
a scenario from the [integration/scenarios](integration/scenarios) and a _node_ command invoking one of the _node_
85
-
scripts in [integration/testers](integration/testers).<br/>
86
-
87
-
We have 3 _testers_:
88
-
*[integration/testers/cli](integration/testers/cli) is a _package.json_ used for installing the _ESM module_.
89
-
Invoking the CLI Script is done against the _@trustify-da/trustify-da-javascript-client/dist/src/cli.js_ in the tester's
90
-
_node_modules_.
91
-
*[integration/testers/javascript](integration/testers/javascript) is a _javascript_ script invoking the _ESM module_.
92
-
*[integration/testers/typescript](integration/testers/typescript) is a _typescript_ script invoking the _ESM module_.
93
-
94
-
Run integration tests from the project's root:
95
-
96
-
> Don't forget to run `npm run compile` before running the integration tests.
97
-
98
-
```shell
99
-
(cd integration/ && bash ./run_its.sh)
100
-
```
101
-
102
-
Integration tests are executed against a mocked _Backend_ server.<br/>
103
-
If you need to run against the actual _Backend_ server, use the _TRUSTIFY_DA_ITS_USE_REAL_API_ environment variable:
0 commit comments