forked from rojo-rbx/rojo
Add script build tests
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "client_in_folder",
|
||||
"tree": {
|
||||
"$path": "folder"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
-- This is a Lua client script
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "module_in_folder",
|
||||
"tree": {
|
||||
"$path": "folder"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
-- This is a Lua module
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "server_in_folder",
|
||||
"tree": {
|
||||
"$path": "folder"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
-- This is a Lua server script
|
||||
@@ -21,7 +21,10 @@ macro_rules! gen_build_tests {
|
||||
}
|
||||
|
||||
gen_build_tests! {
|
||||
client_in_folder,
|
||||
gitkeep,
|
||||
module_in_folder,
|
||||
server_in_folder,
|
||||
txt_in_folder,
|
||||
}
|
||||
|
||||
|
||||
19
rojo-test/src/snapshots/build_test__client_in_folder.snap
Normal file
19
rojo-test/src/snapshots/build_test__client_in_folder.snap
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
created: "2019-08-09T01:29:47.650277200Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">client_in_folder</string>
|
||||
</Properties>
|
||||
<Item class="LocalScript" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">localScript</string>
|
||||
<string name="Source">-- This is a Lua client script</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
19
rojo-test/src/snapshots/build_test__module_in_folder.snap
Normal file
19
rojo-test/src/snapshots/build_test__module_in_folder.snap
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
created: "2019-08-09T01:27:22.597759700Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">module_in_folder</string>
|
||||
</Properties>
|
||||
<Item class="ModuleScript" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">aModule</string>
|
||||
<string name="Source">-- This is a Lua module</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
19
rojo-test/src/snapshots/build_test__server_in_folder.snap
Normal file
19
rojo-test/src/snapshots/build_test__server_in_folder.snap
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
created: "2019-08-09T01:29:48.071133300Z"
|
||||
creator: insta@0.10.0
|
||||
source: rojo-test/src/build_test.rs
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="Folder" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">server_in_folder</string>
|
||||
</Properties>
|
||||
<Item class="Script" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">serverScript</string>
|
||||
<string name="Source">-- This is a Lua server script</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
Reference in New Issue
Block a user