Skip to content

Commit 4eb8e11

Browse files
add how to setup page
1 parent eb4f1a2 commit 4eb8e11

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import Head from "next/head";
2+
import { useRouter } from "next/router";
3+
import React from "react";
4+
5+
export default function HowToSetupReports() {
6+
const router = useRouter();
7+
8+
return (
9+
<>
10+
<Head>
11+
<title>How to setup local server for @codetest/reports</title>
12+
</Head>
13+
14+
<main
15+
style={{
16+
textAlign: "center",
17+
width: 400,
18+
margin: "auto",
19+
}}
20+
>
21+
<h1>
22+
How to setup local server for <code>@codetest/reports</code>
23+
</h1>
24+
<p>
25+
<code>@codetest/reports</code> is a package that allows you to run
26+
engine tests locally, due to its high maintainance cost, we don't
27+
provide official reports server yet.
28+
<br />
29+
<br />
30+
<b>To generate reports, run the following command:</b>
31+
<br />
32+
<br />
33+
<code>
34+
cd testing/reports
35+
<br />
36+
yarn build
37+
<br />
38+
yarn start
39+
</code>
40+
<br />
41+
<br />
42+
<b>To run local reports server, run the following command:</b>
43+
<br />
44+
<br />
45+
<code>
46+
cd testing/server
47+
<br />
48+
yarn dev
49+
</code>
50+
<br />
51+
<br />
52+
<b>Go back to the page after server has started</b>
53+
<br />
54+
<br />
55+
<button
56+
onClick={() => {
57+
router.replace("/tests/reports");
58+
}}
59+
>
60+
I've started the server, Go back to the page
61+
</button>
62+
</p>
63+
</main>
64+
</>
65+
);
66+
}

0 commit comments

Comments
 (0)