Skip to content

Commit

Permalink
chore: rename the everything test to benchmark (#378)
Browse files Browse the repository at this point in the history
I think "benchmark" better reflects the purpose of the test
which is to be able to use to measure how well an extension
supports the schema.
  • Loading branch information
OrKoN authored Nov 9, 2022
1 parent bcee5b5 commit 869fb9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions test/everything.test.ts → test/benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ async function createServers() {
// Note: not using snapshots to make sure all tests result in the same log.
const expectedLog = (
await fs.readFile(
path.join(__dirname, 'resources', 'everything.expected.txt'),
path.join(__dirname, 'resources', 'benchmark.expected.txt'),
'utf-8'
)
).trim();

describe('Everything', () => {
describe('Benchmark test', () => {
let browser: puppeteer.Browser;
let page: puppeteer.Page;
let httpServer: TestServer;
Expand Down Expand Up @@ -85,9 +85,9 @@ describe('Everything', () => {
await httpsServer.stop();
});

it('should run everthing using a runner', async () => {
it('should run the test using a runner extension', async () => {
const recording = JSON.parse(
await fs.readFile(path.join(__dirname, 'resources', 'everything.json'), {
await fs.readFile(path.join(__dirname, 'resources', 'benchmark.json'), {
encoding: 'utf8',
})
);
Expand All @@ -101,9 +101,9 @@ describe('Everything', () => {
assert.strictEqual(result.trim(), expectedLog);
});

it('should run everthing when exported to a script', async () => {
it('should run the test when exported as a script using a stringify extension', async () => {
const recording = JSON.parse(
await fs.readFile(path.join(__dirname, 'resources', 'everything.json'), {
await fs.readFile(path.join(__dirname, 'resources', 'benchmark.json'), {
encoding: 'utf8',
})
);
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "everything",
"title": "benchmark",
"steps": [
{
"type": "setViewport",
Expand All @@ -12,11 +12,11 @@
},
{
"type": "navigate",
"url": "http://localhost:8907/everything.html",
"url": "http://localhost:8907/benchmark.html",
"assertedEvents": [
{
"type": "navigation",
"url": "http://localhost:8907/everything.html",
"url": "http://localhost:8907/benchmark.html",
"title": ""
}
]
Expand Down

0 comments on commit 869fb9d

Please sign in to comment.