apitestcenter 0.0.0-stage → 0.4.0

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.txt ADDED
@@ -0,0 +1,27 @@
1
+ APITestCenter — Terms of use
2
+ Copyright (c) 2026 Ratul Roy. All rights reserved.
3
+
4
+ 1. Free to use. You may install and use APITestCenter, free of charge, on any number of
5
+ computers, for personal or commercial work.
6
+
7
+ 2. Not for resale. You may not sell, rent, or redistribute APITestCenter, or offer it as a
8
+ hosted service, without written permission. Share the download link instead:
9
+ https://apitestcenter.com
10
+
11
+ 3. No modification. You may not modify, decompile, or reverse-engineer APITestCenter,
12
+ except where the law allows it or an open-source licence below grants it.
13
+
14
+ 4. Test responsibly. Only load-test systems you own or have permission to test. You are
15
+ responsible for the traffic you send.
16
+
17
+ 5. Your data. Your requests, results, and saved items stay on your computer. See
18
+ https://apitestcenter.com/privacy.html
19
+
20
+ 6. No warranty. APITestCenter is provided "as is", without warranty of any kind. To the
21
+ extent the law allows, the author is not liable for any damage arising from its use.
22
+
23
+ 7. Open-source parts. APITestCenter includes open-source software, including k6 (AGPL-3.0),
24
+ under their own licences. Those licences apply to those parts and are listed in
25
+ THIRD-PARTY-NOTICES.txt. Nothing in these terms limits your rights under them.
26
+
27
+ Questions: hello@apitestcenter.com
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # APITestCenter CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Run your [APITestCenter](https://apitestcenter.com) API checks and load tests from the command line and in CI. Fails the build when an API breaks or gets slower.
4
+
5
+ ```bash
6
+ # Send every request in a collection once and check each one
7
+ npx apitestcenter suite "Orders API" --env UAT --junit results.xml
8
+
9
+ # Load test a saved request with pass/fail targets
10
+ npx apitestcenter run "Orders API/List orders" --env UAT --p95 500 --errors 1 --junit results.xml
11
+ ```
12
+
13
+ Build and save your requests in the free [APITestCenter desktop app](https://apitestcenter.com/#download), then run them here. Exit code **0** means everything passed, **1** means something failed, **2** means it could not start.
14
+
15
+ ## In a pipeline
16
+
17
+ Keep the saved requests your pipeline needs in your repository — copy the app's `requests` folder and `environments.json` — and point the CLI at them with `--data`. Pass secrets from your CI's secret store with `--var`:
18
+
19
+ ```yaml
20
+ # GitHub Actions
21
+ - run: npx apitestcenter suite "Orders API" --data ./api-tests --env UAT --var token=${{ secrets.ORDERS_TOKEN }} --junit atc.xml
22
+ ```
23
+
24
+ Load tests use [k6](https://k6.io). If k6 is not installed, `run` downloads the official k6 release once and checks it against k6's published checksums (or set `K6_BIN`). `suite` does not need k6.
25
+
26
+ Full guide, with GitLab and Azure DevOps examples: **https://apitestcenter.com/docs/cli-and-ci.html**
27
+
28
+ ## Requirements
29
+
30
+ Node.js 20 or later. Windows, macOS, and Linux.
31
+
32
+ ## Licence
33
+
34
+ Free to use — see `LICENSE.txt`. Bundled open-source packages are listed in `dist/THIRD-PARTY-NOTICES.txt`.
@@ -0,0 +1,74 @@
1
+ APITestCenter CLI 0.4.0 — third-party notices
2
+
3
+ This package bundles the open-source packages below. k6 (AGPL-3.0) is not bundled: if it is
4
+ not installed, the CLI downloads the unmodified official release from github.com/grafana/k6.
5
+
6
+ ==============================================================================
7
+ undici 8.10.0 — MIT
8
+ https://undici.nodejs.org
9
+
10
+ MIT License
11
+
12
+ Copyright (c) Matteo Collina and Undici contributors
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+
32
+ ==============================================================================
33
+ yaml 2.9.1 — ISC
34
+ https://eemeli.org/yaml/
35
+
36
+ Copyright Eemeli Aro <eemeli@gmail.com>
37
+
38
+ Permission to use, copy, modify, and/or distribute this software for any purpose
39
+ with or without fee is hereby granted, provided that the above copyright notice
40
+ and this permission notice appear in all copies.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
44
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
46
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
47
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
48
+ THIS SOFTWARE.
49
+
50
+ ==============================================================================
51
+ zod 4.4.3 — MIT
52
+ https://zod.dev
53
+
54
+ MIT License
55
+
56
+ Copyright (c) 2025 Colin McDonnell
57
+
58
+ Permission is hereby granted, free of charge, to any person obtaining a copy
59
+ of this software and associated documentation files (the "Software"), to deal
60
+ in the Software without restriction, including without limitation the rights
61
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
62
+ copies of the Software, and to permit persons to whom the Software is
63
+ furnished to do so, subject to the following conditions:
64
+
65
+ The above copyright notice and this permission notice shall be included in all
66
+ copies or substantial portions of the Software.
67
+
68
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
69
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
70
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
71
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
72
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
73
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
74
+ SOFTWARE.