Task #4401
closed
Feature #4279: Self-learning strategy
Unit tests for Self-learning Forwarding Strategy
Added by tianxiang li almost 7 years ago.
Updated 12 months ago.
Description
Write two test cases for Broadcast-based Self-learning Forwarding Strategy.
Test Case 1 (Wired network scenario):
Set up point to point link with three nodes, node A broadcast packet to node B and C.
Node B and C returns data packet, Node A creates the corresponding forwarding table.
Node A unicast to Node B based on self-learned forwarding path .
Check that only Node B received the packet.
Test case 2 (Wireless network scenario):
Set up multicast link with three nodes, node A broadcast packet to node B and C using multicast face.
Node B and C returns data packet, Node A creates the corresponding forwarding table.
Node A uses unicast face to send packet to Node B based on self-learned forwarding path .
Check that A successfully set up unicast face.
Check that only node B received the packet.
Related issues
1 (1 open — 0 closed)
- Category set to Integration Tests
- Start date deleted (
12/16/2017)
Are these unit tests or integration tests?
- Category changed from Integration Tests to Forwarding
The title has made clear that these are unit tests. They can be easily implemented with TopologyTester
facility.
“Tests” category is solely for integ, so this belongs to “Forwarding” category.
Then why do we need a separate task? Unit tests belong in the same task/patch that introduces the feature they're supposed to test.
Unit tests belong in the same task/patch that introduces the feature they're supposed to test.
Not necessarily. A test may be developed before the feature and marked as “expected failure”, and the implementation commit can remove the expected failure annotation. Such practice exists in ndn-cxx but not yet in NFD.
A substantial test case like this may be assigned to a different developer, necessitating a separate task.
- Subject changed from Provide Unit Test for Broadcast-based Self-learning Forwarding Strategy to Unit tests for Self-learning Forwarding Strategy
- Parent task set to #4279
- Tags changed from SelfLearning to SelfLearning, UnitTests
- Status changed from New to Rejected
- Status changed from Rejected to Abandoned
- Is duplicate of Task #5026: Self-learning: unit testing added
- Tags changed from SelfLearning, unit-tests to unit-tests, self-learning
Also available in: Atom
PDF