We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7eedd commit a111b89Copy full SHA for a111b89
plugin_test.py
@@ -52,3 +52,20 @@ def test_fail():
52
result.stdout.fnmatch_lines([
53
'::error file=test_annotation_exception.py,line=4::def test_fail():*',
54
])
55
+
56
+def test_annotation_fail_disabled_outside_workflow(testdir):
57
+ testdir.makepyfile(
58
+ '''
59
+ import pytest
60
+ pytest_plugins = 'pytest_github_actions_annotate_failures'
61
62
+ def test_fail():
63
+ assert 0
64
65
+ )
66
+ testdir.monkeypatch.setenv('GITHUB_ACTIONS', '')
67
+ testdir._method = 'subprocess'
68
+ result = testdir.runpytest()
69
+ result.stdout.no_fnmatch_line(
70
+ '::error file=test_annotation_fail_disabled_outside_workflow.py*',
71
0 commit comments