inlight-media / www-foundation

0 stars 0 forks source link

Automated Front End Testing #22

Closed oliverbenns closed 4 years ago

oliverbenns commented 9 years ago

The requirement for automated testing has never been so clear. With requirements for this tag and that tag, ensuring that all the various assets are being loaded, being aware of performance hits upfront will result in less mistakes and better code. This will ultimately serve our users better.

By opening this issue I hope to spark a discussion. So please leave your comments or suggestions!

Requirements

Off the bat ideas...

{ 
    images: {
        maxSize : '100kb', 
    },
    meta: {
        openGraph: true,
        title: {
            required: true,
            unique: true
        }
    },
    accessibility: true
}

Resources

jamesirving commented 9 years ago

Obviously I'm all for more testing. A question though... Do you often find you have bugs associated with the sections you mentioned? (e.g. meta title, this and that tag, and various assets are being loaded, 404 errors... etc.)

oliverbenns commented 9 years ago

I think some of the page content that isn't visual can often get overlooked, and although this isn't always directly a requirement in the project, they are usually 5 minute fixes that can greatly help with page performance & SEO. By implementing tests into our Gulp stack, it will force us to do these small tasks (however tedious they may seem to some).

A couple of examples would be...

So to answer your question. They aren't bugs as such, they don't break the website, but the value these small details can add are considerably high.