-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb4f1a2
commit 4eb8e11
Showing
1 changed file
with
66 additions
and
0 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
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> | ||
</> | ||
); | ||
} |