nginx-le
  • Overview
  • Prerequisites
  • Cli commands
    • build
    • config
    • start
    • acquire
    • certificates
    • cli
    • doctor
    • logs
    • renew
    • restart
    • revoke
    • stop
  • docker-compose
  • Certificate management
    • Staging (test) certificates
    • Certificate volume
  • Customise Nginx-le container
  • Diagnosing problems
  • Environment variables
    • Internal Environment Variables
      • Auth Providers
  • Contributing
    • Testing
    • Releasing nginx-le
  • Custom Content Providers
  • Custom docker file
  • Auth Providers
    • HTTP Auth
    • Cloudflare
    • Name cheap
    • Implement an Auth Provider
Powered by GitBook
On this page

Was this helpful?

  1. Contributing

Testing

PreviousContributingNextReleasing nginx-le

Last updated 3 years ago

Was this helpful?

Nginx-LE uses the and package to run unit tests.

You should have both of these installed before you start testing.

pub global activate critical_test
pub global activate dcli
dcli install

Critical tests provides the ability to setup a no. of pre and post test hooks.

Nginx-LE relies on these hooks to correctly configure the test environment.

In particular the pre test setup hook compiles and installs the auth, deploy and cleanup hooks onto your path (using the DCli path ~/.dcli/bin) before running the tests.

If you can't use critical_test for some reason then you can directly run the setup script:

container\tool\critical_test\pre_hook\setup.dart

To run the unit tests:

cd shared
critical_test
cd ../container
critical_test
cd ../cli
critical_test
critical_test
DCli