To enable seamless integration with ai1899 stack (https://github.com/Formartha/ai1899), a pytest plugin was created. The plugin accepts query as an input or from pytest.ini directory and uses it to select testcases based on predefined citeria.
pip install pytest-ai1899
to start the plugin, please pass --ai1899_activate
or use ai1899_activate=true
in the pytest.ini file.
[pytest]
ai1899_endpoint = http://127.0.0.1/ai
ai1899_query = a test with data
ai1899_collection = Tests
ai1899_limit = 5