FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
plugdata/Tests/Tests.cpp at develop · plugdata-team/plugdata · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
plugdata-team
/
plugdata
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
103
Star
2.3k
Code
Issues
237
Pull requests
2
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
plugdata
/
Tests
/
Tests.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
96 lines (93 loc) · 3.91 KB
Breadcrumbs
plugdata
/
Tests
/
Tests.cpp
Copy path
File metadata and controls
96 lines (93 loc) · 3.91 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
define
PLUGDATA_TEST_TRANSLATION_UNIT
1
#
include
"
Tests.h
"
#
include
"
ObjectFuzzTest.h
"
#
include
"
HelpfileFuzzTest.h
"
#
include
"
HelpfileErrorTest.h
"
#
include
"
SaveCloseRaceTest.h
"
#
include
"
AbstractionReloadRaceTest.h
"
#
include
"
DanglingBindingTest.h
"
#
include
"
UIClickThroughTest.h
"
#
include
"
EditActionStressTest.h
"
#
include
"
TabSplitStressTest.h
"
#
include
"
PatchTextFuzzTest.h
"
#
include
"
DecompressTest.h
"
#
include
"
MarkupDisplayTest.h
"
#
include
"
StateRoundTripTest.h
"
#
include
"
DialogCoverageTest.h
"
#
include
"
ObjectInteractionTest.h
"
#
include
"
InspectorTest.h
"
#
include
"
TextEditorDialogTest.h
"
#
include
"
ExportProgressTest.h
"
#
include
"
SmallUITest.h
"
#
include
"
OnboardingTest.h
"
#
include
"
CommandInputTest.h
"
#
include
"
EditWorkflowTest.h
"
#
include
"
LuaObjectTest.h
"
#
include
"
StoreDekenTest.h
"
#
include
"
DraggableNumberTest.h
"
#
include
"
CoverageSweepTest.h
"
void
runTests
(PluginEditor* editor)
{
//
Need to execute tests on a separate thread, since our tests will block until the message thread has processed every test case
std::thread
testRunnerThread
([editor] {
SaveCloseRaceTest
saveCloseRaceTest
(editor);
AbstractionReloadRaceTest
abstractionReloadRaceTest
(editor);
DanglingBindingTest
danglingBindingTest
(editor);
UIClickThroughTest
uiClickThroughTest
(editor);
EditActionStressTest
editActionStressTest
(editor);
TabSplitStressTest
tabSplitStressTest
(editor);
PatchTextFuzzTest
patchTextFuzzTest
(editor);
DecompressTest
decompressTest
(editor);
MarkupDisplayTest
markupDisplayTest
(editor);
StateRoundTripTest
stateRoundTripTest
(editor);
DialogCoverageTest
dialogCoverageTest
(editor);
ObjectInteractionTest
objectInteractionTest
(editor);
InspectorTest
inspectorTest
(editor);
TextEditorDialogTest
textEditorDialogTest
(editor);
ExportProgressTest
exportProgressTest
(editor);
SmallUITest
smallUITest
(editor);
OnboardingTest
onboardingTest
(editor);
CommandInputTest
commandInputTest
(editor);
EditWorkflowTest
editWorkflowTest
(editor);
LuaObjectTest
luaObjectTest
(editor);
StoreDekenTest
storeDekenTest
(editor);
DraggableNumberTest
draggableNumberTest
(editor);
CoverageSweepTest
coverageSweepTest
(editor);
ObjectFuzzTest
objectFuzzer
(editor);
HelpFileFuzzTest
helpfileFuzzer
(editor);
HelpFileErrorTest
helpfileErrorTest
(editor);
UnitTestRunner runner;
runner.
runTests
({ &saveCloseRaceTest,
&abstractionReloadRaceTest,
&danglingBindingTest,
&decompressTest,
&markupDisplayTest,
&stateRoundTripTest,
&dialogCoverageTest,
&objectInteractionTest,
&inspectorTest,
&textEditorDialogTest,
&exportProgressTest,
&smallUITest,
&onboardingTest,
&commandInputTest,
&editWorkflowTest,
&luaObjectTest,
&storeDekenTest,
&draggableNumberTest,
&uiClickThroughTest,
&editActionStressTest,
&tabSplitStressTest,
&helpfileFuzzer,
&objectFuzzer,
&helpfileErrorTest },
23
);
//
The suite has finished (whether tests passed or failed). Quit the app
//
so the process exits instead of idling forever - the CI harness waits
//
for the process to terminate and parses stdout for pass/fail.
MessageManager::callAsync
([] {
if
(
auto
* app =
JUCEApplicationBase::getInstance
())
app->
quit
();
});
});
testRunnerThread.
detach
();
}
Back
|
FazBrowse Home
|
New Git URL