Skip to content

Commit 1841c81

Browse files
authored
test(cli): add tests and mocks (#4)
* chore(package): update dependencies * docs(readme): add Greenkeeper badge * test(cli): add tests and mocks 1. Mock @octokit/rest.js and dotenv 2. Refactor: rename github-resource-converter.js => base-resource-converter.js 3. Reports: send code coverage to Codacy 4. README.md: add contributing section 5. Add tests for baseResourceConverter #1 * refactor(move): file export features 1. Add enum exportType 2. Add object fileExporter 3. Add test fixtures #1,#3,#4 * test(cli): complete coverage #1,#4 * build(jest): fix testMatch config #1,#4 * ci(travis): fix 'no tests found' error See https://travis-ci.org/gregswindle/github-resource-converter/jobs/355791728#L2892 #1,#4 * ci(test): fix test issues 1. Appveyor didn't like the quotes for the eslintrc config path 2. Travis still cannot find the tests * ci(tests): fix build tests #1,#4 * ci(tests): fix build tests #1,#4 * ci(travis): try fixing jest #1,#4 * ci(travis): jest fixes and formatting 1. .eslintrc: switch-case: 2 spaces 2. .travis: git.depth = 1 3. .travis: no-npm-dedupe 4. .travis: send codacy coverage with npm-script posttest:ci:coverage:codacy 5. .env.example: better explanations with new envvars 6. manifest: format and add npm-scripts 7. docs: fix markdown-magic config to modify CONTRIBUTING.md #1,#4 * ci(travis): more jest test fixes #1,#4 * ci(travis): more jest test fixes #1,#4 * ci(services): appveyor and travis Attempt to run jest tests with full directory paths. #1,#4 * ci(appveyor): fix path issue Error parsing appveyor.yml: (Line: 37, Col: 5, Idx: 864) - (Line: 37, Col: 6, Idx: 865): While scanning for the next token, find character that cannot start any token #1,#4 * ci(jest): appveyor and travis I'm about to give up on Jest! 😠 #1,#4 * ci(jest): appveyor and travis #1,#4 * ci(jest): move dirs Moved __(fixtures|mocks|tests)__ dirs to rootDir 🤞 * ci(jest): add testPathPattern flag #1,#4 * ci(jest): re-add testMatch * ci(jest): add package Try using the 'jest-runner-eslint' test runner for Travis-CI and Appveyor. #1,#4 * ci(jest): add test runner * ci(jest): more fix attempts * fix(jest): add missing dir There's a reason why eslintrc is normally separated from gitignore. #1,#4 * refactor(dirs): move directories Put directories back under lib/ #1,#4 * docs(status): finish badges Correct typo for the coverage directory, too. #1,#4 * ci(tests): fix codacy-coverage - Point to the correct pathname - Send coverage via an npm-script #1,#2,#3,#4
1 parent 9f28344 commit 1841c81

110 files changed

Lines changed: 13903 additions & 2534 deletions

File tree

Some content is hidden

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

.github/CONTRIBUTING.md

Lines changed: 467 additions & 282 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/defect-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ In order to {achieve value}.
4444

4545
<!-- ⛔️ Do not remove anything below this comment. ⛔️ -->
4646

47-
[icon-info-image]: ../docs/img/icons8/icon-info-50.png
47+
[icon-info-image]: ./assets/img/icons8/icon-info-50.png
Lines changed: 263 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
# Common Vocabulary
2+
3+
> Generated on Fri Feb 09 2018.
4+
5+
## Index of terms
6+
7+
1. [**feat**](#feat) <sup>conventional-commit-type</sup>
8+
1. [**fix**](#fix) <sup>conventional-commit-type</sup>
9+
1. [**docs**](#docs) <sup>conventional-commit-type</sup>
10+
1. [**style**](#style) <sup>conventional-commit-type</sup>
11+
1. [**refactor**](#refactor) <sup>conventional-commit-type</sup>
12+
1. [**perf**](#perf) <sup>conventional-commit-type</sup>
13+
1. [**test**](#test) <sup>conventional-commit-type</sup>
14+
1. [**build**](#build) <sup>conventional-commit-type</sup>
15+
1. [**ci**](#ci) <sup>conventional-commit-type</sup>
16+
1. [**chore**](#chore) <sup>conventional-commit-type</sup>
17+
1. [**revert**](#revert) <sup>conventional-commit-type</sup>
18+
19+
### Conventional Commit Specification Terms
20+
21+
<dl>
22+
<dt><a name="feat"></a>feat</dt>
23+
<dd>A new feature
24+
<hr>
25+
<details>
26+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>feat</samp>...</summary>
27+
<ul><p>
28+
<!-- categories -->
29+
30+
<p><em>Category</em>
31+
<blockquote><ul>
32+
<li>conventional-commit-type</li>
33+
</blockquote>
34+
35+
<!-- commit log headers -->
36+
37+
<!-- labels -->
38+
39+
</details>
40+
<hr>
41+
</dd>
42+
</ul>
43+
<!-- definition -->
44+
<dt><a name="fix"></a>fix</dt>
45+
<dd>A bug fix
46+
<hr>
47+
<details>
48+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>fix</samp>...</summary>
49+
<ul><p>
50+
<!-- categories -->
51+
52+
<p><em>Category</em>
53+
<blockquote><ul>
54+
<li>conventional-commit-type</li>
55+
</blockquote>
56+
57+
<!-- commit log headers -->
58+
59+
<!-- labels -->
60+
61+
</details>
62+
<hr>
63+
</dd>
64+
</ul>
65+
<!-- definition -->
66+
<dt><a name="docs"></a>docs</dt>
67+
<dd>Documentation only changes
68+
<hr>
69+
<details>
70+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>docs</samp>...</summary>
71+
<ul><p>
72+
<!-- categories -->
73+
74+
<p><em>Category</em>
75+
<blockquote><ul>
76+
<li>conventional-commit-type</li>
77+
</blockquote>
78+
79+
<!-- commit log headers -->
80+
81+
<!-- labels -->
82+
83+
</details>
84+
<hr>
85+
</dd>
86+
</ul>
87+
<!-- definition -->
88+
<dt><a name="style"></a>style</dt>
89+
<dd>Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
90+
<hr>
91+
<details>
92+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>style</samp>...</summary>
93+
<ul><p>
94+
<!-- categories -->
95+
96+
<p><em>Category</em>
97+
<blockquote><ul>
98+
<li>conventional-commit-type</li>
99+
</blockquote>
100+
101+
<!-- commit log headers -->
102+
103+
<!-- labels -->
104+
105+
</details>
106+
<hr>
107+
</dd>
108+
</ul>
109+
<!-- definition -->
110+
<dt><a name="refactor"></a>refactor</dt>
111+
<dd>A code change that neither fixes a bug nor adds a feature
112+
<hr>
113+
<details>
114+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>refactor</samp>...</summary>
115+
<ul><p>
116+
<!-- categories -->
117+
118+
<p><em>Category</em>
119+
<blockquote><ul>
120+
<li>conventional-commit-type</li>
121+
</blockquote>
122+
123+
<!-- commit log headers -->
124+
125+
<!-- labels -->
126+
127+
</details>
128+
<hr>
129+
</dd>
130+
</ul>
131+
<!-- definition -->
132+
<dt><a name="perf"></a>perf</dt>
133+
<dd>A code change that improves performance
134+
<hr>
135+
<details>
136+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>perf</samp>...</summary>
137+
<ul><p>
138+
<!-- categories -->
139+
140+
<p><em>Category</em>
141+
<blockquote><ul>
142+
<li>conventional-commit-type</li>
143+
</blockquote>
144+
145+
<!-- commit log headers -->
146+
147+
<!-- labels -->
148+
149+
</details>
150+
<hr>
151+
</dd>
152+
</ul>
153+
<!-- definition -->
154+
<dt><a name="test"></a>test</dt>
155+
<dd>Adding missing tests or correcting existing tests
156+
<hr>
157+
<details>
158+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>test</samp>...</summary>
159+
<ul><p>
160+
<!-- categories -->
161+
162+
<p><em>Category</em>
163+
<blockquote><ul>
164+
<li>conventional-commit-type</li>
165+
</blockquote>
166+
167+
<!-- commit log headers -->
168+
169+
<!-- labels -->
170+
171+
</details>
172+
<hr>
173+
</dd>
174+
</ul>
175+
<!-- definition -->
176+
<dt><a name="build"></a>build</dt>
177+
<dd>Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
178+
<hr>
179+
<details>
180+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>build</samp>...</summary>
181+
<ul><p>
182+
<!-- categories -->
183+
184+
<p><em>Category</em>
185+
<blockquote><ul>
186+
<li>conventional-commit-type</li>
187+
</blockquote>
188+
189+
<!-- commit log headers -->
190+
191+
<!-- labels -->
192+
193+
</details>
194+
<hr>
195+
</dd>
196+
</ul>
197+
<!-- definition -->
198+
<dt><a name="ci"></a>ci</dt>
199+
<dd>Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
200+
<hr>
201+
<details>
202+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>ci</samp>...</summary>
203+
<ul><p>
204+
<!-- categories -->
205+
206+
<p><em>Category</em>
207+
<blockquote><ul>
208+
<li>conventional-commit-type</li>
209+
</blockquote>
210+
211+
<!-- commit log headers -->
212+
213+
<!-- labels -->
214+
215+
</details>
216+
<hr>
217+
</dd>
218+
</ul>
219+
<!-- definition -->
220+
<dt><a name="chore"></a>chore</dt>
221+
<dd>Other changes that don't modify src or test files
222+
<hr>
223+
<details>
224+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>chore</samp>...</summary>
225+
<ul><p>
226+
<!-- categories -->
227+
228+
<p><em>Category</em>
229+
<blockquote><ul>
230+
<li>conventional-commit-type</li>
231+
</blockquote>
232+
233+
<!-- commit log headers -->
234+
235+
<!-- labels -->
236+
237+
</details>
238+
<hr>
239+
</dd>
240+
</ul>
241+
<!-- definition -->
242+
<dt><a name="revert"></a>revert</dt>
243+
<dd>Reverts a previous commit
244+
<hr>
245+
<details>
246+
<summary><img src="https://raw.githubusercontent.com/commonality/common-vocabulary/master/docs/img/icons8/icon-info-30.png" alt="More info"> Toggle for additional engineering usages of <samp>revert</samp>...</summary>
247+
<ul><p>
248+
<!-- categories -->
249+
250+
<p><em>Category</em>
251+
<blockquote><ul>
252+
<li>conventional-commit-type</li>
253+
</blockquote>
254+
255+
<!-- commit log headers -->
256+
257+
<!-- labels -->
258+
259+
</details>
260+
<hr>
261+
</dd>
262+
</ul>
263+
</dl>

.github/assets/img/bdd-process.png

51.2 KB
Loading
42.5 KB
Loading

0 commit comments

Comments
 (0)