Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Run domain tests only if domains are not supported
  • Loading branch information
BadSingleton committed Mar 4, 2021
commit 1c4d5e5390c4df7eabc8466675114f71d542d4a8
29 changes: 24 additions & 5 deletions src/domain_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
import os

from subprocess import check_call
# test_proj_path = os.path.join(cwd, "..", "testing")
cfd = os.path.dirname(__file__)
bin_path = os.path.join(cfd, 'bin')
check_call(["dotnet", "build", cfd, '-o', bin_path])
def pytest_addoption(parser):
try:
parser.addoption(
"--runtime",
action="store",
default="default",
help="Must be one of default, netcore, netfx and mono"
)
except ValueError:
pass # already added


collect_ignore = []

def pytest_configure(config):
if config.getoption("--runtime") == "netcore":
collect_ignore.append("test_domain_reload.py")
return

from subprocess import check_call
# test_proj_path = os.path.join(cwd, "..", "testing")
cfd = os.path.dirname(__file__)
bin_path = os.path.join(cfd, 'bin')
check_call(["dotnet", "build", cfd, '-o', bin_path])