Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Get rid of @testClass annotation #33

Open
jwage opened this issue Oct 29, 2016 · 0 comments
Open

Get rid of @testClass annotation #33

jwage opened this issue Oct 29, 2016 · 0 comments
Milestone

Comments

@jwage
Copy link
Owner

jwage commented Oct 29, 2016

Replace it by guessing the location of the test automatically based on the class name.

<?php

namespace PHPChunkit;

use PHP_Token_Stream;

/**
 * @testClass PHPChunkit\Test\TestCounterTest
 */
class TestCounter
{
    // ...
}

When you are runningphpchunkit watch and you save TestCounter.php, the PHPChunkit\Test\TestCounterTest class will be executed.

The problem is people organize tests a few different ways as far I have seen so we could maybe guess based on the known patterns people use to find the associated unit test.

@jwage jwage added this to the 1.0 milestone Oct 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant