Skip to content
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

Integrate lua unit testing on windows and ubuntu successfully #15

Merged
merged 234 commits into from
Dec 23, 2021
Merged
Changes from 1 commit
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
cafa873
Let's see how windows commands fail on GitHub
Ismoh Dec 19, 2021
13977fc
Add ubuntu command
Ismoh Dec 19, 2021
64510fa
Dont mess up values by trying to use mocks
Ismoh Dec 19, 2021
fc39547
Tests are awesome!
Ismoh Dec 19, 2021
389fe6d
Tests are awesome! 2
Ismoh Dec 19, 2021
9dce544
Tests are awesome! 3
Ismoh Dec 19, 2021
5a3c949
Tests are awesome! 4
Ismoh Dec 19, 2021
95bcdf0
Mocking Noita Api global functions
Ismoh Dec 19, 2021
9fef820
Tests are awesome! 5
Ismoh Dec 19, 2021
53d96dd
Tests are awesome! 6
Ismoh Dec 19, 2021
7b3b168
Tests are awesome! 7
Ismoh Dec 19, 2021
8e94161
Tests are awesome! 8
Ismoh Dec 19, 2021
6e2c069
Tests are awesome! 9
Ismoh Dec 19, 2021
318dfb5
Tests are awesome! 10
Ismoh Dec 19, 2021
517416d
Tests are awesome! 11
Ismoh Dec 19, 2021
6061e88
Tests are awesome! 12
Ismoh Dec 19, 2021
b52f1b7
Tests are awesome! 13
Ismoh Dec 19, 2021
e2088f9
Tests are awesome! 14
Ismoh Dec 19, 2021
7aafd2c
Tests are awesome! 15
Ismoh Dec 19, 2021
e686fff
Tests are awesome! 16
Ismoh Dec 19, 2021
0586a39
Improving GitHub workflow
Ismoh Dec 19, 2021
4608e28
Tests are awesome! 17
Ismoh Dec 19, 2021
8b1cad0
Tests are awesome! 18
Ismoh Dec 19, 2021
f9b2ad2
Tests are awesome! 19
Ismoh Dec 19, 2021
1ea232a
Enable tests in file_util_test.lua #12
Ismoh Dec 20, 2021
4b1f09a
Tests are awesome! 20
Ismoh Dec 20, 2021
cd8af07
Tests are awesome! 20
Ismoh Dec 20, 2021
112ccec
Tests are awesome! 20
Ismoh Dec 20, 2021
90ffd50
Tests are awesome! 21
Ismoh Dec 20, 2021
4d107d3
Tests are awesome! 22
Ismoh Dec 20, 2021
7673b0c
Tests are awesome! 23
Ismoh Dec 20, 2021
e8dccf2
Tests are awesome! 24
Ismoh Dec 20, 2021
fb2f79f
Tests are awesome! 25
Ismoh Dec 20, 2021
325d124
Tests are awesome! 26
Ismoh Dec 20, 2021
6d38f3a
Tests are awesome! 27
Ismoh Dec 20, 2021
71012c3
windows and linux badges
Ismoh Dec 20, 2021
64fb36a
Trying to add windows lua testing. See #14
Ismoh Dec 20, 2021
64eecdb
Trying to add windows lua testing. See #14 2
Ismoh Dec 20, 2021
b891326
Trying to add windows lua testing. See #14 3
Ismoh Dec 20, 2021
8383d7c
Trying to add windows lua testing. See #14 4
Ismoh Dec 20, 2021
986e7ce
Trying to add windows lua testing. See #14 5
Ismoh Dec 20, 2021
358ed37
Trying to add windows lua testing. See #14 6
Ismoh Dec 20, 2021
65f1466
Trying to add windows lua testing. See #14 7
Ismoh Dec 20, 2021
ab3271f
Trying to add windows lua testing. See #14 (
Ismoh Dec 20, 2021
a7a7422
Trying to add windows lua testing. See #14 9
Ismoh Dec 20, 2021
ea0f29e
Trying to add windows lua testing. See #14 10
Ismoh Dec 20, 2021
271e4a2
Trying to add windows lua testing. See #14 11
Ismoh Dec 20, 2021
1a12b50
Trying to add windows lua testing. See #14 12
Ismoh Dec 20, 2021
da01dd8
Trying to add windows lua testing. See #14 13
Ismoh Dec 20, 2021
17d57c6
Trying to add windows lua testing. See #14 14
Ismoh Dec 20, 2021
3dca2de
Trying to add windows lua testing. See #14 15
Ismoh Dec 20, 2021
70102ab
Trying to add windows lua testing. See #14 16
Ismoh Dec 20, 2021
9c82630
Trying to add windows lua testing. See #14 17
Ismoh Dec 20, 2021
c555a16
Trying to add windows lua testing. See #14 18
Ismoh Dec 20, 2021
fa98aae
Trying to add windows lua testing. See #14 19
Ismoh Dec 20, 2021
1494cf3
Trying to add windows lua testing. See #14 20
Ismoh Dec 20, 2021
88e3c5d
Trying to add windows lua testing. See #14 21
Ismoh Dec 20, 2021
d9da241
Trying to add windows lua testing. See #14 22
Ismoh Dec 20, 2021
76abd2e
Trying to add windows lua testing. See #14 23
Ismoh Dec 20, 2021
0d19745
Trying to add windows lua testing. See #14 24
Ismoh Dec 20, 2021
b69344c
Trying to add windows lua testing. See #14 25
Ismoh Dec 20, 2021
6cfbf90
Trying to add windows lua testing. See #14 26
Ismoh Dec 20, 2021
9b65a05
Trying to add windows lua testing. See #14 27
Ismoh Dec 20, 2021
cc94d99
Trying to add windows lua testing. See #14 28
Ismoh Dec 20, 2021
d285272
Trying to add windows lua testing. See #14 29
Ismoh Dec 20, 2021
a8e8128
Trying to add windows lua testing. See #14 30
Ismoh Dec 20, 2021
df3d214
Trying to add windows lua testing. See #14 31
Ismoh Dec 20, 2021
f7911f4
Trying to add windows lua testing. See #14 32
Ismoh Dec 20, 2021
172038e
Trying to add windows lua testing. See #14 33
Ismoh Dec 20, 2021
3e85c2c
Trying to add windows lua testing. See #14 34
Ismoh Dec 20, 2021
423030e
Trying to add windows lua testing. See #14 35
Ismoh Dec 20, 2021
acc7765
Split Ubuntu and Windows testing in workflows
Ismoh Dec 20, 2021
a3a3911
Split Ubuntu and Windows testing in workflows 2
Ismoh Dec 20, 2021
488a3c5
Trying to add windows lua testing. See #14 36
Ismoh Dec 20, 2021
3986614
Trying to add windows lua testing. See #14 37
Ismoh Dec 20, 2021
e550899
Trying to add windows lua testing. See #14 38
Ismoh Dec 20, 2021
4fc74ca
Get rid of linux commands
Ismoh Dec 20, 2021
21c0fce
Typo on Smartphone arrgh
Ismoh Dec 20, 2021
047f10d
Update windows-latest-lua-unit-testing.yml
Ismoh Dec 20, 2021
1e3dac6
Unit testing done for now
Ismoh Dec 21, 2021
9e0548e
Merge branch 'unit-tests' of https://github.com/Ismoh/NoitaMP into un…
Ismoh Dec 21, 2021
4f235e6
Powershell fun
Ismoh Dec 21, 2021
3d5585b
Powershell fun 2
Ismoh Dec 21, 2021
f4000f2
Powershell fun 3
Ismoh Dec 21, 2021
732f7ee
Powershell fun 4
Ismoh Dec 21, 2021
263dfec
Powershell fun 5
Ismoh Dec 21, 2021
f5612f5
Install luarocks 3.8.0 with Powershell
Ismoh Dec 21, 2021
5b47a57
Install luarocks 3.8.0 with Powershell 2
Ismoh Dec 21, 2021
5372a1c
Install luarocks 3.8.0 with Powershell 3
Ismoh Dec 21, 2021
bba809c
Install luarocks 3.8.0 with Powershell 4
Ismoh Dec 21, 2021
6f69ff1
Install luarocks 3.8.0 with Powershell 5
Ismoh Dec 21, 2021
dbd9693
Install luarocks 3.8.0 with Powershell 6
Ismoh Dec 21, 2021
03cee31
Install luarocks 3.8.0 with Powershell 7
Ismoh Dec 21, 2021
1853b17
Install luarocks 3.8.0 with Powershell 8
Ismoh Dec 21, 2021
b51a6c7
Install luarocks 3.8.0 with Powershell 9
Ismoh Dec 21, 2021
613ac60
Install luarocks 3.8.0 with Powershell 10
Ismoh Dec 21, 2021
2d0604f
Install luarocks 3.8.0 with Powershell 11
Ismoh Dec 21, 2021
5622fe9
Install luarocks 3.8.0 with Powershell 12
Ismoh Dec 21, 2021
3186428
Install luarocks 3.8.0 with Powershell 13
Ismoh Dec 21, 2021
fb86271
Install luarocks 3.8.0 with Powershell 14
Ismoh Dec 21, 2021
fd3886b
Install luarocks 3.8.0 with Powershell 15
Ismoh Dec 21, 2021
9682c1c
Install luarocks 3.8.0 with Powershell 16
Ismoh Dec 21, 2021
e04e8ab
Install luarocks 3.8.0 with Powershell 17
Ismoh Dec 21, 2021
55c02ba
Install luarocks 3.8.0 with Powershell 18
Ismoh Dec 21, 2021
69d34f4
Install luarocks 3.8.0 with Powershell 19
Ismoh Dec 21, 2021
a630d44
Install luarocks 3.8.0 with Powershell 20
Ismoh Dec 21, 2021
52686c1
Install luarocks 3.8.0 with Powershell 21
Ismoh Dec 21, 2021
7128c01
Install luarocks 3.8.0 with Powershell 22
Ismoh Dec 21, 2021
6f4968b
Install luarocks 3.8.0 with Powershell 23
Ismoh Dec 22, 2021
55bfc2c
Install luarocks 3.8.0 with Powershell 24
Ismoh Dec 22, 2021
64fe3c6
Install luarocks 3.8.0 with Powershell 25
Ismoh Dec 22, 2021
f49d74e
Install luarocks 3.8.0 with Powershell 26
Ismoh Dec 22, 2021
5285399
Install luarocks 3.8.0 with Powershell 27
Ismoh Dec 22, 2021
a321b74
Install luarocks 3.8.0 with Powershell 28
Ismoh Dec 22, 2021
e149789
Install luarocks 3.8.0 with Powershell 29
Ismoh Dec 22, 2021
f27c5ea
Install luarocks 3.8.0 with Powershell 30
Ismoh Dec 22, 2021
a42956f
Install luarocks 3.8.0 with Powershell 31
Ismoh Dec 22, 2021
f2eb2db
Install luarocks 3.8.0 with Powershell 32
Ismoh Dec 22, 2021
da4d63e
Install luarocks 3.8.0 with Powershell 33
Ismoh Dec 22, 2021
795fea9
Install luarocks 3.8.0 with Powershell 34
Ismoh Dec 22, 2021
b8e249d
Install luarocks 3.8.0 with Powershell 35
Ismoh Dec 22, 2021
6c02c7b
Install luarocks 3.8.0 with Powershell 36
Ismoh Dec 22, 2021
d67beff
Install luarocks 3.8.0 with Powershell 37
Ismoh Dec 22, 2021
8f81108
Install luarocks 3.8.0 with Powershell 38
Ismoh Dec 22, 2021
60fd425
Install luarocks 3.8.0 with Powershell 39
Ismoh Dec 22, 2021
a5f8381
Install luarocks 3.8.0 with Powershell 40
Ismoh Dec 22, 2021
5aa0893
Install luarocks 3.8.0 with Powershell 41
Ismoh Dec 22, 2021
ab0af3e
Install luarocks 3.8.0 with Powershell 42
Ismoh Dec 22, 2021
2b7d15f
Install luarocks 3.8.0 with Powershell 43
Ismoh Dec 22, 2021
05fb148
Install luarocks 3.8.0 with Powershell 44
Ismoh Dec 22, 2021
e14424c
Install luarocks 3.8.0 with Powershell 45
Ismoh Dec 22, 2021
4502e88
Install luarocks 3.8.0 with Powershell 46
Ismoh Dec 22, 2021
35a7bfa
Install luarocks 3.8.0 with Powershell 47
Ismoh Dec 22, 2021
9588511
Install luarocks 3.8.0 with Powershell 48
Ismoh Dec 22, 2021
be82ef6
Install luarocks 3.8.0 with Powershell 49
Ismoh Dec 22, 2021
7a52af2
Install luarocks 3.8.0 with Powershell 50
Ismoh Dec 22, 2021
8fdf9ec
Install luarocks 3.8.0 with Powershell 51
Ismoh Dec 22, 2021
b8b0a89
Install luarocks 3.8.0 with Powershell 52
Ismoh Dec 22, 2021
371bc9b
Install luarocks 3.8.0 with Powershell 53
Ismoh Dec 22, 2021
31933bc
Install luarocks 3.8.0 with Powershell 54
Ismoh Dec 22, 2021
157bd8d
Install luarocks 3.8.0 with Powershell 55
Ismoh Dec 22, 2021
de1ce9f
Install luarocks 3.8.0 with Powershell 56
Ismoh Dec 22, 2021
c3ff777
Install luarocks 3.8.0 with Powershell 57
Ismoh Dec 22, 2021
e93f31a
Install luarocks 3.8.0 with Powershell 58
Ismoh Dec 22, 2021
5878b69
Install luarocks 3.8.0 with Powershell 59
Ismoh Dec 22, 2021
3c3be61
Added module loading handler to get rid of package.path and package.c…
Ismoh Dec 22, 2021
a506ec5
Added module loading handler to get rid of package.path and package.c…
Ismoh Dec 22, 2021
d5c0dca
Check if package.path is fixed
Ismoh Dec 22, 2021
ddb14ef
Check if package.path is fixed 2
Ismoh Dec 22, 2021
6c3f499
Check if package.path is fixed 3
Ismoh Dec 22, 2021
6142207
Check if package.path is fixed 4
Ismoh Dec 22, 2021
29e43a2
Check if package.path is fixed 5
Ismoh Dec 22, 2021
8aa6099
Check if package.path is fixed 6
Ismoh Dec 22, 2021
0567e74
Check if package.path is fixed 7
Ismoh Dec 22, 2021
d46b8ea
Check if package.path is fixed 8
Ismoh Dec 22, 2021
618f94d
Check if package.path is fixed 9
Ismoh Dec 22, 2021
70a6bdf
Check if package.path is fixed 10
Ismoh Dec 22, 2021
1fe58be
Check if package.path is fixed 11
Ismoh Dec 22, 2021
33528ee
Check if package.path is fixed 12
Ismoh Dec 22, 2021
995779a
Check if package.path is fixed 13
Ismoh Dec 22, 2021
e01ee9a
Check if package.path is fixed 14
Ismoh Dec 22, 2021
39feb6b
Check if package.path is fixed 15
Ismoh Dec 22, 2021
ed4e66f
Check if package.path is fixed 16
Ismoh Dec 22, 2021
8c0eac4
Check if package.path is fixed 17
Ismoh Dec 22, 2021
2327d5f
Check if package.path is fixed 18
Ismoh Dec 22, 2021
40add8e
Check if package.path is fixed 19
Ismoh Dec 22, 2021
e3511f1
Check if package.path is fixed 20
Ismoh Dec 22, 2021
f226697
Check if package.path is fixed 21
Ismoh Dec 22, 2021
dafa201
Check if package.path is fixed 22
Ismoh Dec 22, 2021
5551ff3
Check if package.path is fixed 23
Ismoh Dec 22, 2021
5b94899
Check if package.path is fixed 24
Ismoh Dec 22, 2021
6890b6f
Check if package.path is fixed 25
Ismoh Dec 22, 2021
a301d63
Check if package.path is fixed 26
Ismoh Dec 22, 2021
451cf4a
Check if package.path is fixed 27
Ismoh Dec 22, 2021
61fb963
Check if package.path is fixed 28
Ismoh Dec 22, 2021
c867e21
Check if package.path is fixed 29
Ismoh Dec 22, 2021
4ef4ae2
Check if package.path is fixed 30
Ismoh Dec 22, 2021
75bede7
Check if package.path is fixed 31
Ismoh Dec 22, 2021
87fd17f
Check if package.path is fixed 32
Ismoh Dec 22, 2021
a2567c4
Check if package.path is fixed 33
Ismoh Dec 22, 2021
d2c3d46
Check if package.path is fixed 34
Ismoh Dec 22, 2021
5f79263
Check if package.path is fixed 35
Ismoh Dec 22, 2021
764e897
Check if package.path is fixed 36
Ismoh Dec 22, 2021
019fe57
Check if package.path is fixed 37
Ismoh Dec 22, 2021
6fa8fa4
Check if package.path is fixed 38
Ismoh Dec 22, 2021
3c717f8
Check if package.path is fixed 39
Ismoh Dec 22, 2021
d440935
Check if package.path is fixed 40
Ismoh Dec 22, 2021
ca8618f
Check if package.path is fixed 41
Ismoh Dec 22, 2021
18c2f15
Check if package.path is fixed 42
Ismoh Dec 22, 2021
e92e880
Install luarocks
Ismoh Dec 23, 2021
5f783fb
Install luarocks 2
Ismoh Dec 23, 2021
791682e
Install luarocks 2 - fixing path separator
Ismoh Dec 23, 2021
3a3408f
Install luarocks 3 - fixing path separator
Ismoh Dec 23, 2021
19c903e
Install luarocks 4 - fixing path separator
Ismoh Dec 23, 2021
75c44e5
Fixing unit tests
Ismoh Dec 23, 2021
7e8f0f3
Fixing unit tests 2
Ismoh Dec 23, 2021
af5205a
Fixing unit tests 3
Ismoh Dec 23, 2021
1d5e81f
Fixing unit tests 4
Ismoh Dec 23, 2021
8c28694
Fixing unit tests 5
Ismoh Dec 23, 2021
0584b79
Fixing unit tests 6
Ismoh Dec 23, 2021
e0d2eab
Fixing unit tests 7
Ismoh Dec 23, 2021
729f646
Fixing unit tests 8
Ismoh Dec 23, 2021
860475c
Fixing unit tests 9
Ismoh Dec 23, 2021
b29f83e
Fixing unit tests 10
Ismoh Dec 23, 2021
7bf2aaf
Fixing unit tests 11
Ismoh Dec 23, 2021
a3af4a7
Fixing unit tests 12
Ismoh Dec 23, 2021
5d81e46
Fixing unit tests 13
Ismoh Dec 23, 2021
55c22cc
Fixing unit tests 14
Ismoh Dec 23, 2021
54049cd
Install luarocks 5
Ismoh Dec 23, 2021
c96e205
Install luarocks 6
Ismoh Dec 23, 2021
03e5533
Install luarocks 7
Ismoh Dec 23, 2021
bd9069b
Install luarocks 8
Ismoh Dec 23, 2021
48d76b4
Install luarocks 9
Ismoh Dec 23, 2021
d531154
Install luarocks 10
Ismoh Dec 23, 2021
be9191c
Install luarocks 11
Ismoh Dec 23, 2021
9ab0b88
Install luarocks 12
Ismoh Dec 23, 2021
e5799bf
Install luarocks 13
Ismoh Dec 23, 2021
303dc77
Install luarocks 14
Ismoh Dec 23, 2021
d4bd751
Install luarocks 15
Ismoh Dec 23, 2021
67f769d
Install luarocks 16
Ismoh Dec 23, 2021
152130f
Install luarocks 17
Ismoh Dec 23, 2021
2c21339
Install luarocks 18
Ismoh Dec 23, 2021
4c8de3a
Install luarocks 19
Ismoh Dec 23, 2021
3f36941
Install luarocks 20
Ismoh Dec 23, 2021
7653a16
Install luarocks 21
Ismoh Dec 23, 2021
3186e3e
Install luarocks 22
Ismoh Dec 23, 2021
d2e2df9
Install luarocks 23
Ismoh Dec 23, 2021
67ea528
Install luarocks 24
Ismoh Dec 23, 2021
f24a0cb
Install luarocks 25
Ismoh Dec 23, 2021
56a0441
Install luarocks 26
Ismoh Dec 23, 2021
53174ea
Install luarocks 27
Ismoh Dec 23, 2021
b1aa3fa
Install luarocks 28
Ismoh Dec 23, 2021
e9dfe97
Fixing ubuntu workflow
Ismoh Dec 23, 2021
a0bfd0b
Fixing ubuntu workflow 1
Ismoh Dec 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tests are awesome! 5
  • Loading branch information
Ismoh committed Dec 19, 2021
commit 9fef8206e881ea72e290716ce8a7574ef47c51f4
6 changes: 3 additions & 3 deletions .testing/tests/file_util_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ TestFileUtil = {}

function TestFileUtil:setUp()
print("\n")
-- Mock Noita Api functions
-- Mock Noita Api global functions
_G.DebugGetIsDevBuild = function ()
return false
end
end

function TestFileUtil:testPlatformValues()
local path_separator = package.config:sub(1,1)
local windows = string.find(path_separator, '\\') or false
local unix = string.find(path_separator, '/') or false
local windows = string.find(path_separator, '\\') or 0
local unix = string.find(path_separator, '/') or 0

lu.assertEquals(_G.path_separator, path_separator)
lu.assertEquals(_G.is_windows, windows)
Expand Down