Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
L limbra
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • limbra
  • limbra
  • Wiki
  • PyTest

Last edited by LE GAC Renaud Jun 15, 2017
Page history

PyTest

pytest in a nutshell

  • Introduction to python testing framework
  • pytest documentation
  • An example running pytest with web2py
Run all tests
     > cd scripts
     > run -S test_limbra pytest --verbose
Run all test in a test repository
    > cd scripts
    > run -S test_limbra pytest ../tests/harvest_tools/Automaton/
Run a single test
    > cd scripts
    > run -S test_limbra pytest ../tests/invenio_tools/Record/test_acl_cds1951625.py::test_authors
Generate profile
    > cd scripts
    > run -S test_limbra pytest --profile-svg ../tests/harvest_tools/Automaton/test_single_harvester.py::test_lhcb_acl
Clone repository
  • CheckRelease
  • DocumentingPythonCode
  • HarvesterLogic
  • InstallJsduck
  • InstallSenchaCmd
  • MariaDB
  • Migrate0811
  • Migrate0900
  • PyTest
  • RoadMap
  • YumAutoUpdate
  • api_inspirehep
  • branching_model
  • Home