Sha256: 7a22e89e944783d9c1825490b15058cf7f0f79ca9960c0add4cd36c5b19117a0

Contents?: true

Size: 1.65 KB

Versions: 31

Compression:

Stored size: 1.65 KB

Contents

@graphviz @not-windows
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

31 entries across 31 versions & 1 rubygems

Version Path
berkshelf-7.0.7 features/commands/viz.feature
berkshelf-6.3.4 features/commands/viz.feature
berkshelf-7.0.6 features/commands/viz.feature
berkshelf-7.0.5 features/commands/viz.feature
berkshelf-6.3.3 features/commands/viz.feature
berkshelf-7.0.4 features/commands/viz.feature
berkshelf-7.0.3 features/commands/viz.feature
berkshelf-7.0.2 features/commands/viz.feature
berkshelf-7.0.1 features/commands/viz.feature
berkshelf-7.0.0 features/commands/viz.feature
berkshelf-6.3.2 features/commands/viz.feature
berkshelf-6.3.1 features/commands/viz.feature
berkshelf-6.3.0 features/commands/viz.feature
berkshelf-6.2.2 features/commands/viz.feature
berkshelf-6.2.1 features/commands/viz.feature
berkshelf-6.2.0 features/commands/viz.feature
berkshelf-6.1.1 features/commands/viz.feature
berkshelf-6.1.0 features/commands/viz.feature
berkshelf-6.0.1 features/commands/viz.feature
berkshelf-6.0.0 features/commands/viz.feature