# Using Randomized Inputs to Improve Software Test Coverage

DevFeed: [Using Randomized Inputs to Improve Software Test Coverage](<https://devfeed.tech/articles/stop-using-constants-feed-randomized-input-to-test-cases-47417.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2021/02/randomized-input-testing-ios.html>)

Author: Vijaya Prakash Kandel

Published: 2021-02-01T23:00:00Z

Content type: tutorial

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Randomizer](<https://devfeed.tech/topics/randomizer.md>), [Code](<https://devfeed.tech/topics/code.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [ios](<https://devfeed.tech/tags/ios.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [permutation](<https://devfeed.tech/tags/permutation.md>), [random](<https://devfeed.tech/tags/random.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

## AI overview

This tutorial explains how replacing hand-written constant test inputs with randomized inputs can expose defects across many possible values. It discusses a Randomizer library, extending it for custom types, and applying the technique to iOS tests and accessibility-related model data.

## Source excerpt

Most test cases assert using hand typed constants. Leveraging randomized input is a much better approach.