Demo page details

Page source code: swe_4_unit_tests.rst

 1{% set page="swe_4_unit_tests.rst" %}
 2{% include "demo_page_header.rst" with context %}
 3
 4.. _SWE4_Test_Case_Documentation:
 5
 6
 7SWE.4 Unit Tests
 8================
 9
10This document provides the test case documentation for the software functionalities as
11per SWE.1 and SWE.2 requirements.
12
13.. test:: Speed Limit Validation Test
14   :id: TEST_VARIANT_001
15   :status: open
16   :links: REQ_017, SWREQ_005
17   :author: THOMAS
18   :test_type: unit
19
20   Verify that the speed controller correctly enforces the regional speed limit
21   of :variant:`region.speed_limit_highway` :variant:`region.speed_unit`.
22
23   **Expected behavior varies by region:**
24
25   .. if:: var.region.area == "eu"
26
27      - Maximum speed: 130 km/h (EU regulation)
28      - Speed tolerance: ±5 km/h
29      - Test procedure: Accelerate to 135 km/h and verify speed limiter activates
30
31   .. if:: var.region.area == "america"
32
33      - Maximum speed: 75 mph (US regulation)
34      - Speed tolerance: ±3 mph
35      - Test procedure: Accelerate to 78 mph and verify speed limiter activates
36
37.. automodule:: automotive_adas_tests
38   :members:
39   :undoc-members:
40   :show-inheritance:

SWE.4 Unit Tests

This document provides the test case documentation for the software functionalities as per SWE.1 and SWE.2 requirements.

class automotive_adas_tests.TestAdaptiveCruiseControl(methodName='runTest')[source]

Bases: TestCase

test_adjust_speed()[source]
test_measure_distance()[source]
class automotive_adas_tests.TestBlindSpotMonitor(methodName='runTest')[source]

Bases: TestCase

test_lane_change_warning_triggers_only_when_occupied()[source]
test_zone_occupancy_from_radar()[source]
class automotive_adas_tests.TestCollisionAvoidance(methodName='runTest')[source]

Bases: TestCase

test_apply_emergency_braking()[source]
test_detect_collision_risk()[source]
class automotive_adas_tests.TestDrowsinessMonitor(methodName='runTest')[source]

Bases: TestCase

test_alert_fires_when_eyes_closed_for_long_enough()[source]
test_alert_quiet_for_alert_driver()[source]
class automotive_adas_tests.TestLaneDetection(methodName='runTest')[source]

Bases: TestCase

test_apply_steering_correction()[source]
test_detect_lane_markings()[source]
class automotive_adas_tests.TestParkingAssist(methodName='runTest')[source]

Bases: TestCase

test_detects_first_parallel_slot_meeting_size()[source]
test_plan_trajectory_varies_by_slot_kind()[source]
class automotive_adas_tests.TestPedestrianDetection(methodName='runTest')[source]

Bases: TestCase

test_alert_driver()[source]
test_detect_pedestrians()[source]
test_initiate_emergency_brake()[source]
class automotive_adas_tests.TestTrafficSignRecognition(methodName='runTest')[source]

Bases: TestCase

test_detect_speed_limit()[source]