Sha256: 7bfcdfcef720691676f014e79eb14cde0e789347f8d3cd1b8cfd3cd25b978c92

Contents?: true

Size: 1.64 KB

Versions: 24

Compression:

Stored size: 1.64 KB

Contents

@graphviz
Feature: berks viz
  Scenario: With no options
    * I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    * I write to "Berksfile.lock" with:
      """
      DEPENDENCIES
        fake (= 1.0.0)

      GRAPH
        fake (1.0.0)
      """
    * I successfully run `berks viz`
    * a file named "graph.png" should exist

  Scenario: When there are transitive dependencies
    * I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    * I write to "Berksfile.lock" with:
      """
      DEPENDENCIES
        fake (= 1.0.0)

      GRAPH
        dep (1.0.0)
        fake (1.0.0)
          dep (~> 1.0.0)
      """
    * I successfully run `berks viz`
    * a file named "graph.png" should exist

  Scenario: When a custom output is given
    * I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    * I write to "Berksfile.lock" with:
      """
      DEPENDENCIES
        fake (= 1.0.0)

      GRAPH
        dep (1.0.0)
        fake (1.0.0)
          dep (~> 1.0.0)
      """
    * I successfully run `berks viz --outfile ponies.png`
    * a file named "graph.png" should not exist
    * a file named "ponies.png" should exist

  Scenario: When there is no lockfile present
    * I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    * I run `berks viz`
    * the output should contain:
      """
      Lockfile not found! Run `berks install` to create the lockfile.
      """
    * the exit status should be "LockfileNotFound"

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
berkshelf-5.0.0 features/commands/viz.feature
berkshelf-4.3.5 features/commands/viz.feature
berkshelf-4.3.3 features/commands/viz.feature
berkshelf-4.3.2 features/commands/viz.feature
berkshelf-4.3.1 features/commands/viz.feature
berkshelf-4.3.0 features/commands/viz.feature
berkshelf-4.2.3 features/commands/viz.feature
berkshelf-4.2.2 features/commands/viz.feature
berkshelf-4.2.1 features/commands/viz.feature
berkshelf-4.2.0 features/commands/viz.feature
berkshelf-4.1.1 features/commands/viz.feature
berkshelf-4.1.0 features/commands/viz.feature
berkshelf-4.0.1 features/commands/viz.feature
berkshelf-4.0.0 features/commands/viz.feature
berkshelf-3.3.0 features/commands/viz.feature
berkshelf-3.2.4 features/commands/viz.feature
berkshelf-3.2.3 features/commands/viz.feature
berkshelf-3.2.2 features/commands/viz.feature
berkshelf-3.2.1 features/commands/viz.feature
berkshelf-3.2.0 features/commands/viz.feature