This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly interrup the currently running test
- Loading branch information
Showing
8 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
require('http').createServer( (req, res) => { res.end('hello world\n') } ) | ||
.listen(3000, '127.0.0.1', () => { console.log('Server running') }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Testing $1" | ||
echo "done testing $1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
actions: | ||
|
||
- match: | ||
command: 'bin/run-long-test' | ||
|
||
- match: | ||
filename: 'foo' | ||
command: 'bin/run-test foo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: tests start immediately | ||
|
||
As a developer kicking off a test | ||
I want that it starts right away without waiting for the current test to finish | ||
So that I don't get slowed down by currently running tests I no longer need. | ||
|
||
- when Tertestrial receives the signal to run a test, | ||
it terminates the currently running test and starts the new one right away | ||
|
||
|
||
Scenario: Tertestrial receives a test command while another test is still running | ||
Given Tertestrial is running inside the "long-running-tests" example application | ||
When sending the command: | ||
""" | ||
{} | ||
""" | ||
Then the long-running test is running | ||
When sending the command: | ||
""" | ||
{"filename": "foo"} | ||
""" | ||
Then the long-running test is no longer running | ||
And I see "Testing foo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters