Skip to content

Commit 3edce1f

Browse files
committed
test(cli): Add basic CLI test structure
1 parent cfdf9c6 commit 3edce1f

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

__tests__/cli-basic.tests.test.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* @file cli-basic.tests.test.js
3+
* @description Generated test file from cli-basic.tests.yml.
4+
* This file contains Jest 'describe' and 'it' blocks based on your YAML structure.
5+
* Please fill in the actual test logic.
6+
* @generated by testweaver
7+
*/
8+
9+
describe('Basic flags', () => {
10+
describe('Help flags', () => {
11+
it.todo('-h');
12+
it.todo('--help');
13+
});
14+
15+
describe('Version', () => {
16+
it.todo('-V');
17+
it.todo('--version');
18+
});
19+
20+
});
21+
22+
describe('Show descriptions to console', () => {
23+
describe('Local repo', () => {
24+
it.todo('Current repo: .');
25+
it.todo('Repo folder on local machine');
26+
});
27+
28+
describe('Remote repos', () => {
29+
it.todo('From GitHub: ioncakephper/repo-description');
30+
});
31+
32+
});
33+
34+
describe('Send descriptions to file', () => {
35+
describe('Local repo', () => {
36+
it.todo('Current repo: . -o _descriptions.json');
37+
it.todo('Current repo: . -o _descriptions.json -f json');
38+
it.todo('Current repo: . -o _descriptions_markdown.md -f markdown');
39+
});
40+
41+
describe('Remote repos', () => {
42+
describe('From GitHub: ioncakephper/repo-description', () => {
43+
it.todo('https://github.com/ioncakephper/repo-description -o _descriptions.json');
44+
it.todo('https://github.com/ioncakephper/repo-description -o _descriptions.json -f json');
45+
it.todo('https://github.com/ioncakephper/repo-description -o _descriptions_markdown.md -f markdown');
46+
});
47+
48+
});
49+
50+
});
51+

__tests__/cli-basic.tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"Basic flags":
2+
"Help flags":
3+
- "-h"
4+
- "--help"
5+
"Version":
6+
- "-V"
7+
- "--version"
8+
9+
"Show descriptions to console":
10+
"Local repo":
11+
- "Current repo: ."
12+
- "Repo folder on local machine"
13+
"Remote repos":
14+
- "From GitHub: ioncakephper/repo-description"
15+
16+
"Send descriptions to file":
17+
"Local repo":
18+
- "Current repo: . -o _descriptions.json"
19+
- "Current repo: . -o _descriptions.json -f json"
20+
- "Current repo: . -o _descriptions_markdown.md -f markdown"
21+
"Remote repos":
22+
"From GitHub: ioncakephper/repo-description":
23+
- "https://github.com/ioncakephper/repo-description -o _descriptions.json"
24+
- "https://github.com/ioncakephper/repo-description -o _descriptions.json -f json"
25+
- "https://github.com/ioncakephper/repo-description -o _descriptions_markdown.md -f markdown"

0 commit comments

Comments
 (0)