Giter Club home page Giter Club logo

cucumber_report_error's Introduction

Testcase for Cucumber Report Error

Description

The Cucmber HTML report has some additional garbage included; this happens when there is a Kernel.fork and a change of ownership in the code.

You can see this in the function execute_as in backup.rb.

Steps

There are features tagged @normal and @forked. They can be started with Rake tasks to produce the HTML report.

NOTICE: You need to be root to run this (because of Process.initgroups); check the code before you try it.

Example

We check for an additional <body> tag to verify there is garbage in the report. Open the HTML report in your browser to see it.

# you need to be root
[~/Documents/cucumber (master)⚡] ➔ id
uid=0(root) gid=0(root) groups=0(root)

[~/Documents/cucumber (master)⚡] ➔ rake -T
rake forked  # execution with forked system call
rake normal  # execution with normal system call

[~/Documents/cucumber (master)⚡] ➔ rake normal
running normal cukes
normal
# of body tags in normal.html: 1

[~/Documents/cucumber (master)⚡] ➔ rake forked
running forked cukes
forked
# of body tags in forked.html: 2

cucumber_report_error's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.