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

Add a Symfony recipe #12

Open
tacman opened this issue Jan 3, 2025 · 1 comment
Open

Add a Symfony recipe #12

tacman opened this issue Jan 3, 2025 · 1 comment

Comments

@tacman
Copy link

tacman commented Jan 3, 2025

When I install the bundle (which really be called SmokeTestingBundle or smoke-test-bundle, for consistence with the rest of the ecosystem), I'd like to have that first test automatically created, and a phpunit.xml or phpunit.xml.dist file created.

Alternatively, if the installation instructions are in a bash block, it can be and easy cut and paste to install. This is what I do.

composer require --dev pierstoval/smoke-testing
cat <<'EOF' > tests/AllRoutesTest.php
<?php

namespace App\Tests;
use Pierstoval\SmokeTesting\SmokeTestStaticRoutes;

class AllRoutesTest extends SmokeTestStaticRoutes
{
    // That's all!
}
EOF

vendor/bin/phpunit
@Pierstoval
Copy link
Owner

Pierstoval commented Jan 4, 2025

The PHPUnit configuration will automatically be added thanks to Symfony's recipe.

Also, I'm not sure to be ok with a Flex recipe right now, since the project is still in the "Pierstoval" namespace. I'd prefer to move it to the "Orbitale one" (which corresponds to my open source projects, ant not only my experiments) beforehand. I don't want my nickname to be stored in Symfony's code, even the "contrib" recipes.
Since there were a very few amount of users of this library, I didn't think it would be worth changing the namespace, but maybe more users would help convince me to do it :)

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

No branches or pull requests

2 participants