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

ICRAR / daliuge / 2086
81%

Build:
DEFAULT BRANCH: master
Ran 06 May 2022 06:52AM UTC
Jobs 3
Files 127
Run time 4min
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

pending completion
2086

push

travis-ci-com

rtobar
Remove duplicated test code from test_dm

The TestDM and TestDMParallel classes were almost identical copies of
each other (with the former being the "source" of the latter, since it
was the one that existed first), with two main differences: firstly,
TestDM has an additional test_run_invalid_shmem_graph test; and
secondly, the number of threads they use to start the NMs in their tests
is different, with TestDM always using the default (0), and
TestDMParallel using the number of available CPUs, with some small
alterations.

Instead of copying the whole body of the tests, it's better from
a maintainability point of view if we avoid this code duplication, and
instead reuse the same code for both tests. This commit does exactly
that: it creates a NodeManagerTestsBase class with all the common test
definitions, and relying on self.nm_threads being defined later on, and
then subclass it with TestDM and TestDMParallel, each of which provides
its own self.nm_threads definition. In addition, TestDM contains its own
additional test.

This work is part of YAN-974.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

11 of 11 new or added lines in 1 file covered. (100.0%)

12388 of 15254 relevant lines covered (81.21%)

1.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2086.1 (NO_DLG_RUNTIME=1) 06 May 2022 06:52AM UTC 0
67.15
Travis Job 2086.1
2 2086.2 (NO_DLG_TRANSLATOR=1) 06 May 2022 06:55AM UTC 0
84.56
Travis Job 2086.2
3 2086.3 06 May 2022 06:56AM UTC 0
81.21
Travis Job 2086.3
Source Files on build 2086
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2086
  • 91d6c289 on github
  • Prev Build on master (#2070)
  • Next Build on master (#2091)
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

© 2026 Coveralls, Inc