Skip to content

Commit fe7bece

Browse files
authored
Merge pull request #311 from Achal1607/initial-unit-tests-setup
Initial setup of unit tests
2 parents a1c5c5e + 1deb2db commit fe7bece

32 files changed

+5609
-157
lines changed

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
patches/nbjavac-not-required.diff
6868
patches/l10n-licence.diff
6969
patches/no-security-manager-allow.diff
70+
patches/dev-dependency-licenses.diff
7071
</string>
7172
<filterchain>
7273
<tokenfilter delimoutput=" ">

patches/dev-dependency-licenses.diff

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/assertion-error-1.1.0-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/assertion-error-1.1.0-license
2+
new file mode 100644
3+
index 0000000000..db92c5cb72
4+
--- /dev/null
5+
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/assertion-error-1.1.0-license
6+
@@ -0,0 +1,22 @@
7+
+(The MIT License)
8+
+
9+
+Copyright (c) 2013 Jake Luer <[email protected]> (http://qualiancy.com)
10+
+
11+
+Permission is hereby granted, free of charge, to any person obtaining a copy
12+
+of this software and associated documentation files (the "Software"), to deal
13+
+in the Software without restriction, including without limitation the rights
14+
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
+copies of the Software, and to permit persons to whom the Software is
16+
+furnished to do so, subject to the following conditions:
17+
+
18+
+The above copyright notice and this permission notice shall be included in
19+
+all copies or substantial portions of the Software.
20+
+
21+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27+
+THE SOFTWARE.
28+
+
29+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/eastasianwidth-0.2.0-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/eastasianwidth-0.2.0-license
30+
new file mode 100644
31+
index 0000000000..e8f4a01dd0
32+
--- /dev/null
33+
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/eastasianwidth-0.2.0-license
34+
@@ -0,0 +1,20 @@
35+
+Copyright komagata
36+
+
37+
+Permission is hereby granted, free of charge, to any person obtaining
38+
+a copy of this software and associated documentation files (the
39+
+"Software"), to deal in the Software without restriction, including
40+
+without limitation the rights to use, copy, modify, merge, publish,
41+
+distribute, sublicense, and/or sell copies of the Software, and to
42+
+permit persons to whom the Software is furnished to do so, subject to
43+
+the following conditions:
44+
+
45+
+The above copyright notice and this permission notice shall be
46+
+included in all copies or substantial portions of the Software.
47+
+
48+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49+
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50+
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
51+
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
52+
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
53+
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
54+
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/imurmurhash-0.1.4-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/imurmurhash-0.1.4-license
56+
new file mode 100644
57+
index 0000000000..14c83ad1c4
58+
--- /dev/null
59+
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/imurmurhash-0.1.4-license
60+
@@ -0,0 +1,19 @@
61+
+Copyright (c) 2013 Gary Court, Jens Taylor
62+
+
63+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
64+
+this software and associated documentation files (the "Software"), to deal in
65+
+the Software without restriction, including without limitation the rights to
66+
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
67+
+the Software, and to permit persons to whom the Software is furnished to do so,
68+
+subject to the following conditions:
69+
+
70+
+The above copyright notice and this permission notice shall be included in all
71+
+copies or substantial portions of the Software.
72+
+
73+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74+
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
75+
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
76+
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
77+
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
78+
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
79+
+
80+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/isarray-1.0.0-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/isarray-1.0.0-license
81+
new file mode 100644
82+
index 0000000000..ba21cfcb7d
83+
--- /dev/null
84+
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/isarray-1.0.0-license
85+
@@ -0,0 +1,22 @@
86+
+(MIT)
87+
+
88+
+Copyright (c) 2013 Julian Gruber &lt;[email protected]&gt;
89+
+
90+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
91+
+this software and associated documentation files (the "Software"), to deal in
92+
+the Software without restriction, including without limitation the rights to
93+
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
94+
+of the Software, and to permit persons to whom the Software is furnished to do
95+
+so, subject to the following conditions:
96+
+
97+
+The above copyright notice and this permission notice shall be included in all
98+
+copies or substantial portions of the Software.
99+
+
100+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101+
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
102+
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
103+
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
104+
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
105+
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
106+
+SOFTWARE.
107+
+
108+
diff --git a/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/jszip-3.10.1-license b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/jszip-3.10.1-license
109+
new file mode 100644
110+
index 0000000000..803b55c862
111+
--- /dev/null
112+
+++ b/nbbuild/misc/prepare-bundles/src/main/resources/org/netbeans/prepare/bundles/jszip-3.10.1-license
113+
@@ -0,0 +1,25 @@
114+
+JSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3
115+
+license.
116+
+
117+
+The MIT License
118+
+===============
119+
+
120+
+Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
121+
+
122+
+Permission is hereby granted, free of charge, to any person obtaining a copy
123+
+of this software and associated documentation files (the "Software"), to deal
124+
+in the Software without restriction, including without limitation the rights
125+
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
126+
+copies of the Software, and to permit persons to whom the Software is
127+
+furnished to do so, subject to the following conditions:
128+
+
129+
+The above copyright notice and this permission notice shall be included in
130+
+all copies or substantial portions of the Software.
131+
+
132+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
133+
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
134+
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
135+
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
136+
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
137+
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
138+
+THE SOFTWARE.

vscode/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ nbcode
22
node_modules
33
out
44
nbproject
5-
.vscode-test/
5+
.vscode-test/
6+
.nyc_output
7+
coverage/

vscode/.nycrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": "@istanbuljs/nyc-config-typescript",
3+
"reporter": [
4+
"text",
5+
"html",
6+
"text-summary",
7+
"cobertura"
8+
],
9+
"all": true,
10+
"include": [
11+
"src/**/*.ts",
12+
"out/**/*.js"
13+
],
14+
"exclude": [
15+
"src/test/**/*.ts",
16+
"out/test/**/*.js",
17+
"out/utils.js",
18+
"out/logger.js",
19+
"out/constants.js"
20+
]
21+
}

vscode/.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ vsc-extension-quickstart.md
88
**/.eslintrc.json
99
**/*.map
1010
**/*.ts
11+
.nyc_output/**
12+
coverage/**
13+
**/.nycrc.json
14+
esbuild.js

0 commit comments

Comments
 (0)