Skip to content

Commit 2517e6f

Browse files
committed
add test for no project in folder
1 parent 5d12bda commit 2517e6f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/cli/project_test.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,22 @@ def test_slnx_no_projects(tmpdir):
161161
__test_project_error(tmpdir, "slnx", content, expected)
162162

163163

164+
def test_slnx_no_projects_in_folder(tmpdir):
165+
content = '<?xml version="1.0" encoding="UTF-8"?>\r\n' \
166+
"<Solution>\r\n" \
167+
" <Configurations>\r\n" \
168+
' <Platform Name="x64" />\r\n' \
169+
' <Platform Name="x86" />\r\n' \
170+
" </Configurations>\r\n" \
171+
' <Folder Name="/common/">\r\n' \
172+
' </Folder>\r\n' \
173+
"</Solution>\r\n"
174+
175+
expected = "no projects found in Visual Studio solution file"
176+
177+
__test_project_error(tmpdir, "slnx", content, expected)
178+
179+
164180
def test_slnx_project_file_not_found(tmpdir):
165181
content = '<?xml version="1.0" encoding="UTF-8"?>\r\n' \
166182
"<Solution>\r\n" \

0 commit comments

Comments
 (0)