pytest

Submitted by code_admin on Wed, 05/04/2022 - 15:45

Python test notes

Show output

Put at bottom of tests

  1. if __name__ == '__main__':
  2.     pytest.main(['--capture=no'])

Java Debugging Maven Test

Submitted by code_admin on Tue, 07/13/2021 - 14:14

Steps taken to debug maven tests in Java inside a docker container:

Run docker container with maven exporting port 8000

  1. docker run --rm -it -p 8000:8000 -v ~/.m2:/root/.m2 -v $(pwd):/extdir maven:3-amazoncorretto-11 /bin/sh

Copy source and pom:

Tags