check

in spec/e2e.rb [23:42]


    def check
      if @url.nil?
        test_dir = ENV["TEST_DIR"]

        if test_dir.nil?
          
          raise "cannot run e2e tests - missing required test_dir"
        end

        if @attempted
          
          raise "cannot run e2e tests - deployment failed"
        end

        @attempted = true
        build_id = ENV["BUILD_ID"]
        deploy test_dir, build_id
      end
    end