Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos
slapos
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Merge Requests 72
    • Merge Requests 72
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Jobs
  • Commits
  • nexedi
  • slaposslapos
  • Merge Requests
  • !862

Merged
Opened Nov 20, 2020 by Jérome Perrin@jerome
  • Report abuse
Report abuse

Use nxdtest in SlapOS tests

  • switch software/slapos-testing (SlapOS.Eggs.UnitTest-*) to use nxdtest and update README to describe how to run tests locally with nxdtest's runTestSuite. Switch tests to python -m unittest (or slight variations) instead of the deprecated python setup.py, except a few tests which only pass when invoked with setup.py.
  • switch software/slapos-sr-testing (SlapOS.SoftwareReleases.IntegrationTest-*) to use nxdtest and update README to describe how to run tests locally with nxdtest's runTestSuite. Switch all tests to python -m unittest discover intead of the deprecated python setup.py - which was especially problematic in these tests, because it sets $PYTHONPATH which affect subprocesses ran by the tests. In follow up commits we'll drop the workarounds for $PYTHONPATH.

EggTestSuite becomes unused and will be removed in follow up changes.

Edited Nov 27, 2020 by Jérome Perrin
  • Discussion 39
  • Commits 3
  • Pipelines 16
  • Changes 10
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/slapos!862

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7