-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Started working for scenario tests for CuberitePluginChecker #109
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7279719
Started working for scenario tests for CuberitePluginChecker
NiLSPACE 8e99efb
Merge branch 'master' into Tests
NiLSPACE 32b735b
Fixed style
NiLSPACE ce775eb
Use CuberitePluginChecker in Github CI
NiLSPACE 33b56a0
Fixed issues with CuberitePluginChecker
NiLSPACE f904859
redirectPluginFiles output now defaults to scenario path
NiLSPACE b2f18a3
Renamed ignore flag in CI
NiLSPACE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
-- selection.lua | ||
|
||
-- These files are used with the CuberitePluginChecker script. | ||
-- This test tests the selection and actions on the selection. | ||
-- Usage: lua CuberitePluginChecker.lua -a AutoAPI -e ManualAPI.lua -i APIImpl/All.lua -p <WorldEditPath> -s <WorldEditPath>/selection.lua -f ^E_ | ||
|
||
|
||
|
||
|
||
|
||
scenario | ||
{ | ||
redirectPluginFiles | ||
{ | ||
-- Redirect the default config file. | ||
-- This disables the update check and also works around a bug in the simulator which causes block/item enums to not be in the global environment. | ||
["config.cfg"] = "test.config.cfg" | ||
}, | ||
world | ||
{ | ||
name = "world" | ||
}, | ||
initializePlugin(), | ||
connectPlayer | ||
{ | ||
name = "TestUser" | ||
}, | ||
playerCommand | ||
{ | ||
playerName = "TestUser", | ||
command = "//pos1", | ||
}, | ||
playerCommand | ||
{ | ||
playerName = "TestUser", | ||
command = "//pos2", | ||
}, | ||
playerCommand | ||
{ | ||
playerName = "TestUser", | ||
command = "//set 0", | ||
}, | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
WandItem = 271, | ||
Limits = | ||
{ | ||
ButcherRadius = -1, | ||
MaxBrushRadius = 5, | ||
DisallowedBlocks = {6, 7, 14, 15, 16, 26, 27, 28, 29, 39, 31, 32, 33, 34, 36, 37, 38, 39, 40, 46, 50, 51, 56, 59, 69, 73, 74, 75, 76, 77, 81, 83}, | ||
}, | ||
|
||
Defaults = | ||
{ | ||
ButcherRadius = 20, | ||
}, | ||
|
||
NavigationWand = | ||
{ | ||
Item = 345, | ||
MaxDistance = 120, | ||
TeleportNoHit = true, | ||
}, | ||
|
||
Scripting = | ||
{ | ||
-- If true it logs an error when a craftscript failed | ||
Debug = false, | ||
|
||
-- The amount of seconds that a script may be active. Any longer and the script will be aborted. | ||
-- If negative the time a script can run is unlimited. | ||
MaxExecutionTime = 5, | ||
}, | ||
|
||
Schematics = | ||
{ | ||
OverrideExistingFiles = true, | ||
}, | ||
|
||
Updates = | ||
{ | ||
CheckForUpdates = false, | ||
NumAttempts = 3, | ||
ShowMessageWhenUpToDate = true, | ||
DownloadNewerVersion = true, | ||
}, | ||
|
||
Storage = | ||
{ | ||
-- If set to true the selection of a player will be remembered once he leaves. | ||
RememberPlayerSelection = true, | ||
|
||
-- If WorldEdit needs to change a format in the database the database will be backuped first before changing. | ||
-- This doesn't mean when adding or removing data the database will be backed up. Only when the used database is outdated. | ||
BackupDatabaseWhenUpdating = true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we should make an exception in the Checker to allow this one specific case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, probably, but I was planning on removing it here anyway. I find it to be quite ugly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exception added. But yes, this kind of code is ugly, especially all-caps variable names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should cWorld also be an exception? Technically they can be stored right? Since we do have the cRoot:GetWorld method.