-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #18165: Change the testinfra based tests reports to json format…
… instead of junitxml
- Loading branch information
Showing
6 changed files
with
105 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .scenario import ScenarioInterface | ||
from .reports import XMLReport | ||
from .reports import XMLReport, JSONReport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import testinfra | ||
import pytest | ||
|
||
# test_path | ||
@pytest.fixture | ||
def test_path(test_data): | ||
return test_data["test_path"] | ||
|
||
""" | ||
Main test | ||
""" | ||
def test_ncf(host, token, webapp_url): | ||
cmd = host.run("powershell.exe /c rudder agent tests") | ||
def test_ncf(host, token, webapp_url, test_path): | ||
cmd = host.run("rudder agent tests -TestFile '%s'"%test_path) | ||
assert cmd.succeeded | ||
print(cmd.stdout) | ||
|