• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PulpQE / pulp-smash
89%
master: 63%

Build:
Build:
LAST BUILD BRANCH: 5873
DEFAULT BRANCH: master
Repo Added 16 Oct 2015 09:12PM UTC
Files 32
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH issue-11
branch: issue-11
CHANGE BRANCH
x
Reset
  • issue-11
  • 1!0.0.1
  • 1!0.0.2
  • 1!0.0.3
  • 1!0.0.4
  • 1!0.0.5
  • 1!0.0.6
  • 1!0.0.7
  • 1!0.0.8
  • 1!0.0.9
  • 1!0.1.0
  • 1!0.1.1
  • 1!0.2.0
  • 1!0.3.0
  • 1!0.4.0
  • 1!0.5.0
  • 1!0.6.0
  • 1!0.7.0
  • 2016.02.18
  • 2016.02.25
  • 2016.03.03
  • 2016.03.17
  • 2016.03.24
  • 2016.03.31
  • 2016.04.07
  • 2016.04.14
  • 2016.04.21
  • 2016.04.28
  • 2016.05.05
  • 2016.05.12
  • 2016.05.19
  • 2016.05.26
  • 2016.06.02
  • 2016.06.09
  • 2016.06.23
  • 2016.06.30
  • 2016.07.14
  • 2016.07.28
  • 2016.08.11
  • 2016.08.18
  • 2016.08.25
  • 2016.09.01
  • 2016.09.08
  • 2016.09.15
  • 2016.09.22
  • 2016.10.06
  • 2016.10.13
  • 2016.10.20
  • 2016.10.27
  • 2016.11.03
  • 2016.11.10
  • 2016.11.17
  • 2016.12.01
  • 2016.12.08
  • 2016.12.15
  • 2016.12.22
  • 2017.01.05
  • 2017.01.12
  • 2017.01.19
  • 2017.01.26
  • 2017.02.02
  • 2017.02.09
  • 2017.02.17
  • 2017.02.23
  • 2017.03.02
  • 2017.03.10
  • 2017.03.17
  • 2017.03.24
  • 2017.03.31
  • 2017.04.07
  • 2017.04.21
  • 2017.05.05
  • 2017.05.12
  • 2017.05.19
  • 2017.05.25
  • 2017.06.02
  • 2017.06.08
  • 2017.06.15
  • 2017.06.23
  • 2017.06.30
  • 2017.07.07
  • 2017.07.13
  • 2017.07.27
  • 2017.08.03
  • 2017.08.10
  • 2017.08.17
  • 2017.08.24
  • 2017.08.31
  • 2017.09.07
  • 2017.09.28
  • 2017.10.05
  • 2017.10.12
  • 2017.10.19
  • 2017.10.26
  • 2017.11.02
  • 2017.11.09
  • 2017.11.16
  • 2017.11.30
  • 2017.12.14
  • 2018.01.04
  • 2018.01.11
  • 2018.01.18
  • 2018.01.25
  • 2018.02.01
  • 2018.02.08
  • 2018.02.15
  • 2018.02.22
  • 2018.03.01
  • 2018.03.08
  • 2018.03.15
  • 2018.03.23
  • 2018.03.29
  • 2018.04.12
  • 2018.04.26
  • 2018.05.03
  • 2018.05.10
  • 2018.05.17
  • 2018.05.24
  • 2018.05.31
  • 2018.06.07
  • 2018.06.14
  • 2018.06.21
  • 2018.06.28
  • 2018.07.05
  • 2018.07.12
  • azure-pipelines
  • config
  • constants
  • coveralls
  • docs
  • docs-nitpick
  • flake8
  • force-full-tc
  • formatting
  • master
  • revert-1154-api-changes
  • revert-921-master
  • sudo-kubectl
  • test-user

pending completion
40

push

travis-ci

Ichimonji10
Split tests into sections

Fix #11:

> All tests currently reside in `pulp_smash/tests/`. This works, but it doesn't
> scale well. How can a user find the kind of test they're looking for?

To major options were discussed: splitting tests based primarily on the
transport mechanism or splitting based primarily on the plugin targeted. The
former leads to a layout like this:

    pulp_smash/tests/
    ├── api_v2
    │   ├── platform
    │   │   └── …
    │   ├── iso
    │   │   └── …
    │   └── rpm
    │       └── …
    └── cli
        ├── platform
        │   └── …
        ├── iso
        │   └── …
        └── rpm
            └── …

The latter leads to a layout like this:

    pulp_smash/tests/
    ├── platform
    │   ├── api_v2
    │   │   └── …
    │   └── cli
    │       └── …
    ├── iso
    │   ├── api_v2
    │   │   └── …
    │   └── cli
    │       └── …
    └── rpm
        ├── api_v2
        │   └── …
        └── cli
            └── …

Implement the latter layout for the following reasons:

* This layout bears a rough resemblance to Pulp Automation's layout, which is
  split in to `general_tests`, `consumer_agent_tests`, `regression_tests` and
  `nodes`. Similarity should ease the process of porting tests, and if the
  layout works over there, why change things?
* A user may not have a full set of test systems available, and in that case,
  the ability to easily run tests that target only specific plug-ins may be
  desirable. For example, if a user only has a Pulp system, they may wish to run
  only the "platform" tests.
* This approach may be the most useful to developers. For example, if a
  developer is fiddling with the Puppet plug-in, this approach makes it easy to
  run some or all of the tests for that plug-in.

There are some downsides to this approach:

* This layout may pose problems if, say, API v2 is phased out in favor of API v3
  and a user wishes to only run the v3 tests.
* Selecting tests based on their location in a filesystem... (continued)

81 of 91 relevant lines covered (89.01%)

3.56 hits per line

Relevant lines Covered
Build:
Build:
91 RELEVANT LINES 81 COVERED LINES
3.56 HITS PER LINE
Source Files on issue-11
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40 issue-11 Split tests into sections Fix #11: > All tests currently reside in `pulp_smash/tests/`. This works, but it doesn't > scale well. How can a user find the kind of test they're looking for? To major options were discussed: splitting tests based pr... push 19 Oct 2015 07:51PM UTC Ichimonji10 travis-ci pending completion  
See All Builds (2728)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc