Project

General

Profile

Actions

Task #4253

open

Unit tests should be more deterministic

Added by Nicholas Gordon about 7 years ago. Updated about 7 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/21/2017
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)

Description

Many NLSR unit tests are not deterministic and rely on a relative timing between different events in the course of execution. This is not tenable long-term, and breaks quite frequently.

  • NLSR unit tests should be characterize true invariants. That is, given one input, the test asserts that some property is still true.
  • NLSR unit tests should not break when refactoring the internals of NLSR. This means that API changes should be rare. ** If an API change occurs, the test should be replaced or modified such that the test still asserts the same invariant.
  • NLSR unit tests should fail or pass deterministically, such that the test suite must only be run once to assure compliance.

Subtasks 2 (0 open2 closed)

Bug #4254: Fix SyncLogicHandler's testsClosedNicholas Gordon08/21/2017

Actions
Task #4257: Fix LSDB's LsdbSync testClosedNicholas Gordon

Actions

No data to display

Actions

Also available in: Atom PDF