Skip to content
Snippets Groups Projects

E3-1751: Fix make test to use cellbuild's path

Merged E3-1751: Fix make test to use cellbuild's path
All threads resolved!
Merged Anders Lindh Olsson requested to merge e3-1751 into master
All threads resolved!

As make test creates a cellbuild, the tests should look for modules in the cell directory.

This removes the need for activating an environment as part of any custom test targets.

This would allow module devs to go from

# configure/module/RULES_MODULE

module_tests:
    source /some/env && pytest
# tests/test_something.py

with IOC("--cell-path", os.environ["TEMP_CELL_PATH"]):
  assert things

to

# configure/module/RULES_MODULE

module_tests:
    pytest
# tests/test_something.py

with IOC():
  assert things
Edited by Anders Lindh Olsson

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading