Skip to content

Commit 2f3cda0

Browse files
Deps.js intergration for unit tests. (#179)
* Added deps.js integration for compilerles testing. * Separated Blockly block tests and fixed broken units tests. * Removed @async tag because JSDoc automatically detects asynchronous functions. * Removed babel and browserify package.
1 parent cb90c36 commit 2f3cda0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1240
-1392
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
build/externs
22
coverage
3+
deps.js
34
dist
45
doc
56
genfiles

build/cwc/frameworks.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ closureBuilder.build({
3434
'src/frameworks/internal/messenger/*.js',
3535
'src/protocol/robots/lego/ev3/*.js',
3636
'src/utils/stack_queue.js',
37+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
3738
]),
3839
out: 'genfiles/core/frameworks/internal/ev3_framework.js',
3940
});
@@ -52,6 +53,7 @@ closureBuilder.build({
5253
'src/frameworks/internal/messenger/*.js',
5354
'src/protocol/robots/lego/wedo2/*.js',
5455
'src/utils/stack_queue.js',
56+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
5557
]),
5658
out: 'genfiles/core/frameworks/internal/wedo2_framework.js',
5759
});
@@ -106,6 +108,7 @@ closureBuilder.build({
106108
deps: glob([
107109
'src/frameworks/internal/messenger/*.js',
108110
'src/utils/stack_queue.js',
111+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
109112
]),
110113
out: 'genfiles/core/frameworks/internal/mbot_framework.js',
111114
});
@@ -123,6 +126,7 @@ closureBuilder.build({
123126
deps: glob([
124127
'src/frameworks/internal/messenger/*.js',
125128
'src/utils/stack_queue.js',
129+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
126130
]),
127131
out: 'genfiles/core/frameworks/internal/mbot_ranger_framework.js',
128132
});
@@ -136,7 +140,9 @@ closureBuilder.build({
136140
compress: true,
137141
srcs: glob([
138142
'src/frameworks/internal/messenger/*.js',
139-
'src/utils/stack_queue.js',
143+
]),
144+
deps: glob([
145+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
140146
]),
141147
externs: [],
142148
out: 'genfiles/core/frameworks/internal/messenger_framework.js',
@@ -155,6 +161,7 @@ closureBuilder.build({
155161
deps: glob([
156162
'src/frameworks/internal/messenger/*.js',
157163
'src/utils/stack_queue.js',
164+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
158165
]),
159166
externs: [
160167
'build/externs/phaser.js',
@@ -175,6 +182,7 @@ closureBuilder.build({
175182
deps: glob([
176183
'src/frameworks/internal/messenger/*.js',
177184
'src/utils/stack_queue.js',
185+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
178186
]),
179187
out: 'genfiles/core/frameworks/internal/raspberry_pi_framework.js',
180188
});
@@ -195,6 +203,7 @@ closureBuilder.build({
195203
'src/utils/dialog/*',
196204
'src/utils/logger.js',
197205
'src/utils/stack_queue.js',
206+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
198207
]),
199208
out: 'genfiles/core/frameworks/internal/simple_framework.js',
200209
});
@@ -212,6 +221,7 @@ closureBuilder.build({
212221
deps: glob([
213222
'src/frameworks/internal/messenger/*.js',
214223
'src/utils/stack_queue.js',
224+
'third_party/coding-with-chrome-libraries/src/utils/stack/stack.js',
215225
]),
216226
out: 'genfiles/core/frameworks/internal/sphero_framework.js',
217227
});

build/test/unit_files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let glob = closureBuilder.globSupport();
2424
closureBuilder.build({
2525
name: 'Unit test - Soy files',
2626
srcs: glob([
27-
'src/renderer/renderer.soy',
27+
'src/**/*.soy',
2828
]),
2929
out: 'test/genfiles/soy',
3030
});

0 commit comments

Comments
 (0)