Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend functional tests -> frontend route tests #4336

Merged
merged 1 commit into from
Oct 25, 2014

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Oct 25, 2014

This PR moves all of the tests from /functional/frontend/* into /functional/routes/frontend_test.js - there weren't many, and several of them already had equivalent tests in the route tests.

There's no need for us to test the frontend of a blog using casper/phantom as we don't need to test interactions.

This should give us a small reduction in the time taken to run our build 🚤

no issue

  • Some of the tests were duplicated and all of these tests are faster and easier to do with super test as we aren't testing interactions
  • Introduced a new test util to toggle permalinks which allows us to test the different structures
  • Using cheerio in route tests to test the HTML / XML output is well formed

no issue

- Some of the tests were duplicated and all of these tests are faster and easier to do with super test as we aren't testing interactions
- Introduced a new test util to toggle permalinks which allows us to test the different structures
- Using cheerio in route tests to test the HTML / XML output is well formed
@ErisDS
Copy link
Member Author

ErisDS commented Oct 25, 2014

WARNING: Do NOT merge - Travis is actually failing with a disk space error

@jaswilli
Copy link
Contributor

This now has a legitimate test pass.

jaswilli added a commit that referenced this pull request Oct 25, 2014
frontend functional tests -> frontend route tests
@jaswilli jaswilli merged commit 6f291fd into TryGhost:master Oct 25, 2014
@ErisDS ErisDS deleted the reduce-tests branch December 14, 2014 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants