Skip to content

Commit cd874ac

Browse files
committed
feat: Nevermore cli command to run tests locally
1 parent c581f95 commit cd874ac

File tree

6 files changed

+290
-13
lines changed

6 files changed

+290
-13
lines changed

tests/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,5 @@ You will also need to update the target universe and place ids in `tests/cloud/p
6565

6666
Finally, execute the workflow from the root of the repository with: `act -W .github/workflows/run-tests.yml --secret-file .env --reuse`
6767

68-
### Locally with run-in-roblox
69-
Alternatively, if you don't have access to open cloud, you can build the test place and use `run-in-roblox` to run the tests locally.
70-
71-
```bash
72-
cp -r tests/test-place-template tests/bin && cd tests/bin
73-
npm i $(npx lerna ls --since origin/main --json | jq -r '.[].location' | tr '\n' ' ')
74-
npm i https://github.com/quentystudios/jest-lua.git
75-
npx lerna exec -- npm install --no-audit
76-
rojo build default.project.json -o testPlace.rbxl && run-in-roblox --place testPlace.rbxl --script ../cloud/run-tests.luau
77-
```
68+
### Locally with Nevermore CLI
69+
You can generate and run tests on Nevermore projects/packages locally with `nevermore test`.

tools/nevermore-cli/package-lock.json

Lines changed: 135 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/nevermore-cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"execa": "v5.1.1",
3030
"find-git-root": "^1.0.4",
3131
"inquirer": "^8.2.4",
32+
"node-fetch": "^3.3.2",
3233
"read-package-json": "^6.0.0",
3334
"typescript-memoize": "^1.1.1",
3435
"yargs": "^17.0.13"

tools/nevermore-cli/src/commands/install-package.ts renamed to tools/nevermore-cli/src/commands/install-package-command.ts

File renamed without changes.

0 commit comments

Comments
 (0)