Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nightwatch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"src_folders" : ["./tests"],
"output_folder" : "./reports",
"output_folder" : "./shippable/testresults",
"custom_commands_path" : "",
"custom_assertions_path" : "",
"globals_path" : "",
Expand Down
8 changes: 4 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ var http = require('http');

var server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('<html><head></head><body>Hello from blahhh world</body></html>');
res.end('<html><head></head><body>Hello World</body></html>');
// Prevents the build container from timing out by waiting for the server to close.
process.nextTick(function () {
console.log('Stopping server running at http://127.0.0.1:1337');
console.log('Stopping server running at http://127.0.0.1:5001');
process.exit();
});
});

server.listen(1337, '127.0.0.1');
server.listen(5001, '127.0.0.1');

console.log('Server running at http://127.0.0.1:1337/');
console.log('Server running at http://127.0.0.1:5001/');
19 changes: 10 additions & 9 deletions shippable.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
language: node_js

node_js:
- "0.10"

addons:
firefox: "23.0"

services:
- selenium

before_script:
- "export DISPLAY=:99.0"
- "/etc/init.d/xvfb start"
addons:
firefox: "17.0"
build:
pre_ci_boot:
image_name: shippable/minv2
image_tag: latest
ci:
- npm install
- export DISPLAY=:99.0
- xvfb-run --server-args="-ac" npm test
2 changes: 1 addition & 1 deletion tests/sample_test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
"test sample" : function (browser) {
browser
.url("http://127.0.0.1:1337")
.url("http://127.0.0.1:5001")
.waitForElementVisible('body', 1000)
.assert.containsText('body', 'Hello World')
.end();
Expand Down