Skip to content

Commit

Permalink
Merge pull request #1713 from nextcloud/dev/debug-python-tests
Browse files Browse the repository at this point in the history
Enable debugging of the test environemnt
  • Loading branch information
christianlupus committed Jun 4, 2023
2 parents a5e796e + 31dec00 commit d320ba8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/run-tests/requirements.txt
@@ -1 +1,2 @@
debugpy==1.6.7
tabulate==0.8.10
7 changes: 7 additions & 0 deletions .github/actions/run-tests/run-locally.py
@@ -1,10 +1,17 @@
#!/usr/bin/env python

import debugpy

import test_runner
import test_runner.ci_printer as l

(args, subArgs) = test_runner.argument_parser.parseArguments()

if args.debug_python:
print("Debugging Python")
debugpy.listen(5678)
debugpy.wait_for_client()

# print(args)

test_runner.ci_printer.logger = test_runner.ci_printer.CILogger(args.ci)
Expand Down
1 change: 1 addition & 0 deletions .github/actions/run-tests/test_runner/argument_parser.py
Expand Up @@ -6,6 +6,7 @@ def parseArguments():
parser = argparse.ArgumentParser()

parser.add_argument('-v', '--verbose', action='store_true', help='Do not hide the output of intermediate commands')
parser.add_argument('--debug-python', action='store_true', help='Activate the python debugger to develop the test environments.')

group = parser.add_argument_group('Docker image management', 'Manage the docker images involved in the test routines.')

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -35,6 +35,8 @@
[#1710](https://github.com/nextcloud/cookbook/pull/1710) @dependabot @christianlupus
- Update Psalm and fix some introduced issues
[#1707](https://github.com/nextcloud/cookbook/pull/1707) @christianlupus
- Allow remote debugging of the test python scripts
[#1713](https://github.com/nextcloud/cookbook/pull/1713) @christianlupus


## 0.10.2 - 2023-03-24
Expand Down

0 comments on commit d320ba8

Please sign in to comment.