GithubHelp home page GithubHelp logo

brennx0r / bren.do Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 60 KB

Personal website built with Middleman / TDD using Cucumber and watir-webdriver.

Home Page: http://bren.do

License: GNU General Public License v2.0

Ruby 52.27% HTML 17.79% JavaScript 0.22% CSS 12.36% Gherkin 17.36%

bren.do's People

Contributors

brennx0r avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

bren.do's Issues

Rework rake test task for killing the Middleman PID

Right now in the rake file, :test will seek out all PIDs by name and kill them following the Cucumber run. This is done because there is no other way to stop the middleman server process that's needed for the Cucumber tests to run properly.
While this approach works, it will leave a slew of exit 0s, which will cause the Rake task to abort (which will make a Travis-CI run always fail, even if the Cucumber tests passed.
It's for this reason that a solution to this issue should be (unless there's a better solution I have not yet thought of):

  1. Leave :test "as-is".
  2. For the Travis CI run tasks, create a copy of :test (calling it something like :test-travis, for example) and remove the PID kill line from the tasks. While it's usually bad to leave the PID running, it does not matter for the Travis case because following the Travis run the spot instance is going to be powered down (and thus all PIDs will be killed naturally).

Speed up tests

Test runs can possibly be sped up considerably by not requiring new browser open/close between scenarios within the same feature. Please look into this! :)

Cucumber :: Create feature for header strip

We should have Cucumber tests that test the presence of a header strip on all pages.

Definitions could include:

  1. Verify that the header ID is present on the following pages: index.html, sketchnotes.html
  2. Verify that the following links are contained within the header: twitter (twitter address), code (github address), mailto link ([email protected]).

This is not meant to be the full feature definition, but this is a great start!

Cucumber :: Create sketch note page feature

Before we create the sketch note page in earnest, we first need to create the sketch note Cucumber feature!

Feature should be doing checks on the following:

  1. Title for the page is present
  2. A Thumbnail gallery is present (look for ID for the gallery, perhaps)
  3. When a thumbnail is clicked, the larger image is present on the page
  4. Do a count of the thumbnails. It should match the number of full images

This is not meant to be a full list of the feature tests, but this is a good place to start.

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.