Skip to content

XMock: XMock, developed by Fossil Logic, is a powerful mocking library designed to simplify the testing of complex software systems. With its intuitive interface and flexible mocking capabilities, it allows developers to create realistic mock objects for seamless unit testing.

License

Notifications You must be signed in to change notification settings

fossil-lib/fscl-xmock-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fossil XMock - C

Unleash the power of mock objects and simulated environments with Fossil XMock. This library empowers developers to create realistic simulations for testing, enabling a more controlled and efficient software development lifecycle. Enhance the accuracy of your testing scenarios, leading to the creation of more resilient and adaptable applications.

Prerequisites

Before getting started, make sure you have the following installed:

  • Meson Build System: This project relies on Meson. If you don't have Meson installed, visit the official Meson website for installation instructions.

Adding dependency

  1. Install Meson Build System: Before integrating the dependency, ensure you have Meson 1.2 or newer installed on your host system. You can install it with this command.

    python -m pip install meson           # to install Meson
    python -m pip install --upgrade meson # to upgrade Meson
  2. Adding Wrap File: You can add a .wrap, first go into subprojects directory and create fscl-xmocks-c.wrap next copy the defintion into the file:

    # ======================
    # Git Wrap package definition
    # ======================
    [wrap-git]
    url = https://github.com/fossil-lib/tscl-xmock-c.git
    revision = v2.4.3
    
    [provide]
    fscl-xmock-c = fscl_xmock_c_dep
  3. Integrate the New Dependency: After creating the dependency .wrap file, you need to integrate it into your Meson project. This typically involves adding the dependency to your meson.build file. Here's an example of how you might do that:

    dep = dependency('fscl-xmock-c')

    This line retrieves the fscl-xmock-c dependency, allowing you to use it in your project.

Configure Options

You have options when configuring the build, each serving a different purpose:

  • Running Tests: To enable running tests, use -Dwith_test=enabled when configuring the build.

Example:

meson setup builddir -Dwith_test=enabled

Contributing and Support

If you're interested in contributing to this project, encounter any issues, have questions, or would like to provide feedback, don't hesitate to open an issue or visit the Fossil Logic Docs for more information.

About

XMock: XMock, developed by Fossil Logic, is a powerful mocking library designed to simplify the testing of complex software systems. With its intuitive interface and flexible mocking capabilities, it allows developers to create realistic mock objects for seamless unit testing.

Topics

Resources

License

Stars

Watchers

Forks