PHPUnit tests end up in releases

Open
#559 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php

Research direction

Start by locating the Composer archive configuration and checking how the src/**/Tests paths are included in a release archive. Build or inspect a representative archive and confirm that PHPUnit test directories are excluded while production code remains available.

Written by the indexing model from the issue text.

Description

When building a release, the src/**/Tests are not excluded from the composer archive.

That should not be a problem as there are no secrets stored, or harmful exploits in the unit tests. Still, a prod release could exclude that code. You would not be able to run those tests in production anyway as phpunit is installed as a dev dependency.

Dominant language
PHP
Stars
3
Forks
3
Avg merge
6d 7h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenConext/Stepup-Middleware

All issues in OpenConext/Stepup-Middleware

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.