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

Galvant / InstrumentKit / 1287 / 3
99%
main: 99%

Build:
Build:
LAST BUILD BRANCH: bf_thorlabs_apt
DEFAULT BRANCH: main
Ran 08 Sep 2020 06:15PM UTC
Files 150
Run time 1min
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

08 Sep 2020 06:12PM UTC coverage: 93.007% (+1.2%) from 91.778%
1287.3

push

travis-ci

web-flow
Test suite and BFs for TekDPO70000 (#256)

* Test suite and BFs for TekDPO70000

**Bug Fixes**:
- Two properties were called as `unitful_property` instead of
  `enum_property`. As the "unit", an enum was given. Seems to be a
  copy&paste error.
- The second of these properties also had the wrong enum specified.
  Swapped out for correct enum.
- Double checked all fixes with manual.

**Test suite**:
- Full, and likely overkill, test suite added (needs discussion).
- One test that is intentionally skipped added for binary waveform
  reading (needs discussion).
- Full coverage not achieved.

* Remove `if self._testing` to skip `time.sleep` in tests, replace w/ mock

Also assert that time.sleep is called in the main routine, since it is
required by the instrument.

* Change TekDPO70000 to always read termination character after waveform

The loopback communicator used in testing does not flush the input,
thus a termination character is stuck in the queue that does not get
read. According to the manual, a `<newline>` character is always sent
after transmitting the waveform.
Flushing the input is now simplified and includes a `read_raw` for one
character. This takes care of proper testing. Tests were adjusted
accordingly.

* Removed unnecessary `@pytest.mark.parametrize` statements for channels

Testing of all channels is not necessary for property factories and
should be shifted to their tests.
Test suites still checks that `sendcmd` and `query` are working
properly for all parametrized scenarios.

13313 of 14314 relevant lines covered (93.01%)

0.93 hits per line

Source Files on job 1287.3
  • Tree
  • List 0
  • Changed 89
  • Source Changed 1
  • Coverage Changed 89
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1162
  • Travis Job 1287.3
  • e2c9bfbd on github
  • Prev Job for on master (#1284.2)
  • Next Job for on master (#1290.2)
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