Skip to content

Commit

Permalink
add how to setup page
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Jun 17, 2023
1 parent eb4f1a2 commit 4eb8e11
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions editor/pages/tests/reports/how-to-setup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import Head from "next/head";
import { useRouter } from "next/router";
import React from "react";

export default function HowToSetupReports() {
const router = useRouter();

return (
<>
<Head>
<title>How to setup local server for @codetest/reports</title>
</Head>

<main
style={{
textAlign: "center",
width: 400,
margin: "auto",
}}
>
<h1>
How to setup local server for <code>@codetest/reports</code>
</h1>
<p>
<code>@codetest/reports</code> is a package that allows you to run
engine tests locally, due to its high maintainance cost, we don't
provide official reports server yet.
<br />
<br />
<b>To generate reports, run the following command:</b>
<br />
<br />
<code>
cd testing/reports
<br />
yarn build
<br />
yarn start
</code>
<br />
<br />
<b>To run local reports server, run the following command:</b>
<br />
<br />
<code>
cd testing/server
<br />
yarn dev
</code>
<br />
<br />
<b>Go back to the page after server has started</b>
<br />
<br />
<button
onClick={() => {
router.replace("/tests/reports");
}}
>
I've started the server, Go back to the page
</button>
</p>
</main>
</>
);
}

0 comments on commit 4eb8e11

Please sign in to comment.