Skip to content

Commit 9c7860f

Browse files
committed
e2e: add profile for running offline tests
Tag tests that require internet access with '@online' and add a Cucumber profile that skips those tests. This allows developers to easily run tests on the bundle server in an offline or bandwidth-limited environment. Signed-off-by: Victoria Dye <[email protected]>
1 parent c9ee08f commit 9c7860f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/e2e/cucumber.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module.exports = {
1818
...common,
1919
tags: 'not @slow',
2020
},
21+
offline: {
22+
...common,
23+
tags: 'not @online',
24+
},
2125
all: {
2226
...common
2327
}

test/e2e/features/basic.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Feature: Basic bundle server usage
33
Background: The bundle web server is running
44
Given the bundle web server was started at port 8080
55

6+
@online
67
Scenario: A user can clone with a bundle URI pointing to the bundle server
78
Given a remote repository 'https://github.com/vdye/asset-hash.git'
89
Given the bundle server has been initialized with the remote repo

test/e2e/features/performance.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Feature: Bundle server performance
33
Background: The bundle web server is running
44
Given the bundle web server was started at port 8080
55

6+
@online
67
Scenario Outline: Comparing clone performance
78
Given a remote repository '<repo>'
89
Given the bundle server has been initialized with the remote repo

0 commit comments

Comments
 (0)