Skip to content

Commit 927e18b

Browse files
authored
Use .rbxl for tests (roblox-ts#2521)
1 parent 946eb69 commit 927e18b

File tree

4 files changed

+17326
-9
lines changed

4 files changed

+17326
-9
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ out
99
.vscode/launch.json
1010
.vscode/settings.json
1111

12-
/tests/*.rbxlx
13-
/tests/*.rbxlx.lock
12+
/tests/*.rbxl
13+
/tests/*.rbxl.lock
1414
/tests/include

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ It is not necessary to run the "devlink" script again.
5353
Effectively, this folder is a tiny **roblox-ts** game. Testing process is as follows:
5454

5555
1. Compile tests project to create a `/tests/out` folder containing `.lua` files
56-
2. Use `rojo build` to create `/tests/test.rbxlx`
57-
3. Use `run-in-roblox` to open studio and execute the tests
56+
2. Use `rojo build` to create `/tests/test.rbxl`
57+
3. Use `lune` to execute the tests
5858

5959
You can run this process yourself if you have Roblox Studio and [foreman](https://github.com/Roblox/foreman) installed. (Only works on Windows and MacOS)
6060

6161
```sh
62-
# install rojo + run-in-roblox
62+
# install rojo + lune
6363
foreman install
64-
# Compile tests, build .rbxlx, run with run-in-roblox
64+
# Compile tests, build .rbxl, run with lune
6565
npm test
6666
```

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"update-test-types": "cd tests && npm install github:roblox-ts/compiler-types @rbxts/types@latest && npm install",
2020
"test": "npm run build && npm run test-compile && npm run test-rojo && npm run test-run",
2121
"test-compile": "nyc mocha --timeout 0 --recursive out/CLI/test.js",
22-
"test-rojo": "rojo build tests -o ./tests/test.rbxlx",
23-
"test-run": "lune ./tests/runLuneTests.lua ./tests/test.rbxlx",
22+
"test-rojo": "rojo build tests -o ./tests/test.rbxl",
23+
"test-run": "lune ./tests/runLuneTests.lua ./tests/test.rbxl",
2424
"test-roblox": "npm run build && npm run test-compile && npm run test-rojo && npm run run-in-roblox",
25-
"run-in-roblox": "run-in-roblox --place ./tests/test.rbxlx --script ./tests/out/main.server.lua"
25+
"run-in-roblox": "run-in-roblox --place ./tests/test.rbxl --script ./tests/out/main.server.lua"
2626
},
2727
"nyc": {
2828
"all": true,

0 commit comments

Comments
 (0)