Skip to content

Is there a way to execute a single test? #504

Answered by weinni2000
weinni2000 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I couldn't get it to run with the command from the documentation:
docker compose run --rm odoo addons init --test --with $modules

but with
docker compose run --name doodba-odoo odoo -d devel_test3 -u base_geoengine -i base_geoengine --test-enable --log-level=test --stop-after-init --test-tags /base_geoengine:TestModel.test_create_multipolygon_geojson_format -p 8088

it worked.

But I just realized that with the vscode tooling from doodba it's just runnning "Test and debug current module" (with the testfile selected) to have full breakpoint support in vscode. -> This should be mentioned in the documentation, because it's really awesome.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by weinni2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants