Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber for Makefile #302

Open
FaiqueAli opened this issue Jul 23, 2024 · 1 comment
Open

Cucumber for Makefile #302

FaiqueAli opened this issue Jul 23, 2024 · 1 comment
Labels

Comments

@FaiqueAli
Copy link

Discussed in https://github.com/orgs/cucumber/discussions/2188

Originally posted by FaiqueAli July 22, 2024
Hi, I have gone through the documentation and tried with the example project to understand cucumber and executed the defined test cases.
Now, I need to integrate Cucumber in my QNX c++ project that is based on Makefile, Is there any documentation or sample project available to start with or any other reference point?

@mpkorstanje mpkorstanje reopened this Jul 23, 2024
@mpkorstanje mpkorstanje transferred this issue from cucumber/common Jul 23, 2024
@ursfassler ursfassler added the help label Aug 1, 2024
@ursfassler
Copy link
Contributor

Hi @FaiqueAli,
I don't have documentation at hand, but lets try to figure it out. We integrated cucumber-cpp in Zephyr once, that seems to be close.

First question is how you would like to test your code. Best case is when your code under test is independent from QNX. Then you don't need QNX integration at all because you can setup a new (CMake?) project with cucumber-cpp and just reference your code under test.

When your code under test is inter-winded with QNX, you have to integrate cucumber-cpp as library in your QNX project. This shouldn't be any different from any other library. The maybe bigger issue is to run your tests. We did run Zephyr on Linux (with the posix target). Using (linking) cucumber-cpp did not work, we used cucumber-cpp-nomain and implemented our "own" main method. This was actually copying and adjusting acceptWireProtocol from src/main.cpp:

void acceptWireProtocol(

This runs cucumber-cpp within your QNX application. Then you can run cucumber-ruby from your Linux machine, it connects via a network socket to cucumber-cpp in QNX.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

3 participants