
Generates fake data for testing and development, supports unit and performance testing, and enables demo creation without a backend. Offers diverse datasets and various modules for realistic scenario simulation.
Blah-Blah is a Kotlin Multiplatform (KMP) library designed to generates fake data for robust testing and development. It can be used for things such as:
Blah-Blah's flexibility and compatibility with Kotlin Multiplatform make it an essential tool for creating high-quality applications that are thoroughly tested and well-prepared for dynamic development demands.
flowchart LR
K[(Resource)] --> H[YAML Parser]
H --> N[YAML Provider] --> F[BlahBlah Provider]
F --> A[Module]
A[Module] --> B[(BlahBlah)]Add the dependency below into your module's build.gradle.kts file:
// For development
// It includes blah-blah fake.
implementation("io.github.behzodhalil:blahblah-fake:<latest-version>")
// If only need yaml parser
implementation("io.github.behzodhalil:blahblah-yaml:<latest-version>")
// For testing
// It includes blah-blah fake.
testImplementation("io.github.behzodhalil:blahblah-fake:<latest-version>")
// If only need yaml parser
testImplementation("io.github.behzodhalil:blahblah-yaml:<latest-version>")
class BlahBlahTest {
private lateinit var blah: BlahBlah
@BeforeTest
fun setup() {
blah = blah()
}
@Test
fun `check the blah blah works properly`() {
val city = blah.address.city
val state = blah.address.state
assertNotNull(city)
assertNotNull(state)
}
@Test
fun `check the street address gets successfully`() {
val streetAddress = blah.address.streetAddress
assertNotNull(streetAddress)
assertTrue(streetAddress.isDigit())
}
}
YamlParser for parsing YAML files and retrieving values organized in a specific structure.
interface YamlParser {
fun values(): YamlResource
}
YamlProvider for providing values fetched from YAML resources using specified keys.
interface YamlProvider {
fun get(key: String): String
}Provider representing a provider that retrieves content from a specified path. It is a bridge between module and yaml provider.
public interface Provider {
public fun get(path: Path): String
}
Path representing a path to a resource.It is not Okio path.
public interface Path {
public val value: String
}
Blah-Blah is a Kotlin Multiplatform (KMP) library designed to generates fake data for robust testing and development. It can be used for things such as:
Blah-Blah's flexibility and compatibility with Kotlin Multiplatform make it an essential tool for creating high-quality applications that are thoroughly tested and well-prepared for dynamic development demands.
flowchart LR
K[(Resource)] --> H[YAML Parser]
H --> N[YAML Provider] --> F[BlahBlah Provider]
F --> A[Module]
A[Module] --> B[(BlahBlah)]Add the dependency below into your module's build.gradle.kts file:
// For development
// It includes blah-blah fake.
implementation("io.github.behzodhalil:blahblah-fake:<latest-version>")
// If only need yaml parser
implementation("io.github.behzodhalil:blahblah-yaml:<latest-version>")
// For testing
// It includes blah-blah fake.
testImplementation("io.github.behzodhalil:blahblah-fake:<latest-version>")
// If only need yaml parser
testImplementation("io.github.behzodhalil:blahblah-yaml:<latest-version>")
class BlahBlahTest {
private lateinit var blah: BlahBlah
@BeforeTest
fun setup() {
blah = blah()
}
@Test
fun `check the blah blah works properly`() {
val city = blah.address.city
val state = blah.address.state
assertNotNull(city)
assertNotNull(state)
}
@Test
fun `check the street address gets successfully`() {
val streetAddress = blah.address.streetAddress
assertNotNull(streetAddress)
assertTrue(streetAddress.isDigit())
}
}
YamlParser for parsing YAML files and retrieving values organized in a specific structure.
interface YamlParser {
fun values(): YamlResource
}
YamlProvider for providing values fetched from YAML resources using specified keys.
interface YamlProvider {
fun get(key: String): String
}Provider representing a provider that retrieves content from a specified path. It is a bridge between module and yaml provider.
public interface Provider {
public fun get(path: Path): String
}
Path representing a path to a resource.It is not Okio path.
public interface Path {
public val value: String
}