View on GitHub

nova-calendar

A powerful event calendar Tool for Laravel's Nova 4

⬅️ Back to Documentation overview


Contributing to this package

Contributors to this package are highly welcomed.

Before you begin coding;

Before you make a pull request;

For any questions, doubts or remarks you have, please create a discussion on GitHub and we’ll discuss your thoughts there :).

Running tests

This package comes with a basic test suite that will be expanded as we run into issues.

You can run the test suite directly from the Nova project in which you are using it.

  1. Make sure phpunit is available in your project as a dev dependency (it’s present by default in new Laravel projects so it’s probably already there).

  2. Open your project’s phpunit.xml and add the following entry to the <testsuites> node:
     <testsuite name="NovaCalendar">
       <directory suffix="Test.php">./vendor/wdelfuego/nova-calendar</directory>
     </testsuite>
    

    Make sure to use the correct package path if your local fork of this package is located in a different directory.

  3. Run the test suite by running the following command from your project’s root directory:
     phpunit --testsuite NovaCalendar
    

If the test suite completes as expected, you should see something like this:

PHPUnit 9.5.23 #StandWithUkraine    

...........................                                       27 / 27 (100%)

Time: 00:02.155, Memory: 26.00 MB

OK (27 tests, 106 assertions)