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

Make it easy to run a single test #178

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 22, 2024

  1. move the init of config to the main function from global init

    This will make it easier to setup the test framework with a different
    config when required. If the configuration is built in the global init
    of the controller then it can not be skipped.
    
    Signed-off-by: Raghavendra Talur <[email protected]>
    raghavendra-talur committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    44cd32f View commit details
    Browse the repository at this point in the history
  2. tests: set the OPERATOR_NAMESPACE in the test suite

    This allows one to run the a specific test using the ginkgo cli or by
    using the vscode test decorators.
    
    For example:
    ```
    $ ginkgo -focus "ClientProfile Controller" -r
    [1732083376] Controller Suite - 1/3 specs SS• SUCCESS! 5.797831s PASS
      Starting ceph-csi-operator suite
    [1732083376] e2e suite - 0/1 specs S SUCCESS! 59.25µs PASS
    
    Ginkgo ran 2 suites in 10.605577042s
    Test Suite Passed
    ```
    
    Signed-off-by: Raghavendra Talur <[email protected]>
    raghavendra-talur committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    74c2c6e View commit details
    Browse the repository at this point in the history